TrainVectorClassifier RAM CACHE and Processing time

Hi,

Am using OTB in QGIS to make a classification based upon a segmentation and this has worked previously - although I could see that the system was under pressure for RAM, CACHE as the processing time ect take some time etc. Now I have increased the number of raster bands and the TrainVectorClassifyer appears to still be running after 30 hr however listing occasionally Warning: reaching max number of iterations - it did that before but not so many times and made it at last (perhaps 1 hr). I can see it’s only using about 17% PC resources (i7 – Win10-x64) and ca 20% RAM (of 32 GB)

My questions: will it complete? Is there any way to optimise or allocate more resources within QGIS? .e.g. increase GDAL_CACHEMAX or something else?

Thanks in advance

Hi again,

Appeared to be solved - I increased the default ram for OTB 10 times (2560 MB) and GDAL_CACHEMAX 8 times - now it is fast

Hi @Prins , thank you for the sharing.
You can also increase the number of threads used in the “Advanced” section of the algorithm, then use the “Number of thread to use” in “Environment parameters” section :


Best regards

Tristan

Thanks a lot Tristan,

That one was already up. I haven’t tested which one or both of the two changes made the difference, but it works well now :+1:

1 Like