<?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: ExportTrainingTool error resnet_family not defined in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1059151#M61171</link>
    <description>&lt;P&gt;Desperately need a solution to this same problem. Please advise if anyone found a solution.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2021 20:21:40 GMT</pubDate>
    <dc:creator>desalas</dc:creator>
    <dc:date>2021-05-18T20:21:40Z</dc:date>
    <item>
      <title>ExportTrainingTool error resnet_family not defined</title>
      <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1003203#M59089</link>
      <description>&lt;P&gt;I am trying to create a script (relatively new to python) to automate running ExportTrainingTool, but I keep getting an error. I have all the necessary packages installed as far as I can tell and I'm in my "deeplearning" environment where I added the packages. The error I'm assuming has to do with the backbone model parameter and the error I get is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;NameError: name '_resnet_family' is not defined&lt;/P&gt;&lt;P&gt;I have image analyst, and I have previously run this as a gp tool in ArcPro successfully (a few months ago so something could have changed).&lt;/P&gt;&lt;P&gt;My parameters are:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;in_folder = "C:/Users/18602/Documents/Masters Program/final_project/Geog6180_FinalProject/LabeledObjects"
out_folder = "C:/Users/18602/Documents/Masters Program/final_project/Geog6180_FinalProject"
max_epochs = 25 #A maximum epoch of one means the dataset will be passed forward and backward through the neural network one time.
model_type = "SSD" #Single Shot Detection - object detection. This is the method of the model, and was chosen as it is the example method for well pad selection
batch_size = 2
arg = "grids '[4, 2, 1]';zooms '[0.7, 1.0, 1.3]';ratios '[[1, 1], [1, 0.5], [0.5, 1]]'" #default grid zoom and ratio values
#learning_rate = 0.003
backbone_model = "RESNET34"
#pretrained_model =
validation_percent = 10 #default
stop_training = "STOP_TRAINING"
freeze = "FREEZE_MODEL"

# Execute
TrainDeepLearningModel(in_folder, out_folder, max_epochs, model_type,
                       batch_size, arg, None, backbone_model,None,
                       validation_percent, stop_training, freeze)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 23:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1003203#M59089</guid>
      <dc:creator>JuliaSurkis1</dc:creator>
      <dc:date>2020-11-19T23:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTrainingTool error resnet_family not defined</title>
      <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1003241#M59090</link>
      <description>&lt;LI-CODE lang="python"&gt;arcpy.CheckOutExtension("ImageAnalyst")&lt;/LI-CODE&gt;&lt;P&gt;seems to be missing from your example&lt;/P&gt;&lt;P&gt;See the code examples in&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/image-analyst/train-deep-learning-model.htm" target="_self"&gt;train-deep-learning-model&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 22:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1003241#M59090</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-11-19T22:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTrainingTool error resnet_family not defined</title>
      <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1003250#M59091</link>
      <description>&lt;P&gt;Thanks, but I forgot to include the first part of my code which is this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Import system modules  
import arcpy
from arcpy.ia import *


