<?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 ValueError for Arcpy Script using Detect Objects Using Deep Learning in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/valueerror-for-arcpy-script-using-detect-objects/m-p/1378280#M78357</link>
    <description>&lt;P&gt;I'm trying to use Detect Objects using Deep Learning in a python toolbox script. Unfortunately, I'm running into a bit of an error.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;ValueError: Variable cnn_l1weights already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?
Python Raster Function's .vectorize() method returned nothing.
Failed to execute (DetectObjectsUsingDeepLearning)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;arcpy.CheckOutExtension("ImageAnalyst")&lt;BR /&gt;with arcpy.EnvManager(scratchWorkspace=export_gdb):&lt;BR /&gt;arcpy.ia.DetectObjectsUsingDeepLearning(&lt;BR /&gt;in_raster="Final_Raster",&lt;BR /&gt;out_detected_objects="Road_Centerlines",&lt;BR /&gt;in_model_definition="model_item_in_portal",&lt;BR /&gt;arguments="batch_size 4",&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;/P&gt;&lt;P&gt;Utilizing this particular code with model_item_in_portal referencing the Road Extraction - Global uploaded to my enterprise portal. Is there any kind of workaround for this so I can include this in my python tool?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2024 18:20:57 GMT</pubDate>
    <dc:creator>jbrower</dc:creator>
    <dc:date>2024-02-05T18:20:57Z</dc:date>
    <item>
      <title>ValueError for Arcpy Script using Detect Objects Using Deep Learning</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/valueerror-for-arcpy-script-using-detect-objects/m-p/1378280#M78357</link>
      <description>&lt;P&gt;I'm trying to use Detect Objects using Deep Learning in a python toolbox script. Unfortunately, I'm running into a bit of an error.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;ValueError: Variable cnn_l1weights already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?
Python Raster Function's .vectorize() method returned nothing.
Failed to execute (DetectObjectsUsingDeepLearning)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;arcpy.CheckOutExtension("ImageAnalyst")&lt;BR /&gt;with arcpy.EnvManager(scratchWorkspace=export_gdb):&lt;BR /&gt;arcpy.ia.DetectObjectsUsingDeepLearning(&lt;BR /&gt;in_raster="Final_Raster",&lt;BR /&gt;out_detected_objects="Road_Centerlines",&lt;BR /&gt;in_model_definition="model_item_in_portal",&lt;BR /&gt;arguments="batch_size 4",&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;/P&gt;&lt;P&gt;Utilizing this particular code with model_item_in_portal referencing the Road Extraction - Global uploaded to my enterprise portal. Is there any kind of workaround for this so I can include this in my python tool?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 18:20:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/valueerror-for-arcpy-script-using-detect-objects/m-p/1378280#M78357</guid>
      <dc:creator>jbrower</dc:creator>
      <dc:date>2024-02-05T18:20:57Z</dc:date>
    </item>
  </channel>
</rss>

