<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Failure when trying train deep learning model in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/failure-when-trying-train-deep-learning-model/m-p/1296664#M69971</link>
    <description>&lt;P&gt;I failed to execute train deep learning model and this is the error message. Please help me&lt;BR /&gt;&lt;BR /&gt;Train Deep Learning Model&lt;BR /&gt;=====================&lt;BR /&gt;Parameters&lt;/P&gt;&lt;P&gt;Input Training Data 'C:\Dimas\11. Astra Agro Lestari\Probation\Palm_Tree_Detection\Kolovai\imagechips'&lt;BR /&gt;Output Model C:\Dimas\11. Astra Agro Lestari\Probation\Palm_Tree_Detection\Kolovai\classifypalm&lt;BR /&gt;Max Epochs 50&lt;BR /&gt;Model Type SSD&lt;BR /&gt;Batch Size 64&lt;BR /&gt;Model Arguments grids #;zooms 1.0;ratios '[1.0, 1.0]';chip_size 224;resize_to #;monitor valid_loss&lt;BR /&gt;Learning Rate&lt;BR /&gt;Backbone Model RESNET34&lt;BR /&gt;Pre-trained Model&lt;BR /&gt;Validation % 10&lt;BR /&gt;Stop when model stops improving CONTINUE_TRAINING&lt;BR /&gt;Output Model&lt;BR /&gt;Freeze Model FREEZE_MODEL&lt;BR /&gt;=====================&lt;BR /&gt;Environments&lt;/P&gt;&lt;P&gt;Processor Type GPU&lt;BR /&gt;=====================&lt;BR /&gt;Messages&lt;/P&gt;&lt;P&gt;Start Time: Wednesday, 07 June 2023 20:28:05&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 308, in execute&lt;BR /&gt;data_bunch = prepare_data(in_folders, working_dir=out_folder, **prepare_data_kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\_data.py", line 2240, in prepare_data&lt;BR /&gt;ObjectDetectionItemList.from_folder(path / "images")&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\fastai\data_block.py", line 479, in _inner&lt;BR /&gt;self.train = ft(*args, from_item_lists=True, **kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\fastai\data_block.py", line 303, in label_from_func&lt;BR /&gt;return self._label_from_list([func(o) for o in self.items], label_cls=label_cls, **kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\fastai\data_block.py", line 303, in &amp;lt;listcomp&amp;gt;&lt;BR /&gt;return self._label_from_list([func(o) for o in self.items], label_cls=label_cls, **kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\_data.py", line 325, in _get_bbox_lbls&lt;BR /&gt;return _get_bbox_classes(&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\_data.py", line 269, in _get_bbox_classes&lt;BR /&gt;float(bnd_box.find("xmin").text),&lt;BR /&gt;ValueError: could not convert string to float: '335,91'&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 390, in &amp;lt;module&amp;gt;&lt;BR /&gt;execute()&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 384, in execute&lt;BR /&gt;del data_bunch&lt;BR /&gt;UnboundLocalError: local variable 'data_bunch' referenced before assignment&lt;/P&gt;&lt;P&gt;Failed script (null)...&lt;BR /&gt;Failed to execute (TrainDeepLearningModel).&lt;BR /&gt;Failed at Wednesday, 07 June 2023 20:28:05 (Elapsed Time: 0,45 seconds)&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 13:49:44 GMT</pubDate>
    <dc:creator>DimasPratamaPutra</dc:creator>
    <dc:date>2023-06-07T13:49:44Z</dc:date>
    <item>
      <title>Failure when trying train deep learning model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/failure-when-trying-train-deep-learning-model/m-p/1296664#M69971</link>
      <description>&lt;P&gt;I failed to execute train deep learning model and this is the error message. Please help me&lt;BR /&gt;&lt;BR /&gt;Train Deep Learning Model&lt;BR /&gt;=====================&lt;BR /&gt;Parameters&lt;/P&gt;&lt;P&gt;Input Training Data 'C:\Dimas\11. Astra Agro Lestari\Probation\Palm_Tree_Detection\Kolovai\imagechips'&lt;BR /&gt;Output Model C:\Dimas\11. Astra Agro Lestari\Probation\Palm_Tree_Detection\Kolovai\classifypalm&lt;BR /&gt;Max Epochs 50&lt;BR /&gt;Model Type SSD&lt;BR /&gt;Batch Size 64&lt;BR /&gt;Model Arguments grids #;zooms 1.0;ratios '[1.0, 1.0]';chip_size 224;resize_to #;monitor valid_loss&lt;BR /&gt;Learning Rate&lt;BR /&gt;Backbone Model RESNET34&lt;BR /&gt;Pre-trained Model&lt;BR /&gt;Validation % 10&lt;BR /&gt;Stop when model stops improving CONTINUE_TRAINING&lt;BR /&gt;Output Model&lt;BR /&gt;Freeze Model FREEZE_MODEL&lt;BR /&gt;=====================&lt;BR /&gt;Environments&lt;/P&gt;&lt;P&gt;Processor Type GPU&lt;BR /&gt;=====================&lt;BR /&gt;Messages&lt;/P&gt;&lt;P&gt;Start Time: Wednesday, 07 June 2023 20:28:05&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 308, in execute&lt;BR /&gt;data_bunch = prepare_data(in_folders, working_dir=out_folder, **prepare_data_kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\_data.py", line 2240, in prepare_data&lt;BR /&gt;ObjectDetectionItemList.from_folder(path / "images")&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\fastai\data_block.py", line 479, in _inner&lt;BR /&gt;self.train = ft(*args, from_item_lists=True, **kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\fastai\data_block.py", line 303, in label_from_func&lt;BR /&gt;return self._label_from_list([func(o) for o in self.items], label_cls=label_cls, **kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\fastai\data_block.py", line 303, in &amp;lt;listcomp&amp;gt;&lt;BR /&gt;return self._label_from_list([func(o) for o in self.items], label_cls=label_cls, **kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\_data.py", line 325, in _get_bbox_lbls&lt;BR /&gt;return _get_bbox_classes(&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\_data.py", line 269, in _get_bbox_classes&lt;BR /&gt;float(bnd_box.find("xmin").text),&lt;BR /&gt;ValueError: could not convert string to float: '335,91'&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 390, in &amp;lt;module&amp;gt;&lt;BR /&gt;execute()&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 384, in execute&lt;BR /&gt;del data_bunch&lt;BR /&gt;UnboundLocalError: local variable 'data_bunch' referenced before assignment&lt;/P&gt;&lt;P&gt;Failed script (null)...&lt;BR /&gt;Failed to execute (TrainDeepLearningModel).&lt;BR /&gt;Failed at Wednesday, 07 June 2023 20:28:05 (Elapsed Time: 0,45 seconds)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 13:49:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/failure-when-trying-train-deep-learning-model/m-p/1296664#M69971</guid>
      <dc:creator>DimasPratamaPutra</dc:creator>
      <dc:date>2023-06-07T13:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Failure when trying train deep learning model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/failure-when-trying-train-deep-learning-model/m-p/1331674#M73357</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/691254"&gt;@DimasPratamaPutra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice, "&lt;SPAN&gt;ValueError: could not convert string to float: '335,91'" in the above error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Looks like when the training data was created your OS or ArcGIS Pro language was set to a language that uses command for decimal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Train Deep Learning tool currently only support 'period' for decimal. In the older releases of ArcGIS Pro, the Export Training Data tool used to use language setting for numbers. In newer release, the tool&amp;nbsp; use dot for decimal. Hope this helps.&lt;/P&gt;&lt;P&gt;A side note: We have an&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-image-analyst/ct-p/arcgis-image-analyst" target="_blank"&gt;ArcGIS Image Analyst&lt;/A&gt;&amp;nbsp;dedicated community and here you might get response sooner on your imagery related questions.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Pavan Yadav | Product Engineer - Imagery and AI&lt;BR /&gt;Esri | 380 New York | Redlands, 92373 | USA&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/pavan-yadav-1846606/" target="_blank"&gt;https://www.linkedin.com/in/pavan-yadav-1846606/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 21:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/failure-when-trying-train-deep-learning-model/m-p/1331674#M73357</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2023-09-22T21:06:06Z</dc:date>
    </item>
  </channel>
</rss>

