{
  "id": 142828,
  "title": "Tensorflow 1.15 not detecting GPU on GPU enabled kernels",
  "url": "/competitions/imaterialist-fashion-2020-fgvc7/discussion/142828",
  "author_name": "",
  "post_date": "2020-04-12T12:49:21.016067Z",
  "votes": 2,
  "comment_count": 5,
  "views": 0,
  "content": "<p>I want to use matterplot's MaskRCNN library: <a href=\"https://github.com/matterport/Mask_RCNN\">https://github.com/matterport/Mask_RCNN</a>. This uses tensorflow (v1.x) implementation of MaskRCNN where the kernels have upgraded Tensorflow (v2.0). So I'm trying to first downgrade the TF version and the checking whether the GPU is available or not using <code>tensorflow.test.is_gpu_available()</code>, but this is returning False. Here is my kernel just for checking this: <a href=\"https://www.kaggle.com/kaushal2896/tensorflow-version-test\">https://www.kaggle.com/kaushal2896/tensorflow-version-test</a></p>\n\n<p>However when I do the same process on Google Colab, it's working fine. Here is my Colab notebook: <a href=\"https://colab.research.google.com/drive/1ecBB8Zzc4H0EXCZJ79dbjObgdXpHAT1H#scrollTo=PSTHIweDZzvS&amp;line=1&amp;uniqifier=1\">https://colab.research.google.com/drive/1ecBB8Zzc4H0EXCZJ79dbjObgdXpHAT1H#scrollTo=PSTHIweDZzvS&amp;line=1&amp;uniqifier=1</a></p>\n\n<p>What am I missing here? Why there is different behaviour? </p>",
  "messages": [
    {
      "id": "805183",
      "postDate": "04/12/2020 12:49:21",
      "content": "<p>I want to use matterplot's MaskRCNN library: <a href=\"https://github.com/matterport/Mask_RCNN\">https://github.com/matterport/Mask_RCNN</a>. This uses tensorflow (v1.x) implementation of MaskRCNN where the kernels have upgraded Tensorflow (v2.0). So I'm trying to first downgrade the TF version and the checking whether the GPU is available or not using <code>tensorflow.test.is_gpu_available()</code>, but this is returning False. Here is my kernel just for checking this: <a href=\"https://www.kaggle.com/kaushal2896/tensorflow-version-test\">https://www.kaggle.com/kaushal2896/tensorflow-version-test</a></p>\n\n<p>However when I do the same process on Google Colab, it's working fine. Here is my Colab notebook: <a href=\"https://colab.research.google.com/drive/1ecBB8Zzc4H0EXCZJ79dbjObgdXpHAT1H#scrollTo=PSTHIweDZzvS&amp;line=1&amp;uniqifier=1\">https://colab.research.google.com/drive/1ecBB8Zzc4H0EXCZJ79dbjObgdXpHAT1H#scrollTo=PSTHIweDZzvS&amp;line=1&amp;uniqifier=1</a></p>\n\n<p>What am I missing here? Why there is different behaviour? </p>",
      "rawMarkdown": "I want to use matterplot's MaskRCNN library: https://github.com/matterport/Mask_RCNN. This uses tensorflow (v1.x) implementation of MaskRCNN where the kernels have upgraded Tensorflow (v2.0). So I'm trying to first downgrade the TF version and the checking whether the GPU is available or not using `tensorflow.test.is_gpu_available()`, but this is returning False. Here is my kernel just for checking this: https://www.kaggle.com/kaushal2896/tensorflow-version-test\n\nHowever when I do the same process on Google Colab, it's working fine. Here is my Colab notebook: https://colab.research.google.com/drive/1ecBB8Zzc4H0EXCZJ79dbjObgdXpHAT1H#scrollTo=PSTHIweDZzvS&amp;line=1&amp;uniqifier=1\n\nWhat am I missing here? Why there is different behaviour?",
      "votes": null
    },
    {
      "id": "812817",
      "postDate": "04/19/2020 05:59:45",
      "content": "<p>i meet the same problem , by the way , colab is free?</p>",
      "rawMarkdown": "i meet the same problem , by the way , colab is free?",
      "votes": null
    },
    {
      "id": "813146",
      "postDate": "04/19/2020 12:22:08",
      "content": "<p>Yes, colab is Free with P100 and K80 GPUs! Let me know if you find the solution of this problem.</p>",
      "rawMarkdown": "Yes, colab is Free with P100 and K80 GPUs! Let me know if you find the solution of this problem.",
      "votes": null
    },
    {
      "id": "816349",
      "postDate": "04/22/2020 09:48:59",
      "content": "<p>I guess:\nKaggle notebook doesn't have CUDA10.0 , but tf1.15.0 requires CUDA10.0 , maybe this's the reason.  </p>\n\n<p>Colab  has CUDA10.0 and maybe there's some softlink , so it's working fine.  </p>",
      "rawMarkdown": "I guess:\nKaggle notebook doesn't have CUDA10.0 , but tf1.15.0 requires CUDA10.0 , maybe this's the reason.  \n\nColab  has CUDA10.0 and maybe there's some softlink , so it's working fine.",
      "votes": null
    },
    {
      "id": "825505",
      "postDate": "04/29/2020 03:45:21",
      "content": "<p><a href=\"https://colab.research.google.com/drive/1p-Wc5WHjoC2W3js89cvB-nN6VHM3DsN0\">https://colab.research.google.com/drive/1p-Wc5WHjoC2W3js89cvB-nN6VHM3DsN0</a>\nmy colab doesn't work , very confused</p>",
      "rawMarkdown": "https://colab.research.google.com/drive/1p-Wc5WHjoC2W3js89cvB-nN6VHM3DsN0\nmy colab doesn't work , very confused",
      "votes": null
    },
    {
      "id": "832526",
      "postDate": "05/04/2020 07:59:55",
      "content": "<p>!conda install tensorflow-gpu==1.14.0 -y \nhi , it can solve this problem</p>",
      "rawMarkdown": "!conda install tensorflow-gpu==1.14.0 -y \nhi , it can solve this problem",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 812817,
      "author_name": "fanhaobei",
      "author_url": "",
      "post_date": "04/19/2020 05:59:45",
      "content": "<p>i meet the same problem , by the way , colab is free?</p>",
      "votes": null,
      "replies": [
        {
          "id": 813146,
          "author_name": "kaushal2896",
          "author_url": "",
          "post_date": "04/19/2020 12:22:08",
          "content": "<p>Yes, colab is Free with P100 and K80 GPUs! Let me know if you find the solution of this problem.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 816349,
          "author_name": "fanhaobei",
          "author_url": "",
          "post_date": "04/22/2020 09:48:59",
          "content": "<p>I guess:\nKaggle notebook doesn't have CUDA10.0 , but tf1.15.0 requires CUDA10.0 , maybe this's the reason.  </p>\n\n<p>Colab  has CUDA10.0 and maybe there's some softlink , so it's working fine.  </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 825505,
      "author_name": "fanhaobei",
      "author_url": "",
      "post_date": "04/29/2020 03:45:21",
      "content": "<p><a href=\"https://colab.research.google.com/drive/1p-Wc5WHjoC2W3js89cvB-nN6VHM3DsN0\">https://colab.research.google.com/drive/1p-Wc5WHjoC2W3js89cvB-nN6VHM3DsN0</a>\nmy colab doesn't work , very confused</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 832526,
      "author_name": "fanhaobei",
      "author_url": "",
      "post_date": "05/04/2020 07:59:55",
      "content": "<p>!conda install tensorflow-gpu==1.14.0 -y \nhi , it can solve this problem</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "805183": "I want to use matterplot's MaskRCNN library: https://github.com/matterport/Mask_RCNN. This uses tensorflow (v1.x) implementation of MaskRCNN where the kernels have upgraded Tensorflow (v2.0). So I'm trying to first downgrade the TF version and the checking whether the GPU is available or not using `tensorflow.test.is_gpu_available()`, but this is returning False. Here is my kernel just for checking this: https://www.kaggle.com/kaushal2896/tensorflow-version-test\n\nHowever when I do the same process on Google Colab, it's working fine. Here is my Colab notebook: https://colab.research.google.com/drive/1ecBB8Zzc4H0EXCZJ79dbjObgdXpHAT1H#scrollTo=PSTHIweDZzvS&amp;line=1&amp;uniqifier=1\n\nWhat am I missing here? Why there is different behaviour?",
    "812817": "i meet the same problem , by the way , colab is free?",
    "813146": "Yes, colab is Free with P100 and K80 GPUs! Let me know if you find the solution of this problem.",
    "816349": "I guess:\nKaggle notebook doesn't have CUDA10.0 , but tf1.15.0 requires CUDA10.0 , maybe this's the reason.  \n\nColab  has CUDA10.0 and maybe there's some softlink , so it's working fine.",
    "825505": "https://colab.research.google.com/drive/1p-Wc5WHjoC2W3js89cvB-nN6VHM3DsN0\nmy colab doesn't work , very confused",
    "832526": "!conda install tensorflow-gpu==1.14.0 -y \nhi , it can solve this problem"
  },
  "source": "meta"
}