Problem with enable_probability_map: True
- Iota2 installed with conda
- Run in local
I run the classification from the first example (https://iota2.readthedocs.io/en/master/IOTA2_Example.html) which works perfectly. Then I tried to rerun the example with the modified configuration file ( IOTA2_Example.cfg ) in order to have the probability map.
argTrain:
{
classifier :'sharkrf'
options :' -classifier.rf.min 5 -classifier.rf.max 25 '
}
argClassification:
{
enable_probability_map:True
classifMode : 'separate'
}
I had the following error :
iota2.Common.ServiceError.fileError: Error: "field name 'CODE' doesn't exist in /home/belletv/Documents/Code/IOTA2_TEST_S2/vector_data/groundTruth.shp"
I changed in the configuration file dataField:'CODE'
by dataField:'code'
When I rerun, I had the following error :
Traceback (most recent call last):
File "/home/belletv/miniconda3/envs/iota2-env/lib/python3.6/site-packages/iota2/Iota2.py", line 103, in launchTask
returned_data = function(parameter)
File "/home/belletv/miniconda3/envs/iota2-env/lib/python3.6/site-packages/iota2/Steps/mosaic.py", line 87, in <lambda>
spatial_res, enable_proba_map, region_path, self.color_table)
File "/home/belletv/miniconda3/envs/iota2-env/lib/python3.6/site-packages/iota2/Validation/ClassificationShaping.py", line 495, in classification_shaping
"BIGTIFF": "YES"
File "/home/belletv/miniconda3/envs/iota2-env/lib/python3.6/site-packages/iota2/Common/FileUtils.py", line 807, in assembleTile_Merge
run(cmd)
File "/home/belletv/miniconda3/envs/iota2-env/lib/python3.6/site-packages/iota2/Common/Utils.py", line 90, in run
raise Exception(exception_msg)
Exception: Launch command fail : gdal_merge.py -co COMPRESS=LZW -co BIGTIFF=YES -ps 10 -10 -o /home/belletv/Documents/Code/IOTA2_TEST_S2/IOTA2_Outputs/Results_proba/final/ProbabilityMap_seed_0.tif
-ot Int16 -n 0 b'No input files selected.\nUsage: gdal_merge.py [-o out_filename] [-of out_format] [-co NAME=VALUE]*\n
[-ps pixelsize_x pixelsize_y] [-tap] [-separate] [-q] [-v] [-pct]\n
[-ul_lr ulx uly lrx lry] [-init "value [value...]"]\n
[-n nodata_value] [-a_nodata output_nodata_value]\n
[-ot datatype] [-createonly] input_files\n
[--help-general]\n\n'
The log files are :
Line from the classification log file :
2020-10-30 15:24:44,403 [iota2.Classification.ImageClassifier] [WARNING] - classifier 'code' not available to generate a probability map, those available are ['sharkrf']