<?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: Automating Classify Objects Using Deep Learning Error in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/automating-classify-objects-using-deep-learning/m-p/1333799#M73586</link>
    <description>&lt;P&gt;I'm also experiencing this issue when running arcpy.ia.DetectObjectsUsingDeepLearning in a Python toolbox:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;AttributeError: 'ArcGISObjectDetector' object has no attribute 'updatePixels'&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However inference seems to be working OK. My model uses YOLO trained and run entirely within ArcGIS Pro 3.1.3.&lt;/P&gt;&lt;P&gt;I think this is a bug.&lt;/P&gt;&lt;P&gt;I was able to suppress the error by editing&amp;nbsp;&lt;SPAN&gt;C:\Program Files\ArcGIS\Pro\Resources\Raster\Functions\System\DeepLearning\ArcGISLearn\ArcGISObjectDetector.py and adding this method to the ArcGISObjectDetector class:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def updatePixels():
        pass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2023 16:27:56 GMT</pubDate>
    <dc:creator>p-vdp</dc:creator>
    <dc:date>2023-09-29T16:27:56Z</dc:date>
    <item>
      <title>Automating Classify Objects Using Deep Learning Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-classify-objects-using-deep-learning/m-p/1327511#M72937</link>
      <description>&lt;P&gt;I am trying to create a python script to automate the "Detect Objects Using Deep Learning" tool box. I have deduced that my error comes from running the following python command:&lt;BR /&gt;with arcpy.EnvManager(processorType="GPU"):&lt;BR /&gt;out_classified_raster = arcpy.ia.DetectObjectsUsingDeepLearning(&lt;BR /&gt;in_raster="tw-a_resized.png",&lt;BR /&gt;out_detected_objects=save_output_raster_path,&lt;BR /&gt;in_model_definition = pre_trained_model,&lt;BR /&gt;arguments="padding 56;batch_size 4;threshold 0.9;return_bboxes False;test_time_augmentation False;merge_policy mean;tile_size 224",&lt;BR /&gt;run_nms="NO_NMS",&lt;BR /&gt;confidence_score_field="Confidence",&lt;BR /&gt;class_value_field="Class",&lt;BR /&gt;max_overlap_ratio=0,&lt;BR /&gt;processing_mode="PROCESS_AS_MOSAICKED_IMAGE"&lt;BR /&gt;)&lt;BR /&gt;out_classified_raster.save(None)&lt;BR /&gt;(I just copied the python command from the geoprocessing window.)&lt;BR /&gt;DetectObjectsUsingDeepLearning tool worked, it was able to classify my raster no issues&lt;BR /&gt;but at the end of the code I get the following error:&lt;BR /&gt;AttributeError: 'ArcGISInstanceDetector' object has no attribute 'updatePixels'&lt;BR /&gt;Failed to execute (Tool).&lt;BR /&gt;&lt;BR /&gt;I do not have&amp;nbsp;'ArcGISInstanceDetector' or&amp;nbsp;'updatePixels' in my script and this error must be related when executing 'DetectObjectsUsingDeepLearning '. Is there a way to patch and fix this bug so my script doesn't error out when I Detect objects? Alternatively, is there a way to force my python script to succeed if it classifies the raster with no issues?&lt;BR /&gt;Error Snap Shot:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-09-11 174750.png" style="width: 974px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80374i6B074626FE21B182/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-09-11 174750.png" alt="Screenshot 2023-09-11 174750.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Classified Raster Snapshot:&lt;/P&gt;&lt;P&gt;DetectObjectsUsingDeepLearning is working as intended but I am still getting this unknown error...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="class.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80375i2784A022419622F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="class.png" alt="class.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 21:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-classify-objects-using-deep-learning/m-p/1327511#M72937</guid>
      <dc:creator>DerickTrinidad</dc:creator>
      <dc:date>2023-09-11T21:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Classify Objects Using Deep Learning Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-classify-objects-using-deep-learning/m-p/1331614#M73339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/714889"&gt;@DerickTrinidad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGISInstanceDetector should be at your C:\Program Files\ArcGIS\Pro\Resources\Raster\Functions\System\DeepLearning\ArcGISLearn folder it is installed by ArcGIS Pro installer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like you're using an MaskRCNN model that's why the tool is trying to use&amp;nbsp;ArcGISInstanceDetector.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you confirm the same model works with the Detect Objects Using Deep Learning tool? if yes, can you share your script? If the tool works, the script should also work. Did you train the model in ArcGIS Pro?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: We have an imagery dedicated community -&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-image-analyst/ct-p/arcgis-image-analyst" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-image-analyst/ct-p/arcgis-image-analyst&lt;/A&gt;&amp;nbsp;and here you might get response sooner.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pavan Yadav | Product Engineer&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Esri | 380 New York | Redlands, 92373 | USA&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/pavan-yadav-1846606/" target="_blank" rel="noopener"&gt;https://www.linkedin.com/in/pavan-yadav-1846606/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 17:41:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-classify-objects-using-deep-learning/m-p/1331614#M73339</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2023-10-24T17:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Classify Objects Using Deep Learning Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-classify-objects-using-deep-learning/m-p/1333799#M73586</link>
      <description>&lt;P&gt;I'm also experiencing this issue when running arcpy.ia.DetectObjectsUsingDeepLearning in a Python toolbox:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;AttributeError: 'ArcGISObjectDetector' object has no attribute 'updatePixels'&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However inference seems to be working OK. My model uses YOLO trained and run entirely within ArcGIS Pro 3.1.3.&lt;/P&gt;&lt;P&gt;I think this is a bug.&lt;/P&gt;&lt;P&gt;I was able to suppress the error by editing&amp;nbsp;&lt;SPAN&gt;C:\Program Files\ArcGIS\Pro\Resources\Raster\Functions\System\DeepLearning\ArcGISLearn\ArcGISObjectDetector.py and adding this method to the ArcGISObjectDetector class:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def updatePixels():
        pass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 16:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-classify-objects-using-deep-learning/m-p/1333799#M73586</guid>
      <dc:creator>p-vdp</dc:creator>
      <dc:date>2023-09-29T16:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Classify Objects Using Deep Learning Error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-classify-objects-using-deep-learning/m-p/1341040#M74365</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/85614"&gt;@p-vdp&lt;/a&gt;&amp;nbsp;you might be right about this problem being a bug. Is it possible for your to share your test data with me (if so, please email me at - pyadav AT esri.com)? Or you can contact Esri Support Services. I will also try to test it with my data at my end to see if I can reproduce. thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 17:44:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-classify-objects-using-deep-learning/m-p/1341040#M74365</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2023-10-24T17:44:17Z</dc:date>
    </item>
  </channel>
</rss>

