Kaggle Not Using GPU At ALL

username: Firaki12345
cooked: <p>Hi</p>
<p>OK, so i switch the runtime to use The GPU and restart the notebook.</p>
<p>I am using the below git-hub project to remove the background from images .</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://github.com/OPHoperHPO/image-background-remove-tool">
  <header class="source">
      <img src="https://github.githubassets.com/favicons/favicon.svg" class="site-icon" width="32" height="32">

      <a href="https://github.com/OPHoperHPO/image-background-remove-tool" target="_blank" rel="noopener nofollow ugc">GitHub</a>
  </header>

  <article class="onebox-body">
    <div class="aspect-image" style="--aspect-ratio:690/345;"><img src="https://opengraph.githubassets.com/152c2cd6e9c34dbb80ce760343ecd48650580e6dade33c41b3a4415aa7c6f6fd/OPHoperHPO/image-background-remove-tool" class="thumbnail" width="690" height="345"></div>

<h3><a href="https://github.com/OPHoperHPO/image-background-remove-tool" target="_blank" rel="noopener nofollow ugc">GitHub - OPHoperHPO/image-background-remove-tool: 🥧 A tool for removing...</a></h3>

  <p>🥧 A tool for removing background from photos with neural networks 🥧 - GitHub - OPHoperHPO/image-background-remove-tool: 🥧 A tool for removing background from photos with neural networks 🥧</p>


  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p><strong>It takes approx 30 mins to remove background of 86 Images.</strong></p>
<p>I have used <strong>Google drive</strong> to read my Images <strong>(It took the Same 30 mins)</strong></p>
<p>Then i downloaded the same dateset to my <strong>Google colab/ Kaggle</strong> itself from <strong>MediaFire (Again took same 30 mins)</strong></p>
<p><strong>Now the thing is without the GPU, it also takes the Same time, that is 30 Mins (SO am i using the GPU or CPU wrong or is it not being utilized properly. ?</strong></p>
<p><strong>Please Help, Thanks</strong></p>
<p><strong>Proof that it only Uses FULL 100% CPU and Barely Any GPU (I am using u2net Model)</strong></p>
<p>                    <a href="https://i.postimg.cc/2SVzXNRh/Kaggle.png" target="_blank" rel="noopener nofollow ugc" class="onebox">
            <img src="https://i.postimg.cc/2SVzXNRh/Kaggle.png" width="690" height="415">
          </a>

</p>

username: ptrblck
cooked: <p>Which script in the linked repository are you using and are you moving the model as well as the data to the GPU manually?</p>

username: Firaki12345
cooked: <p>Hi. So I edited the requirements file and removed all the == signs. So installed all the latest version.</p>
<p>And the following code I used in kaggle/ google Collab.</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://pastebin.com/3cXdUNA7">
  <header class="source">
      <img src="https://pastebin.com/favicon.ico" class="site-icon" width="16" height="16">

      <a href="https://pastebin.com/3cXdUNA7" target="_blank" rel="noopener nofollow ugc">Pastebin</a>
  </header>

  <article class="onebox-body">
    <img src="https://pastebin.com/i/facebook.png" class="thumbnail" width="" height="">

<h3><a href="https://pastebin.com/3cXdUNA7" target="_blank" rel="noopener nofollow ugc">remove background - Pastebin.com</a></h3>

  <p>Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.</p>


  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>Please Help. Thanks <img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=10" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>

username: ptrblck
cooked: <p>It doesn’t seem you are installing PyTorch at all but MXNet so the MXNet discussion board might be a better place to ask. <img src="https://discuss.pytorch.org/images/emoji/apple/wink.png?v=10" title=":wink:" class="emoji" alt=":wink:"></p>

username: Firaki12345
cooked: <p>hi in the github project above, it says that if using pytorch (u2net, u2netp), so i am using utnet. sorry a bit newbie if confused</p>
<p>can you try this out in google collab or kaggle if you have time</p>
<p>sorry and thanks <img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=10" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>