I'm trying to prepare training data with this detail :
ArcGIS Pro 2.4.2
inRaster = "E:\Work\ArcDL\Base\MANADO_FIX.tif" (raster 8bit unsigned, thematic, with nodata=0)
out_folder = "E:\Work\ArcDL\gtg6"
in_training = "E:\Work\ArcDL\Experiment_BuildFoot_2\MyProject\Shape\House.shp" (shp that has Classvalue, Classname, RED, GREEN, BLUE field)
image_chip_format = "TIFF"
tile_size_x = "256"
tile_size_y = "256"
start_index = 0
classvalue_field = "Classvalue"
buffer_radius = 1
in_mask_polygons = "E:\Work\ArcDL\Experiment_BuildFoot_2\MyProject\Shape\Mask.shp"
rotation_angle = 0
I run my prepare data syntax just like this :
data = prepare_data('gtg6')
But I always ended up in this kind of error for labeled_tiles metadata format, there's no further explanation and I cant use the data for training since data.show_batch() will result in OSError: -2
Thanks in advance.
Solved! Go to Solution.
Thank you.., I set my cell size to 0.3, and this is my screenshot at my exported files :
Because I did this based on tutorial Feature Categorization using Satellite Imagery and Deep Learning | ArcGIS for Developers then I try to implement that tutorial using the same data based on that tutorial (with cell size 0.1) and this is my screen shot at my exported tiles based on the tutorial :
but it still have the same error and in jupyter notebook it says Cannot read TIFF header :
thanks in advance