<?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 Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1508545#M85861</link>
    <description>&lt;P&gt;I guess it is as written before a missing GPU or the driver for the GPU. Should the GPU be correctly set up, do you have the Deep Learning Libraries installed? &lt;A href="https://github.com/Esri/deep-learning-frameworks?tab=readme-ov-file" target="_blank" rel="noopener"&gt;https://github.com/Esri/deep-learning-frameworks?tab=readme-ov-file&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2024 13:21:09 GMT</pubDate>
    <dc:creator>CordulaGöke</dc:creator>
    <dc:date>2024-07-23T13:21:09Z</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-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1401852#M81063</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please find below the error message and screenshots.&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&amp;nbsp;&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;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&amp;nbsp;&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;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;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Remya_Ravikumar_0-1711618697986.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99301i28FBA52B5CE28224/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Remya_Ravikumar_0-1711618697986.png" alt="Remya_Ravikumar_0-1711618697986.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 09:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1401852#M81063</guid>
      <dc:creator>Remya_Ravikumar</dc:creator>
      <dc:date>2024-03-28T09:39:15Z</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-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1401864#M81064</link>
      <description>&lt;P&gt;Do you meet the requirements?&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/pretrained-models/latest/imagery/introduction-to-segment-anything-model-sam-.htm" target="_blank"&gt;Introduction to the model—ArcGIS pretrained models | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 10:27:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1401864#M81064</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-03-28T10:27:11Z</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-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1403686#M81195</link>
      <description>&lt;P&gt;Hi Dan!&lt;BR /&gt;Yes, it meets the necessary requirements specified in the documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 04:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1403686#M81195</guid>
      <dc:creator>Remya_Ravikumar</dc:creator>
      <dc:date>2024-04-01T04:46:24Z</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-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1403754#M81199</link>
      <description>&lt;P&gt;it is this error message that seems to be the issue&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Found no NVIDIA driver on your system&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 10:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1403754#M81199</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-04-01T10:55:47Z</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-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1508151#M85833</link>
      <description>&lt;P&gt;Hey Remya&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you find a solution to this? I am experiencing the same problem&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 17:34:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1508151#M85833</guid>
      <dc:creator>Ntokozo_Mnikathi</dc:creator>
      <dc:date>2024-07-22T17:34:51Z</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-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1508545#M85861</link>
      <description>&lt;P&gt;I guess it is as written before a missing GPU or the driver for the GPU. Should the GPU be correctly set up, do you have the Deep Learning Libraries installed? &lt;A href="https://github.com/Esri/deep-learning-frameworks?tab=readme-ov-file" target="_blank" rel="noopener"&gt;https://github.com/Esri/deep-learning-frameworks?tab=readme-ov-file&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 13:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1508545#M85861</guid>
      <dc:creator>CordulaGöke</dc:creator>
      <dc:date>2024-07-23T13:21:09Z</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-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1580835#M92523</link>
      <description>&lt;P&gt;As noted by DanPatterson above, for me it was making sure that the NVIDIA graphics card was correctly set on the environment tab of the tool&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 14:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/detect-object-using-deep-learning-unable-to/m-p/1580835#M92523</guid>
      <dc:creator>Jeremy_Olynik</dc:creator>
      <dc:date>2025-01-31T14:52:39Z</dc:date>
    </item>
  </channel>
</rss>

