<?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: Detect Object Using Deep Learning: Unable to initialize python raster function with scalar arguments. in ArcGIS Image Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-image-analyst-questions/detect-object-using-deep-learning-unable-to/m-p/1406567#M631</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/780260"&gt;@Remya_Ravikumar&lt;/a&gt;&amp;nbsp;in your question I see '&lt;SPAN&gt;4-Band Bundle' can you please check you're using i&lt;/SPAN&gt;nput—8-bit, 3-band imagery.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error also shows this, "&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://www.nvidia.com/Download/index.aspx" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.nvidia.com/Download/index.aspx&lt;/A&gt;"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This&amp;nbsp; is compute-intensive, and a GPU with minimum CUDA compute capability of 6.0 is recommended. This model requires a GPU with at least 8 GB of GPU memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/pretrained-models/latest/imagery/introduction-to-segment-anything-model-sam-.htm" target="_blank"&gt;https://doc.arcgis.com/en/pretrained-models/latest/imagery/introduction-to-segment-anything-model-sam-.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 18:45:22 GMT</pubDate>
    <dc:creator>PavanYadav</dc:creator>
    <dc:date>2024-04-05T18:45:22Z</dc:date>
    <item>
      <title>Detect Object Using Deep Learning: Unable to initialize python raster function with scalar arguments.</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/detect-object-using-deep-learning-unable-to/m-p/1401849#M625</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I was trying to use the " Detect objects using Deep learning" tool with pretrained model already available in living atlas. I used Segment Anything Model (SAM) model. My input was a tiff file that I downloaded from EUSI (OR2A 50 cm 4-Band Bundle | Munich, Germany,&amp;nbsp;Imagery, Multispectral, WorldView).&amp;nbsp;&lt;BR /&gt;I am encountering the following error.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;A raster error has occurred. The messages that follow will provide more detail.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Unspecified error [Failed to generate table]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;[Missing raster: [%s]]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Unable to initialize python raster function with scalar arguments. [C:\Users\Admin\AppData\Local\Temp\ArcGISProTemp29824\SAM.dlpk\SAM.py]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;File "C:\Users\Admin\AppData\Local\Temp\ArcGISProTemp29824\SAM.dlpk\SAM.py", line 233, in initialize&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;torch.cuda.set_device(device)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\torch\cuda\__init__.py", line 261, in set_device&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;torch._C._cuda_setDevice(device)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\torch\cuda\__init__.py", line 170, in _lazy_init&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;torch._C._cuda_init()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from &lt;A href="http://www.nvidia.com/Download/index.aspx" target="_blank"&gt;http://www.nvidia.com/Download/index.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Unable to initialize python raster function with scalar arguments.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Unspecified error [Failed to generate table]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;[Missing raster: [%s]]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Unable to initialize python raster function with scalar arguments. [C:\Users\Admin\AppData\Local\Temp\ArcGISProTemp29824\SAM.dlpk\SAM.py]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;File "C:\Users\Admin\AppData\Local\Temp\ArcGISProTemp29824\SAM.dlpk\SAM.py", line 233, in initialize&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;torch.cuda.set_device(device)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\torch\cuda\__init__.py", line 261, in set_device&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;torch._C._cuda_setDevice(device)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\torch\cuda\__init__.py", line 170, in _lazy_init&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;torch._C._cuda_init()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from &lt;A href="http://www.nvidia.com/Download/index.aspx" target="_blank"&gt;http://www.nvidia.com/Download/index.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Unable to initialize python raster function with scalar arguments.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Failed to execute (DetectObjectsUsingDeepLearning).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Remya_Ravikumar_0-1711618135295.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99298i095E8B3459D78689/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Remya_Ravikumar_0-1711618135295.png" alt="Remya_Ravikumar_0-1711618135295.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The tool is working fine when the input is a jpeg image. But throws the above error whenever tiff file is used.&lt;BR /&gt;I tried with different images, every time the same error is occurring. Only in the case of .jpeg image the tool is running successfully.&lt;BR /&gt;Can anyone clarify where I am going wrong and if any kind of processing is needed before using a tiff as input.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 09:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/detect-object-using-deep-learning-unable-to/m-p/1401849#M625</guid>
      <dc:creator>Remya_Ravikumar</dc:creator>
      <dc:date>2024-03-28T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Detect Object Using Deep Learning: Unable to initialize python raster function with scalar arguments.</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/detect-object-using-deep-learning-unable-to/m-p/1406567#M631</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/780260"&gt;@Remya_Ravikumar&lt;/a&gt;&amp;nbsp;in your question I see '&lt;SPAN&gt;4-Band Bundle' can you please check you're using i&lt;/SPAN&gt;nput—8-bit, 3-band imagery.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error also shows this, "&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://www.nvidia.com/Download/index.aspx" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.nvidia.com/Download/index.aspx&lt;/A&gt;"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This&amp;nbsp; is compute-intensive, and a GPU with minimum CUDA compute capability of 6.0 is recommended. This model requires a GPU with at least 8 GB of GPU memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/pretrained-models/latest/imagery/introduction-to-segment-anything-model-sam-.htm" target="_blank"&gt;https://doc.arcgis.com/en/pretrained-models/latest/imagery/introduction-to-segment-anything-model-sam-.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 18:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/detect-object-using-deep-learning-unable-to/m-p/1406567#M631</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2024-04-05T18:45:22Z</dc:date>
    </item>
  </channel>
</rss>

