<?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 Detect Objects Using Deep Learning error: Python raster function is unable to vectorize the data in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/detect-objects-using-deep-learning-error-python/m-p/1696137#M102774</link>
    <description>&lt;P&gt;I'm having the same issue discussed &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/detect-objects-using-deep-learning-raster-error/m-p/1600045" target="_self"&gt;here&lt;/A&gt; but I'm unable to find a workaround. I've attached the full error, but I think it boils down to this line of code:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\fastai\vision\image.py", line 560, in _affine_grid&amp;nbsp;&amp;nbsp;&amp;nbsp; N, C, H, W = size&amp;nbsp;&amp;nbsp;&amp;nbsp; ^^^^^^^^^^ValueError: not enough values to unpack (expected 4, got 3)Python Raster Function's .vectorize() method returned nothing.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am running ArcGIS Pro 3.5.4 and have a model trained with Pascal VOC metadata format. This error occurs regardless of which model type I run (e.g. Faster R-CNN, RetinaNet, MMDetection, etc.). Using the same training data and a model with RCNN Masks metadata format, I have no issues detecting objects using Mask R-CNN. I'd just like to run some of the other model types for comparison.&lt;/P&gt;&lt;P&gt;I've tried updated some of the relevant packages in Package Manager, since several of them are not using the latest, but it seems there are dependencies preventing me from getting newer versions.&lt;/P&gt;&lt;P&gt;Is anyone able to offer advice here? Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2026 15:13:38 GMT</pubDate>
    <dc:creator>AdamSilberfein</dc:creator>
    <dc:date>2026-04-14T15:13:38Z</dc:date>
    <item>
      <title>Detect Objects Using Deep Learning error: Python raster function is unable to vectorize the data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/detect-objects-using-deep-learning-error-python/m-p/1696137#M102774</link>
      <description>&lt;P&gt;I'm having the same issue discussed &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/detect-objects-using-deep-learning-raster-error/m-p/1600045" target="_self"&gt;here&lt;/A&gt; but I'm unable to find a workaround. I've attached the full error, but I think it boils down to this line of code:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\fastai\vision\image.py", line 560, in _affine_grid&amp;nbsp;&amp;nbsp;&amp;nbsp; N, C, H, W = size&amp;nbsp;&amp;nbsp;&amp;nbsp; ^^^^^^^^^^ValueError: not enough values to unpack (expected 4, got 3)Python Raster Function's .vectorize() method returned nothing.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am running ArcGIS Pro 3.5.4 and have a model trained with Pascal VOC metadata format. This error occurs regardless of which model type I run (e.g. Faster R-CNN, RetinaNet, MMDetection, etc.). Using the same training data and a model with RCNN Masks metadata format, I have no issues detecting objects using Mask R-CNN. I'd just like to run some of the other model types for comparison.&lt;/P&gt;&lt;P&gt;I've tried updated some of the relevant packages in Package Manager, since several of them are not using the latest, but it seems there are dependencies preventing me from getting newer versions.&lt;/P&gt;&lt;P&gt;Is anyone able to offer advice here? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 15:13:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/detect-objects-using-deep-learning-error-python/m-p/1696137#M102774</guid>
      <dc:creator>AdamSilberfein</dc:creator>
      <dc:date>2026-04-14T15:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Detect Objects Using Deep Learning error: Python raster function is unable to vectorize the data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/detect-objects-using-deep-learning-error-python/m-p/1700125#M103051</link>
      <description>&lt;P&gt;Here's some information I learned from reviewing other cases:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That message is coming from the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Python Raster Function / deep learning model code&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;(fastai/PyTorch), and it indicates your model (or the raster function calling it) passed an input with the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;wrong shape&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;into an affine/warping step:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;ValueError: not enough values to unpack (expected 4, got 3)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;fastai.vision.image._affine_grid&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;means the code expected a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;4D tensor size&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(N, C, H, W)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(batch, channels, height, width) but received only&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;3 values&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(typically&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(C, H, W)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(H, W, C)), so it can’t proceed.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The trailing message&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;“Python Raster Function's .vectorize() method returned nothing”&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;means the raster function’s vectorization step produced&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;no features&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;(often because inference failed earlier due to the shape error, or because the result was empty), so the geoprocessing tool can’t generate an output feature class/table.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;If this happened while running&amp;nbsp;&lt;STRONG&gt;Detect Objects Using Deep Learning / similar deep learning tools in ArcGIS Pro 3.5.x&lt;/STRONG&gt;, there is a related known issue where vectorization fails after the python raster function step:&amp;nbsp;&amp;nbsp;&lt;A href="https://support.esri.com/en-us/bug/the-detect-objects-using-deep-learning-tool-fails-and-r-bug-000182421" target="_blank"&gt;BUG-000182421 for ArcGIS Pro&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 05 May 2026 15:14:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/detect-objects-using-deep-learning-error-python/m-p/1700125#M103051</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2026-05-05T15:14:59Z</dc:date>
    </item>
  </channel>
</rss>

