<?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: GPU not working in ArcGIS Image Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1537706#M726</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2666"&gt;@PavanYadav&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m using ArcGIS Notebooks in ArcGIS Online with GPU support to train a deep learning model (MaskRCNN) and publish the package (.dlpk). The training and publishing work well, but object detection with DetectObjectsUsingDeepLearning in ArcPy takes about 15 hours, even with GPU.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Web Applications:&lt;/STRONG&gt; Is it possible to use the deep learning package in web applications for real-time object detection?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Optimization:&lt;/STRONG&gt; How can I reduce the detection time? Is it normal for it to take this long even with GPU?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Recommended Workflow:&lt;/STRONG&gt; What is the most efficient workflow for object detection with ArcGIS Online?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2024 12:07:20 GMT</pubDate>
    <dc:creator>LeonelRivero_79</dc:creator>
    <dc:date>2024-09-12T12:07:20Z</dc:date>
    <item>
      <title>GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1257899#M379</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to use GPU capabilities to train a deep learning model in arcgis pro using the 'train deep learning model' tool. I used the msi installation to install deep learning capabilities. It's working fine but is so slooooooow!&lt;/P&gt;&lt;P&gt;From other posts, I checked that Cuda is properly installed and that the python command&amp;nbsp; torch.cuda.is_available() returns True.&lt;/P&gt;&lt;P&gt;I've activated GPU in environment/processor type but looking at task manager, my GPU does not seem to work hard, neither the CPU's.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrienMichez_0-1676370607166.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62791iEF9B67C44A7E7F1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrienMichez_0-1676370607166.png" alt="AdrienMichez_0-1676370607166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also check with the nvidia-smi monitoring tool which confirms that no running processes are found:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrienMichez_1-1676370832451.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62792i62D25C58F1D0F696/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrienMichez_1-1676370832451.png" alt="AdrienMichez_1-1676370832451.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm using a GeForce GTX 770. Maybe this model is not compatible? It's not brand new nvidia&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Adrien&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 10:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1257899#M379</guid>
      <dc:creator>AdrienMichez</dc:creator>
      <dc:date>2023-02-14T10:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1257908#M380</link>
      <description>&lt;P&gt;You checked the faq?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/deep-learning/deep-learning-faq.htm#anchor4" target="_blank"&gt;Deep learning frequently asked questions—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 11:36:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1257908#M380</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-02-14T11:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1258824#M381</link>
      <description>&lt;P&gt;Yes I did&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think this is probably due to my old GPU but all the tests/checks found online came out positive so I don't have the confirmation that it is actually this issue&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 10:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1258824#M381</guid>
      <dc:creator>AdrienMichez</dc:creator>
      <dc:date>2023-02-16T10:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1259508#M383</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;&amp;nbsp;thank you for sharing the FAQs link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm copying/pasting info from the link above so in case other users refer to this thread:&lt;/P&gt;&lt;P&gt;The recommended VRAM for running training and inferencing deep learning tools in&amp;nbsp;ArcGIS Pro&amp;nbsp;is 8GB. If you are only performing inferencing (detection or classification with a pretrained model), 4GB is the minimum required VRAM, but 8GB is recommended.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you do not have the required 4–8GB VRAM, you can run the tools on the CPU, though the processing time will be longer.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/658346"&gt;@AdrienMichez&lt;/a&gt;&amp;nbsp;&amp;nbsp;looks like&amp;nbsp;geforce-gtx-770 is 2GB memory size. (&lt;A href="https://www.techpowerup.com/gpu-specs/geforce-gtx-770.c1856" target="_blank"&gt;https://www.techpowerup.com/gpu-specs/geforce-gtx-770.c1856&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 19:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1259508#M383</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2023-02-17T19:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1270056#M424</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/658346"&gt;@AdrienMichez&lt;/a&gt;&amp;nbsp;I am curious if you were setting GPU in the Processor Type&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PavanYadav_1-1679428819550.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65848iF0D76E903F499EE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PavanYadav_1-1679428819550.png" alt="PavanYadav_1-1679428819550.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also want to try to check:&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import torch&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; torch.cuda.is_available()&lt;/P&gt;&lt;P&gt;True&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; torch.cuda.device_count()&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; torch.cuda.current_device()&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; torch.cuda.device(0)&lt;/P&gt;&lt;P&gt;&amp;lt;torch.cuda.device at 0x7efce0b03be0&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; torch.cuda.get_device_name(0)&lt;/P&gt;&lt;P&gt;'GeForce GTX 950M'&lt;/P&gt;&lt;P&gt;Even though with a 2GB GPU, you might not see much performance improvements. I just wanted to share the above, and you should be able to use it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 20:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1270056#M424</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2023-03-21T20:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1283714#M456</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2666"&gt;@PavanYadav&lt;/a&gt;: yes I was setting environment just like that&lt;/P&gt;&lt;P&gt;I choose to buy a new GPU NVIDIA GeForce RTX 4090&lt;/P&gt;&lt;P&gt;That helped a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I'm facing other problems... If you want to have a look here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-image-analyst-questions/rare-habitat-mapping-with-deeplearning-nodata/m-p/1283713/highlight/true#M455" target="_blank"&gt;https://community.esri.com/t5/arcgis-image-analyst-questions/rare-habitat-mapping-with-deeplearning-nodata/m-p/1283713/highlight/true#M455&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 07:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1283714#M456</guid>
      <dc:creator>AdrienMichez</dc:creator>
      <dc:date>2023-04-28T07:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1289201#M464</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/658346"&gt;@AdrienMichez&lt;/a&gt;&amp;nbsp;thanks for sharing. For the other issue, I discussed with my coworkers. I see one of them have already responded to you the thread. Hope, what she shared can help resolve issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 16:05:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1289201#M464</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2023-05-15T16:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1505986#M704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2666"&gt;@PavanYadav&lt;/a&gt;&amp;nbsp;I have the same problem,&amp;nbsp;I have an NVIDIA RTX 5000 graphics card, but when I perform object detection using deep learning, the card doesn't seem to be working properly. It does eventually complete the task, but it's incredibly slow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlejandraFigueroaMartnez_0-1721170815710.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109908iF42816640421A8D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlejandraFigueroaMartnez_0-1721170815710.png" alt="AlejandraFigueroaMartnez_0-1721170815710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlejandraFigueroaMartnez_1-1721170852015.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109909iE720D806A9DE74AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlejandraFigueroaMartnez_1-1721170852015.png" alt="AlejandraFigueroaMartnez_1-1721170852015.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlejandraFigueroaMartnez_2-1721170877214.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109910i0BDA7ED2443C3024/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlejandraFigueroaMartnez_2-1721170877214.png" alt="AlejandraFigueroaMartnez_2-1721170877214.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 23:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1505986#M704</guid>
      <dc:creator>AlejandraFigueroaMartínez</dc:creator>
      <dc:date>2024-07-16T23:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1526620#M722</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/815265"&gt;@AlejandraFigueroaMartínez&lt;/a&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Possible Reasons for GPU Underutilization:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Small Batch Size:&lt;/STRONG&gt;&lt;SPAN&gt; If the batch size is too small for the available GPU vRAM,&lt;/SPAN&gt;&lt;SPAN&gt; the GPU may not be fully utilized.&lt;/SPAN&gt; &lt;STRONG&gt;Try increasing the batch size&lt;/STRONG&gt;&lt;SPAN&gt; to see if this improves performance.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;CPU-GPU Synchronization:&lt;/STRONG&gt;&lt;SPAN&gt; The GPU might be waiting for the CPU to send data,&lt;/SPAN&gt;&lt;SPAN&gt; leading to fluctuating GPU usage.&lt;/SPAN&gt; &lt;STRONG&gt;Monitor CPU and GPU usage&lt;/STRONG&gt;&lt;SPAN&gt; to identify any synchronization issues.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Software Bug:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;as of today, we are not aware of any bugs related to GPU for this tool.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Small Input Rasters:&lt;/STRONG&gt;&lt;SPAN&gt; If the input rasters are very small (e.&lt;/SPAN&gt;&lt;SPAN&gt;g.,&lt;/SPAN&gt;&lt;SPAN&gt; 1024x1024), GPU/CPU will give you about the same performance.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Additional Tests for GPU Verification:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;CPU vs. GPU Performance Comparison:&lt;/STRONG&gt;&lt;SPAN&gt; A significant difference in processing time (3-4x to 20x) between CPU and GPU should be observed for large enough input rasters.&lt;/SPAN&gt; &lt;STRONG&gt;Compare the processing times&lt;/STRONG&gt;&lt;SPAN&gt; to determine if the GPU is working as expected.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Large Batch Size Test:&lt;/STRONG&gt;&lt;SPAN&gt; Setting a very large batch size (e.&lt;/SPAN&gt;&lt;SPAN&gt;g.,&lt;/SPAN&gt;&lt;SPAN&gt; 1024) should result in a "CUDA out of memory" error if the GPU is functioning correctly.&lt;/SPAN&gt;&lt;SPAN&gt; If you see a "CPU out of memory" error,&lt;/SPAN&gt;&lt;SPAN&gt; try a smaller batch size like 512.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 23 Aug 2024 18:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1526620#M722</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2024-08-23T18:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1537706#M726</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2666"&gt;@PavanYadav&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m using ArcGIS Notebooks in ArcGIS Online with GPU support to train a deep learning model (MaskRCNN) and publish the package (.dlpk). The training and publishing work well, but object detection with DetectObjectsUsingDeepLearning in ArcPy takes about 15 hours, even with GPU.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Web Applications:&lt;/STRONG&gt; Is it possible to use the deep learning package in web applications for real-time object detection?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Optimization:&lt;/STRONG&gt; How can I reduce the detection time? Is it normal for it to take this long even with GPU?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Recommended Workflow:&lt;/STRONG&gt; What is the most efficient workflow for object detection with ArcGIS Online?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 12:07:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1537706#M726</guid>
      <dc:creator>LeonelRivero_79</dc:creator>
      <dc:date>2024-09-12T12:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: GPU not working</title>
      <link>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1538391#M727</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/801390"&gt;@LeonelRivero_79&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About #1, are you considering using the deep learning tools to detect objects as a GP service. While I'm not a web application expert, I'll consult with my colleagues for more insights.&lt;/P&gt;&lt;P&gt;About #2, we need to assess whether 15 hours is a reasonable processing time given the amount of data, GPU vRAM, and batch size you're using. The tips I shared in my previous post can help narrow down this. Are you seeing an optimal level of GPU vRAM utilization (greater than 80%)? If not, try increasing the batch size. If vRAM utilization is already close to 100%, consider increasing the GPU's vRAM. You can also use multiple GPUs on the same machine or scale up processing using ArcGIS Enterprise if this is something you would to often. (thinking about return on investment). If you're using ArcPy outside of ArcGIS, ensure that arcpy.env.processorType is set to 'GPU'. (by default the tool should use available supported GPU, but just in case you can try with and without if it is an issue)&lt;/P&gt;&lt;P&gt;About #3, please make sure the batch size is not too small. if you were using 4, maybe try 16. Please test different numbers and see for which number you get faster output. I understand when the batch size is too big, the tool might return an out of memory error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 16:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-image-analyst-questions/gpu-not-working/m-p/1538391#M727</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2024-09-13T16:59:07Z</dc:date>
    </item>
  </channel>
</rss>

