Error : Unable to write the XML file

Hi everyone
I hope I can find a solution to my problem,

I want to do a classification supervised by Random Forest and when I train the classifier it gives me this error:

TrainImagesClassifier: itk::ERROR: StatisticsXMLFileWriter(0000023974CD01F0): Unable to write the XML file in C:/Users (permission issue? Directory does not exist?).

What do you suspect is the reason?

Thant you
Soumia

Dear @Soumia,
Thank you for you interest in OTB.

To be sure to understand correctly the problem, could you tell us how you use OTB? (standalone binaries? Superbuild? QGIS pluggin? other?). Also, could you share with us the input parameters of your processing?

Sincerely.
Julien.

Dear @julienosman,
Thank you for responding me,
I am using OTB standalone…
I use Spot image and shape file learning dataset (.shp) with ID and Classe-name.
Using Radom Forest classifier this is what I am geting now !

2020-11-26 19:25:00 (INFO) TrainImagesClassifier: Default RAM limit for OTB is 256 MB
2020-11-26 19:25:00 (INFO) TrainImagesClassifier: GDAL maximum cache size is 402 MB
2020-11-26 19:25:00 (INFO) TrainImagesClassifier: OTB will use at most 4 threads
2020-11-26 19:25:00 (INFO) TrainImagesClassifier: Polygon analysis…
2020-11-26 19:25:00 (INFO) TrainImagesClassifier: Elevation management: setting default height above ellipsoid to 0 meters
2020-11-26 19:25:00 (INFO) TrainImagesClassifier: Reprojecting input vectors…
2020-11-26 19:25:00 (INFO) TrainImagesClassifier: Sampling rates…
2020-11-26 19:25:00 (INFO) TrainImagesClassifier: Sampling strategy : fit the number of samples based on the smallest class
2020-11-26 19:25:00 (INFO) TrainImagesClassifier: Sampling rates for image 1 : className requiredSamples totalSamples rate

2020-11-26 19:25:00 (FATAL) TrainImagesClassifier: No samples found in the inputs!

Usuly it works without probleme but not with spot images !

The last line in your logs means there is probably a problem with your training dataset:

I don’t see how it could be related to the error you described in your first message, but who knows…