trainning deep learning model error in arcgis pro 3.0

618
2
10-13-2022 05:01 AM
Labels (3)
jackyfeiwu
New Contributor

Traceback (most recent call last):
File "d:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 308, in execute
data_bunch = prepare_data(in_folders, working_dir=out_folder, **prepare_data_kwargs)
File "D:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\_data.py", line 1440, in prepare_data
raise Exception(
Exception: Could not infer dataset type. Please specify a supported dataset type or ensure that the path contains valid esri files

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 390, in <module>
execute()
File "d:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 384, in execute
del data_bunch
UnboundLocalError: local variable 'data_bunch' referenced before assignment

Tags (2)
0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

Perhaps you could elaborate on the inputs used in the tool at the time the error occurred


... sort of retired...
0 Kudos
PavanYadav
Esri Contributor

@jackyji This error can happen when you don’t input entire exported folder but only point to the image folder. 

The Export Training Data for Deep Learning tool typically outputs a folder containing something like the following

PavanYadav_0-1668622825677.png

 

In this case, the input to the Train Deep Learning Model tool is: "FormatTest_PNG_KITTI_rectangles" folder

0 Kudos