<?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 Re: Can't Re-Train ESRI Model in ArcGIS Image Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1487407#M687</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/597256"&gt;@rescobar&lt;/a&gt;&amp;nbsp;thanks I will look into it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2024 18:38:37 GMT</pubDate>
    <dc:creator>PavanYadav</dc:creator>
    <dc:date>2024-06-07T18:38:37Z</dc:date>
    <item>
      <title>Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1477336#M669</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;I'm trying to retrain this model:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=c1bca075efb145d9a26394b866cd05eb" target="_blank" rel="noopener nofollow ugc"&gt;Land Cover Classification (Aerial Imagery) - Overview (arcgis.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I run label features for deep learning and then export training data for deep learning.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Params.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105043i849F5CC540A2738E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Params.PNG" alt="Params.PNG" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;I then run train deep learning model, but get this error:&lt;/P&gt;&lt;PRE&gt;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&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deep_learning_Train.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105045i41E826D5F51EF004/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deep_learning_Train.PNG" alt="Deep_learning_Train.PNG" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Is there a key parameter I'm missing?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 21:21:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1477336#M669</guid>
      <dc:creator>rescobar</dc:creator>
      <dc:date>2024-05-22T21:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1479768#M670</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/597256"&gt;@rescobar&lt;/a&gt;&amp;nbsp;Can you please confirm that you followed steps outlined here &lt;A href="https://doc.arcgis.com/en/pretrained-models/latest/imagery/finetuning-the-land-cover-classification-aerial-imagery-.htm?" target="_blank"&gt;https://doc.arcgis.com/en/pretrained-models/latest/imagery/finetuning-the-land-cover-classification-aerial-imagery-.htm?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;how many image chips do you have in your training data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;BR /&gt;Pavan&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 19:57:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1479768#M670</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2024-05-28T19:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1481652#M677</link>
      <description>&lt;P&gt;Yes, I cannot get "Export Training Data For Deep Learning" to work out of the toolbox&lt;/P&gt;&lt;P&gt;How many image chips do I need?&amp;nbsp; I have 500 chips using "Export Training Data For Deep Learning" from the "Label Objects for Deep Learning window".&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use export training data for deep learning out of the tool box from a shapefile I get a different error:&lt;/P&gt;&lt;P&gt;ERROR 002088: Feature class has not enough information for supervised training.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error_exporting.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105839i03C3798F77276FD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Error_exporting.PNG" alt="Error_exporting.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 22:26:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1481652#M677</guid>
      <dc:creator>rescobar</dc:creator>
      <dc:date>2024-05-30T22:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1482340#M678</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/597256"&gt;@rescobar&lt;/a&gt;&amp;nbsp;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.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 18:30:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1482340#M678</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2024-06-07T18:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1483295#M679</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2666"&gt;@PavanYadav&lt;/a&gt;&amp;nbsp;, see the data here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://icfonline-my.sharepoint.com/:f:/g/personal/58303_icf_com/EiEaPro33khIrsClFqiz-PkBDvuLHmJ3VFeEBF93cXQQ7w?e=xUThvp" target="_blank"&gt;rescobar_data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 15:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1483295#M679</guid>
      <dc:creator>rescobar</dc:creator>
      <dc:date>2024-06-03T15:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1487407#M687</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/597256"&gt;@rescobar&lt;/a&gt;&amp;nbsp;thanks I will look into it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 18:38:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1487407#M687</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2024-06-07T18:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1490837#M692</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/597256"&gt;@rescobar&lt;/a&gt;&amp;nbsp;looks like&amp;nbsp;&lt;A href="https://icfonline-my.sharepoint.com/:f:/g/personal/58303_icf_com/EiEaPro33khIrsClFqiz-PkBDvuLHmJ3VFeEBF93cXQQ7w?e=xUThvp" target="_blank" rel="nofollow noopener noreferrer"&gt;rescobar_data&lt;/A&gt;&amp;nbsp;has expired. can you please share again?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 17:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1490837#M692</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2024-06-12T17:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1494421#M697</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2666"&gt;@PavanYadav&lt;/a&gt;&amp;nbsp; here is an updated link. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://icfonline-my.sharepoint.com/:f:/g/personal/58303_icf_com/EiEaPro33khIrsClFqiz-PkBDvuLHmJ3VFeEBF93cXQQ7w?e=XtnSga" target="_blank"&gt;rescobar_data&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 15:02:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1494421#M697</guid>
      <dc:creator>rescobar</dc:creator>
      <dc:date>2024-06-18T15:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1511967#M710</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/597256"&gt;@rescobar&lt;/a&gt;&amp;nbsp;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&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 22:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1511967#M710</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2024-07-29T22:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1517010#M713</link>
      <description>&lt;P&gt;Sorry, I've emailed you and shared with google drive rather than one drive:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;Just following up on your comment on my post in the ESRI forum, I'm now able export training data, but am getting a different error.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;My Training sample is here:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://drive.google.com/file/d/1VtMmMAqEKoerdlwOLfy0Ugq_ac__3EBo/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1VtMmMAqEKoerdlwOLfy0Ugq_ac__3EBo/view?usp=sharing&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;And the original data I was trying to send is here:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://drive.google.com/file/d/1OA_fkg4Q7BGwtJxO__RbxV2XpzFtmaDv/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1OA_fkg4Q7BGwtJxO__RbxV2XpzFtmaDv/view?usp=sharing&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Runtime Error:Error(s) in loading state_dict for DynamicUnet: size mismatch for layers.0.0.weight: copying a param with shape torch.Size([64, 3, 7, 7]) from checkpoint, the shape in current model is torch.Size([64, 4, 7, 7]). size mismatch for layers.10.layers.0.0.weight: copying a param with shape torch.Size([49, 99, 3, 3]) from checkpoint, the shape in current model is torch.Size([50, 100, 3, 3]). size mismatch for layers.10.layers.0.0.bias: copying a param with shape torch.Size([49]) from checkpoint, the shape in current model is torch.Size([50]). size mismatch for layers.10.layers.1.0.weight: copying a param with shape torch.Size([99, 49, 3, 3]) from checkpoint, the shape in current model is torch.Size([100, 50, 3, 3]). size mismatch for layers.10.layers.1.0.bias: copying a param with shape torch.Size([99]) from checkpoint, the shape in current model is torch.Size([100]). size mismatch for layers.11.0.weight: copying a param with shape torch.Size([9, 99, 1, 1]) from checkpoint, the shape in current model is torch.Size([4, 100, 1, 1]). size mismatch for layers.11.0.bias: copying a param with shape torch.Size([9]) from checkpoint, the shape in current model is torch.Size([4]).Training not successful.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Traceback (most recent call last): &amp;nbsp;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 397, in &amp;lt;module&amp;gt; &amp;nbsp; &amp;nbsp;execute() &amp;nbsp;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 392, in execute &amp;nbsp; &amp;nbsp;del training_model_object UnboundLocalError: local variable 'training_model_object' referenced before assignment&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Thank you for your help!&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 22:16:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1517010#M713</guid>
      <dc:creator>rescobar</dc:creator>
      <dc:date>2024-08-08T22:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Re-Train ESRI Model</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1525945#M719</link>
      <description>&lt;P&gt;I was able to retrain the model by the following:&lt;BR /&gt;&lt;BR /&gt;My raster had 4 bands, the model required 3, so I extracted the bands with the "make raster" tool.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 16:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/can-t-re-train-esri-model/m-p/1525945#M719</guid>
      <dc:creator>rescobar</dc:creator>
      <dc:date>2024-08-22T16:56:37Z</dc:date>
    </item>
  </channel>
</rss>