# Check out the ArcGIS Image Analyst extension license 
arcpy.CheckOutExtension("ImageAnalyst")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had assumed the problem was in the part I originally posted, but it's probably important to include everything&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 23:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1003250#M59091</guid>
      <dc:creator>JuliaSurkis1</dc:creator>
      <dc:date>2020-11-19T23:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTrainingTool error resnet_family not defined</title>
      <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1005281#M59142</link>
      <description>&lt;P&gt;I have a similar problem in Pro.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Although I have a cloned environment with the "deep learning" modules, for some reason it keeps switching to base environment, which in turn brings up the _resnet family error.&lt;BR /&gt;&lt;BR /&gt;In the end I ran the script in an IDE with the relevant environment and it worked fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 10:24:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1005281#M59142</guid>
      <dc:creator>StewartWareing</dc:creator>
      <dc:date>2020-11-28T10:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTrainingTool error resnet_family not defined</title>
      <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1013898#M59406</link>
      <description>&lt;P&gt;I'm unsuccesfully trying to train a Feature Classifier and have been&amp;nbsp; plagued by the same type of error message on ArcGIS Pro 2.7, regardless of training data and format. The Train Deep Learning Tool refuses to execute complaining a parameter is missing. Hovering over the error indicator appearing next to the Input Training Data field yields the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 032659 updateParameters Error: 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.validate.py", line 261, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.validate.py", line 117, in updateParameters&lt;BR /&gt;backbone_list = training_model._supported_backbones()&lt;BR /&gt;File "C:\Users\p.funovits\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone3\lib\site-packages\arcgis\learn\models\_classifier.py", line 179, in _supported_backbones&lt;BR /&gt;return [*_resnet_family, models.mobilenet_v2.__name__]&lt;BR /&gt;NameError: name '_resnet_family' is not defined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any remedy or workaround for this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 13:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1013898#M59406</guid>
      <dc:creator>7177</dc:creator>
      <dc:date>2021-01-05T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTrainingTool error resnet_family not defined</title>
      <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1059151#M61171</link>
      <description>&lt;P&gt;Desperately need a solution to this same problem. Please advise if anyone found a solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 20:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1059151#M61171</guid>
      <dc:creator>desalas</dc:creator>
      <dc:date>2021-05-18T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTrainingTool error resnet_family not defined</title>
      <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1100168#M62522</link>
      <description>&lt;P&gt;you'll need to change your python environment to the one where your deep learning packages are installed. restart arcgis pro, and then try again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 02:50:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1100168#M62522</guid>
      <dc:creator>JasperWong</dc:creator>
      <dc:date>2021-09-21T02:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTrainingTool error resnet_family not defined</title>
      <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1128578#M63330</link>
      <description>&lt;P&gt;HEllo Every one&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently I have face with the following problem&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.google.com/search?rlz=1C1GCEU_enNL982NL982&amp;amp;q=error+032659+updateparameters+error:+traceback+(most+recent+call+last):+file+c:%5Cprogram+files%5Carcgis%5Cpro%5Cresources%5Carctoolbox%5Ctoolboxes%5Cimage+analyst+tools.tbx%5Ctraindeeplearningmodel.tool%5Ctool.script.validate.py,+line+653,+in+%3Cmodule%3E+file+c:%5Cprogram+files%5Carcgis%5Cpro%5Cresources%5Carctoolbox%5Ctoolboxes%5Cimage+analyst+tools.tbx%5Ctraindeeplearningmodel.tool%5Ctool.script.validate.py,+line+287,+in+updateparameters+backbone_list+%3D+training_model._supported_backbones()+file+c:%5Cprogram+files%5Carcgis%5Cpro%5Cbin%5Cpython%5Cenvs%5Carcgispro-py3%5Clib%5Csite-packages%5Carcgis%5Clearn%5Cmodels%5C_unet.py,+line+313,+in+_supported_backbones+return+%5B*_resnet_family%5D+nameerror:+name+_resnet_family+is+not+defined&amp;amp;sa=X&amp;amp;ved=2ahUKEwjj64jZ0fn0AhVk_rsIHSrJDT4QgwN6BAgBEAE" target="_blank"&gt;&lt;STRONG&gt;error 032659 updateparameters error: traceback (most recent call last): file c:\program files\arcgis\pro\resources\arctoolbox\toolboxes\image analyst tools.tbx\traindeeplearningmodel.tool\tool.script.validate.py, line 653, in &amp;lt;module&amp;gt; file c:\program files\arcgis\pro\resources\arctoolbox\toolboxes\image analyst tools.tbx\traindeeplearningmodel.tool\tool.script.validate.py, line 287, in updateparameters backbone_list = training_model._supported_backbones() file c:\program files\arcgis\pro\bin\python\envs\arcgispro-py3\lib\site-packages\arcgis\learn\models\_unet.py, line 313, in _supported_backbones return [*_resnet_family] nameerror: name _resnet_family is not defined&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have no idea how to fix it please help&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 09:51:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1128578#M63330</guid>
      <dc:creator>wondimagegnabebe</dc:creator>
      <dc:date>2021-12-23T09:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTrainingTool error resnet_family not defined</title>
      <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1133524#M63503</link>
      <description>&lt;P&gt;I'm having the same issue in the Geoprocessing tool Train Deep Learning Model when inputting my chips. My licenses are correct.&amp;nbsp;Followed the Geospatial Deep Learning Video &lt;A href="https://www.youtube.com/watch?v=adrqRm4q5Ic" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;13 minutes in.&amp;nbsp;&lt;BR /&gt;Gives me Error 032659, which is a broken link. The details involve NameError : name '_resnet_family' is not defined&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 18:49:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1133524#M63503</guid>
      <dc:creator>PeterGeorge_GEOJobe</dc:creator>
      <dc:date>2022-01-13T18:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTrainingTool error resnet_family not defined</title>
      <link>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1202311#M65293</link>
      <description>&lt;P&gt;That means that you have not successfully installed the deep learning framework，the "_resnet_family= [models.resnet18.__name__, models.resnet34.__name__, models.resnet50.__name__,models.resnet101.__name__, models.resnet152.__name__]" ,you can try to input this code in python window:“from torchvision import models”,maybe you will get "ModuleNotFoundError: No module named 'torchvision'",so you should reinstall deep learning framwork for ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 09:18:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttrainingtool-error-resnet-family-not-defined/m-p/1202311#M65293</guid>
      <dc:creator>lihongzhu</dc:creator>
      <dc:date>2022-08-12T09:18:20Z</dc:date>
    </item>
  </channel>
</rss>

