Hi Folks,
I'm trying to retrain this model: Land Cover Classification (Aerial Imagery) - Overview (arcgis.com)
I run label features for deep learning and then export training data for deep learning.
I then run train deep learning model, but get this error:
Exception: Could not infer dataset type. Please specify a supported dataset type or ensure that the path contains valid exported training data from ArcGIS. UnboundLocalError: local variable 'data_bunch' referenced before assignment
Is there a key parameter I'm missing?
Solved! Go to Solution.
I was able to retrain the model by the following:
My raster had 4 bands, the model required 3, so I extracted the bands with the "make raster" tool.
I then classified the raster with the "label objects for deep learning" tool. I used this interface to save the training data to a GDB; this creates all the fields needed. I wasn't able to create a training data any other way. If there are fewer classes than what are required by the model, then this will cause an error later. The classes in the schema must also be numbered and named to match the classes specified in the model's emd.
With this feature class and my raster I ran "Export Training Data for Deep Learning". The resulting training data then worked for the "train deep learning model tool".
@rescobar Can you please confirm that you followed steps outlined here https://doc.arcgis.com/en/pretrained-models/latest/imagery/finetuning-the-land-cover-classification-...
how many image chips do you have in your training data?
thanks
Pavan
Yes, I cannot get "Export Training Data For Deep Learning" to work out of the toolbox
How many image chips do I need? I have 500 chips using "Export Training Data For Deep Learning" from the "Label Objects for Deep Learning window".
If I use export training data for deep learning out of the tool box from a shapefile I get a different error:
ERROR 002088: Feature class has not enough information for supervised training.
@rescobar your feature class looks right to me. Try to use the Class Value Field parameter. If it does not work, please share it as a zip, I can try to investigate the issue at my end.
@rescobar thanks I will look into it.
@rescobar looks like rescobar_data has expired. can you please share again?
@rescobar I'm so sorry but I cannot access the data .. I am sure it's at my end.. can you please email me at pyadav AT esri dot com.. I will share my ftp or you can just try to share it as an email attachment? thanks
Sorry, I've emailed you and shared with google drive rather than one drive: