Hello,
I am currently working on a classification of high reslution images.
For this i wanted to create a deep learning approach of a pixel based image classification. I am using ArcGIS Pro 2.9.
The labeling of my data was done by importing a shapefile with classes end exported the trainingdata with classified tiles (Size 256, Stride 128).
By trying to train the model with the U-Net Model type with these training data, i get the following error message:
Traceback (most recent call last):
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\fastai\vision\learner.py", line 119, in unet_learner
try: size = data.train_ds[0][0].size
AttributeError: 'tuple' object has no attribute 'size'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\program files\arcgis\pro\Resources\ArcToolbox\Toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 301, in execute
training_model_object = training_model(data_bunch, **kwargs)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_unet.py", line 223, in __init__
split_on=backbone_split,
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\fastai\vision\learner.py", line 120, in unet_learner
except: size = next(iter(data.train_dl))[0].shape[-2:]
AttributeError: 'list' object has no attribute 'shape'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\program files\arcgis\pro\Resources\ArcToolbox\Toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 378, in <module>
execute()
File "c:\program files\arcgis\pro\Resources\ArcToolbox\Toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 373, in execute
del training_model_object
UnboundLocalError: local variable 'training_model_object' referenced before assignment
"
As i am not that much into coding (but looking forward to it) and i dont find any other solutions on the web, i hope i can find a solution for this problem here
Thank you in advance!