<?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 Problem with Classify Pixel DLPK in ArcGIS Image Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1314634#M478</link>
    <description>&lt;P&gt;I have a problem using DLPK Super Resolution to apply to a Raster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Function Read Error [Raster Function Template]&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\jpolanco\AppData\Local\Temp\ArcGISProTemp11604\super_resolution.dlpk\ArcGISSuperResolution.py", line 168, in updatePixels&lt;BR /&gt;xx = self.child_image_classifier.updatePixels(tlc, shape, props, **pixelBlocks).astype(props['pixelType'], copy=False)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\_superres.py", line 215, in updatePixels&lt;BR /&gt;superres_prediction = util.pixel_classify_superres_image(&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\util.py", line 495, in pixel_classify_superres_image&lt;BR /&gt;img_normed = norm(tiles.permute(0, 2, 3, 1)).permute(0, 3, 1, 2)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\util.py", line 22, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;norm = lambda x: (x - mean) / std&lt;BR /&gt;ValueError: operands could not be broadcast together with shapes (4,400,400,4) (3,)&lt;BR /&gt;Python raster function's .updatePixels() method returned nothing.&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Function Read Error [Raster Function Template]&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\jpolanco\AppData\Local\Temp\ArcGISProTemp11604\super_resolution.dlpk\ArcGISSuperResolution.py", line 168, in updatePixels&lt;BR /&gt;xx = self.child_image_classifier.updatePixels(tlc, shape, props, **pixelBlocks).astype(props['pixelType'], copy=False)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\_superres.py", line 215, in updatePixels&lt;BR /&gt;superres_prediction = util.pixel_classify_superres_image(&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\util.py", line 495, in pixel_classify_superres_image&lt;BR /&gt;img_normed = norm(tiles.permute(0, 2, 3, 1)).permute(0, 3, 1, 2)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\util.py", line 22, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;norm = lambda x: (x - mean) / std&lt;BR /&gt;ValueError: operands could not be broadcast together with shapes (4,400,400,4) (3,)&lt;BR /&gt;Python raster function's .updatePixels() method returned nothing.&lt;BR /&gt;Failed to execute (ClassifyPixelsUsingDeepLearning).&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 15:48:08 GMT</pubDate>
    <dc:creator>johnpol</dc:creator>
    <dc:date>2023-08-02T15:48:08Z</dc:date>
    <item>
      <title>Problem with Classify Pixel DLPK</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1314634#M478</link>
      <description>&lt;P&gt;I have a problem using DLPK Super Resolution to apply to a Raster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Function Read Error [Raster Function Template]&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\jpolanco\AppData\Local\Temp\ArcGISProTemp11604\super_resolution.dlpk\ArcGISSuperResolution.py", line 168, in updatePixels&lt;BR /&gt;xx = self.child_image_classifier.updatePixels(tlc, shape, props, **pixelBlocks).astype(props['pixelType'], copy=False)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\_superres.py", line 215, in updatePixels&lt;BR /&gt;superres_prediction = util.pixel_classify_superres_image(&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\util.py", line 495, in pixel_classify_superres_image&lt;BR /&gt;img_normed = norm(tiles.permute(0, 2, 3, 1)).permute(0, 3, 1, 2)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\util.py", line 22, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;norm = lambda x: (x - mean) / std&lt;BR /&gt;ValueError: operands could not be broadcast together with shapes (4,400,400,4) (3,)&lt;BR /&gt;Python raster function's .updatePixels() method returned nothing.&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Function Read Error [Raster Function Template]&lt;BR /&gt;Unable to read pixels from the python raster function.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\jpolanco\AppData\Local\Temp\ArcGISProTemp11604\super_resolution.dlpk\ArcGISSuperResolution.py", line 168, in updatePixels&lt;BR /&gt;xx = self.child_image_classifier.updatePixels(tlc, shape, props, **pixelBlocks).astype(props['pixelType'], copy=False)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\_superres.py", line 215, in updatePixels&lt;BR /&gt;superres_prediction = util.pixel_classify_superres_image(&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\util.py", line 495, in pixel_classify_superres_image&lt;BR /&gt;img_normed = norm(tiles.permute(0, 2, 3, 1)).permute(0, 3, 1, 2)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\util.py", line 22, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;norm = lambda x: (x - mean) / std&lt;BR /&gt;ValueError: operands could not be broadcast together with shapes (4,400,400,4) (3,)&lt;BR /&gt;Python raster function's .updatePixels() method returned nothing.&lt;BR /&gt;Failed to execute (ClassifyPixelsUsingDeepLearning).&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1314634#M478</guid>
      <dc:creator>johnpol</dc:creator>
      <dc:date>2023-08-02T15:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Classify Pixel DLPK</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1319791#M479</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/667148"&gt;@johnpol&lt;/a&gt;&amp;nbsp;by any chance your model was trained with 3-band rasters and the above errors was thrown when the model was used against a 4-band raster?&lt;/P&gt;&lt;P&gt;Number of bands (and,&amp;nbsp; other properties should match e.g. you train a model with 100 cm resolution images, it might not give the best results on 10 cm images).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 17:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1319791#M479</guid>
      <dc:creator>pyadav</dc:creator>
      <dc:date>2023-10-24T17:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Classify Pixel DLPK</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1321165#M480</link>
      <description>&lt;P&gt;Yes, I found the problem, it was that I used a Raster with 4 bands. I forgot to finish this post, althought thanks for the answer jajaja. Trying to train a model with good results&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 14:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1321165#M480</guid>
      <dc:creator>johnpol</dc:creator>
      <dc:date>2023-08-22T14:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Classify Pixel DLPK</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1354811#M526</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;So if I trained the model with a 3- band raster I won't be able to use it to detect with a 4 band raster? why is that?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 19:40:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1354811#M526</guid>
      <dc:creator>AlexaVerónicaGarcíaBarrantes</dc:creator>
      <dc:date>2023-11-29T19:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Classify Pixel DLPK</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1496249#M700</link>
      <description>&lt;P&gt;I am a newby of arcgis pro. can some one give me a toturial on how to prepare data for this dlpk model?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://doc.arcgis.com/en/pretrained-models/latest/imagery/using-land-cover-classification-sentinel-2-.htm" target="_blank"&gt;Use the model—ArcGIS pretrained models | Documentation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;i want to try this.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2024 19:20:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/problem-with-classify-pixel-dlpk/m-p/1496249#M700</guid>
      <dc:creator>fenglinhan1</dc:creator>
      <dc:date>2024-06-22T19:20:50Z</dc:date>
    </item>
  </channel>
</rss>

