<?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: Error when trying to train a deep learning model - not sure what the error means in ArcGIS Image Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1219656#M396</link>
    <description>&lt;P&gt;Hi, thank you for your message.&amp;nbsp;&lt;SPAN&gt;No, I’m trying to train a model from training samples. I was able to label objects for detection. I was also able to export training samples. Every time I run the analysis I get this error. I’m not sure where the problem lies.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 22:43:42 GMT</pubDate>
    <dc:creator>Aique</dc:creator>
    <dc:date>2022-10-06T22:43:42Z</dc:date>
    <item>
      <title>Error when trying to train a deep learning model - not sure what the error means</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1214241#M394</link>
      <description>&lt;P&gt;I downloaded the deep learning frameworks and installed them&lt;/P&gt;&lt;P&gt;I've got Image Analyst enabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I marked the waterbodies to 'label objects for deep learning'&lt;/P&gt;&lt;P&gt;Next I successfully exported training samples&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to train the model - this is the error message I get ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not understand what the message means. Does anyone have any experience with this?&lt;/P&gt;&lt;P&gt;Appreciate any and all help and advice resolving the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;________________________________________________________________&lt;/P&gt;&lt;P&gt;Downloading: "&lt;A href="https://download.pytorch.org/models/resnet34-333f7ec4.pth" target="_blank" rel="noopener"&gt;https://download.pytorch.org/models/resnet34-333f7ec4.pth&lt;/A&gt;" to C:\Users\aqureshi/.cache\torch\hub\checkpoints\resnet34-333f7ec4.pth&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\urllib\request.py", line 1346, in do_open&lt;BR /&gt;h.request(req.get_method(), req.selector, req.data, headers,&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\http\client.py", line 1285, in request&lt;BR /&gt;self._send_request(method, url, body, headers, encode_chunked)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\http\client.py", line 1331, in _send_request&lt;BR /&gt;self.endheaders(body, encode_chunked=encode_chunked)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\http\client.py", line 1280, in endheaders&lt;BR /&gt;self._send_output(message_body, encode_chunked=encode_chunked)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\http\client.py", line 1040, in _send_output&lt;BR /&gt;self.send(msg)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\http\client.py", line 980, in send&lt;BR /&gt;self.connect()&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\http\client.py", line 1454, in connect&lt;BR /&gt;self.sock = self._context.wrap_socket(self.sock,&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\ssl.py", line 500, in wrap_socket&lt;BR /&gt;return self.sslsocket_class._create(&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\ssl.py", line 1040, in _create&lt;BR /&gt;self.do_handshake()&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\ssl.py", line 1309, in do_handshake&lt;BR /&gt;self._sslobj.do_handshake()&lt;BR /&gt;ssl.SSLError: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1129)&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 313, in execute&lt;BR /&gt;training_model_object = training_model(data_bunch, **kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_ssd.py", line 483, in __init__&lt;BR /&gt;self.learn = cnn_learner(&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\fastai\vision\learner.py", line 100, in cnn_learner&lt;BR /&gt;model = create_cnn_model(base_arch, data.c, cut, pretrained, lin_ftrs, ps=ps, custom_head=custom_head,&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\fastai\vision\learner.py", line 87, in create_cnn_model&lt;BR /&gt;body = create_body(base_arch, pretrained, cut)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\fastai\vision\learner.py", line 59, in create_body&lt;BR /&gt;model = arch(pretrained)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\torchvision\models\resnet.py", line 288, in resnet34&lt;BR /&gt;return _resnet('resnet34', BasicBlock, [3, 4, 6, 3], pretrained, progress,&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\torchvision\models\resnet.py", line 262, in _resnet&lt;BR /&gt;state_dict = load_state_dict_from_url(model_urls[arch],&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\torch\hub.py", line 524, in load_state_dict_from_url&lt;BR /&gt;download_url_to_file(url, cached_file, hash_prefix, progress=progress)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\torch\hub.py", line 394, in download_url_to_file&lt;BR /&gt;u = urlopen(req)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\urllib\request.py", line 214, in urlopen&lt;BR /&gt;return opener.open(url, data, timeout)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\urllib\request.py", line 517, in open&lt;BR /&gt;response = self._open(req, data)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\urllib\request.py", line 534, in _open&lt;BR /&gt;result = self._call_chain(self.handle_open, protocol, protocol +&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\urllib\request.py", line 494, in _call_chain&lt;BR /&gt;result = func(*args)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\urllib\request.py", line 1389, in https_open&lt;BR /&gt;return self.do_open(http.client.HTTPSConnection, req,&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\urllib\request.py", line 1349, in do_open&lt;BR /&gt;raise URLError(err)&lt;BR /&gt;urllib.error.URLError: &amp;lt;urlopen error [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1129)&amp;gt;&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 385, in execute&lt;BR /&gt;del training_model_object&lt;BR /&gt;UnboundLocalError: local variable 'training_model_object' referenced before assignment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 15:56:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1214241#M394</guid>
      <dc:creator>Aique</dc:creator>
      <dc:date>2022-09-20T15:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to train a deep learning model - not sure what the error means</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1219601#M395</link>
      <description>&lt;P&gt;Hey there, are you trying to refine an existing model?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 20:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1219601#M395</guid>
      <dc:creator>AkshayaSuresh1</dc:creator>
      <dc:date>2022-10-06T20:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to train a deep learning model - not sure what the error means</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1219656#M396</link>
      <description>&lt;P&gt;Hi, thank you for your message.&amp;nbsp;&lt;SPAN&gt;No, I’m trying to train a model from training samples. I was able to label objects for detection. I was also able to export training samples. Every time I run the analysis I get this error. I’m not sure where the problem lies.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 22:43:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1219656#M396</guid>
      <dc:creator>Aique</dc:creator>
      <dc:date>2022-10-06T22:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to train a deep learning model - not sure what the error means</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1220493#M397</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/473089"&gt;@Aique&lt;/a&gt;, It looks like you are using the Resnet-34 Backbone.&amp;nbsp; Do you receive the same error with resnet-18 or 50?&amp;nbsp; I was also curious if you did a manual installation of the required Python libraries or utilized the installers found here: &lt;A href="https://github.com/Esri/deep-learning-frameworks" target="_blank"&gt;https://github.com/Esri/deep-learning-frameworks&lt;/A&gt;.&amp;nbsp; Are you able to import one of the libraries in Pro maybe scikit-learn or torch? Just trying to track down where this error may be coming from.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 20:03:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1220493#M397</guid>
      <dc:creator>YPotawsky</dc:creator>
      <dc:date>2022-10-10T20:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to train a deep learning model - not sure what the error means</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1227775#M398</link>
      <description>&lt;P&gt;hello, im using arcgis pro 3.0 and used the installer from github, i got the same error message when i train a unet with resnet (all of them, 18, 34, 50 ...)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 04:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1227775#M398</guid>
      <dc:creator>zc01</dc:creator>
      <dc:date>2022-11-02T04:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to train a deep learning model - not sure what the error means</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1228154#M399</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/631917"&gt;@zc01&lt;/a&gt;,&amp;nbsp; can you elaborate on both the imagery and the training data?&amp;nbsp; When you labeled objects, what export settings did you utilize? Of particular interest is the output Meta Data format.&amp;nbsp; Are you able to successfully import torch or fastai in a Notebook within Pro and print a list of functions using the dir() method? &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 01:03:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/error-when-trying-to-train-a-deep-learning-model/m-p/1228154#M399</guid>
      <dc:creator>YPotawsky</dc:creator>
      <dc:date>2022-11-03T01:03:07Z</dc:date>
    </item>
  </channel>
</rss>

