{
  "id": 244358,
  "title": "deep neural network getting timed out",
  "url": "/competitions/siim-covid19-detection/discussion/244358",
  "author_name": "",
  "post_date": "2021-06-06T12:35:09.738994600Z",
  "votes": 1,
  "comment_count": 6,
  "views": 0,
  "content": "<p>My deep neural network models such as effnetb7 are getting timed out in google colab with 25 gb of ram what can we do resolve the issue.How much ram does kaggle use in the final submission.Is it 16 gb</p>",
  "messages": [
    {
      "id": "1338407",
      "postDate": "06/06/2021 12:35:09",
      "content": "<p>My deep neural network models such as effnetb7 are getting timed out in google colab with 25 gb of ram what can we do resolve the issue.How much ram does kaggle use in the final submission.Is it 16 gb</p>",
      "rawMarkdown": "My deep neural network models such as effnetb7 are getting timed out in google colab with 25 gb of ram what can we do resolve the issue.How much ram does kaggle use in the final submission.Is it 16 gb",
      "votes": null
    },
    {
      "id": "1338431",
      "postDate": "06/06/2021 13:00:47",
      "content": "<p>Out of ram error i</p>",
      "rawMarkdown": "Out of ram error i",
      "votes": null
    },
    {
      "id": "1339000",
      "postDate": "06/06/2021 23:55:50",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/jimmycool\" target=\"_blank\">@jimmycool</a> </p>\n<p>Are you using GPU or TPU? <br>\nWhat is the size of your input images? </p>",
      "rawMarkdown": "Hi @jimmycool \n\nAre you using GPU or TPU? \nWhat is the size of your input images?",
      "votes": null
    },
    {
      "id": "1339053",
      "postDate": "06/07/2021 02:08:08",
      "content": "<p>I am using Google colab pro with 25 gb ram and the image size is 256,256,3 in RGB format even using just 2000 images from the train dataset it is getting out of memory error</p>",
      "rawMarkdown": "I am using Google colab pro with 25 gb ram and the image size is 256,256,3 in RGB format even using just 2000 images from the train dataset it is getting out of memory error",
      "votes": null
    },
    {
      "id": "1339601",
      "postDate": "06/07/2021 10:55:58",
      "content": "<p>Did you try to decrease your batch size to fit into the memory? You can also try to make it work with smaller model instead of B7. </p>",
      "rawMarkdown": "Did you try to decrease your batch size to fit into the memory? You can also try to make it work with smaller model instead of B7.",
      "votes": null
    },
    {
      "id": "1339665",
      "postDate": "06/07/2021 11:37:52",
      "content": "<p>inside your code Keep Clearing the Memory Using the    <code>del</code>   Statement<br>\nAlong with the    <code>gc. collect()</code>     method, </p>\n<p><a href=\"https://www.delftstack.com/howto/python/python-clear-memory/\" target=\"_blank\">https://www.delftstack.com/howto/python/python-clear-memory/</a></p>",
      "rawMarkdown": "inside your code Keep Clearing the Memory Using the    `del `   Statement\nAlong with the    ` gc. collect()`     method, \n\nhttps://www.delftstack.com/howto/python/python-clear-memory/",
      "votes": null
    },
    {
      "id": "1340369",
      "postDate": "06/07/2021 20:17:41",
      "content": "<p>The memory is not enough you can buy memory or u can got free 😊 if u need just 25 GB </p>\n<p>1- U can check this😊 </p>\n<p>i = []<br>\nwhile True:<br>\n  i.append(i)</p>\n<p><img src=\"https://miro.medium.com/max/700/1*nrkZU41Uyf12mEWEtg-G3g.png\"></p>\n<p>2- Wait for few minutes, after that you will get a prompt that your notebook got crashed, do you want to increase ram ?</p>\n<p>3-  In the prompt click - yes</p>\n<p><img src=\"https://miro.medium.com/max/700/1*s_vQL_R1NFZvDDD49Cyfsw.png\"></p>\n<p>4- As you see the ram increase from 12GB to 25GB.</p>\n<p><img src=\"https://miro.medium.com/max/700/1*4gXii-KFv4H70ngwFiTR7w.png\"></p>\n<p>This is Google_Colab.pdf 👇</p>\n<p><a href=\"https://github.com/yasserhessein/What-is-Google-Colab-and-how-can-I-use-it/blob/main/Google_Colab.pdf\" target=\"_blank\">https://github.com/yasserhessein/What-is-Google-Colab-and-how-can-I-use-it/blob/main/Google_Colab.pdf</a></p>",
      "rawMarkdown": "The memory is not enough you can buy memory or u can got free 😊 if u need just 25 GB \n\n\n 1- U can check this😊 \n\ni = []\nwhile True:\n  i.append(i)\n\n<img src=\"https://miro.medium.com/max/700/1*nrkZU41Uyf12mEWEtg-G3g.png\" width=\"800px\">\n\n2- Wait for few minutes, after that you will get a prompt that your notebook got crashed, do you want to increase ram ?\n\n\n\n3-  In the prompt click - yes\n\n\n\n\n<img src=\"https://miro.medium.com/max/700/1*s_vQL_R1NFZvDDD49Cyfsw.png\" width=\"800px\">\n\n\n4- As you see the ram increase from 12GB to 25GB.\n\n\n<img src=\"https://miro.medium.com/max/700/1*4gXii-KFv4H70ngwFiTR7w.png\" width=\"800px\">\n\n\n\nThis is Google_Colab.pdf 👇\n\n\nhttps://github.com/yasserhessein/What-is-Google-Colab-and-how-can-I-use-it/blob/main/Google_Colab.pdf",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1338431,
      "author_name": "jimmycool",
      "author_url": "",
      "post_date": "06/06/2021 13:00:47",
      "content": "<p>Out of ram error i</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1339000,
      "author_name": "faisalalsrheed",
      "author_url": "",
      "post_date": "06/06/2021 23:55:50",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/jimmycool\" target=\"_blank\">@jimmycool</a> </p>\n<p>Are you using GPU or TPU? <br>\nWhat is the size of your input images? </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1339053,
      "author_name": "jimmycool",
      "author_url": "",
      "post_date": "06/07/2021 02:08:08",
      "content": "<p>I am using Google colab pro with 25 gb ram and the image size is 256,256,3 in RGB format even using just 2000 images from the train dataset it is getting out of memory error</p>",
      "votes": null,
      "replies": [
        {
          "id": 1339665,
          "author_name": "faisalalsrheed",
          "author_url": "",
          "post_date": "06/07/2021 11:37:52",
          "content": "<p>inside your code Keep Clearing the Memory Using the    <code>del</code>   Statement<br>\nAlong with the    <code>gc. collect()</code>     method, </p>\n<p><a href=\"https://www.delftstack.com/howto/python/python-clear-memory/\" target=\"_blank\">https://www.delftstack.com/howto/python/python-clear-memory/</a></p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1339601,
      "author_name": "eakdag",
      "author_url": "",
      "post_date": "06/07/2021 10:55:58",
      "content": "<p>Did you try to decrease your batch size to fit into the memory? You can also try to make it work with smaller model instead of B7. </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1340369,
      "author_name": "yasserhessein",
      "author_url": "",
      "post_date": "06/07/2021 20:17:41",
      "content": "<p>The memory is not enough you can buy memory or u can got free 😊 if u need just 25 GB </p>\n<p>1- U can check this😊 </p>\n<p>i = []<br>\nwhile True:<br>\n  i.append(i)</p>\n<p><img src=\"https://miro.medium.com/max/700/1*nrkZU41Uyf12mEWEtg-G3g.png\"></p>\n<p>2- Wait for few minutes, after that you will get a prompt that your notebook got crashed, do you want to increase ram ?</p>\n<p>3-  In the prompt click - yes</p>\n<p><img src=\"https://miro.medium.com/max/700/1*s_vQL_R1NFZvDDD49Cyfsw.png\"></p>\n<p>4- As you see the ram increase from 12GB to 25GB.</p>\n<p><img src=\"https://miro.medium.com/max/700/1*4gXii-KFv4H70ngwFiTR7w.png\"></p>\n<p>This is Google_Colab.pdf 👇</p>\n<p><a href=\"https://github.com/yasserhessein/What-is-Google-Colab-and-how-can-I-use-it/blob/main/Google_Colab.pdf\" target=\"_blank\">https://github.com/yasserhessein/What-is-Google-Colab-and-how-can-I-use-it/blob/main/Google_Colab.pdf</a></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1338407": "My deep neural network models such as effnetb7 are getting timed out in google colab with 25 gb of ram what can we do resolve the issue.How much ram does kaggle use in the final submission.Is it 16 gb",
    "1338431": "Out of ram error i",
    "1339000": "Hi @jimmycool \n\nAre you using GPU or TPU? \nWhat is the size of your input images?",
    "1339053": "I am using Google colab pro with 25 gb ram and the image size is 256,256,3 in RGB format even using just 2000 images from the train dataset it is getting out of memory error",
    "1339601": "Did you try to decrease your batch size to fit into the memory? You can also try to make it work with smaller model instead of B7.",
    "1339665": "inside your code Keep Clearing the Memory Using the    `del `   Statement\nAlong with the    ` gc. collect()`     method, \n\nhttps://www.delftstack.com/howto/python/python-clear-memory/",
    "1340369": "The memory is not enough you can buy memory or u can got free 😊 if u need just 25 GB \n\n\n 1- U can check this😊 \n\ni = []\nwhile True:\n  i.append(i)\n\n<img src=\"https://miro.medium.com/max/700/1*nrkZU41Uyf12mEWEtg-G3g.png\" width=\"800px\">\n\n2- Wait for few minutes, after that you will get a prompt that your notebook got crashed, do you want to increase ram ?\n\n\n\n3-  In the prompt click - yes\n\n\n\n\n<img src=\"https://miro.medium.com/max/700/1*s_vQL_R1NFZvDDD49Cyfsw.png\" width=\"800px\">\n\n\n4- As you see the ram increase from 12GB to 25GB.\n\n\n<img src=\"https://miro.medium.com/max/700/1*4gXii-KFv4H70ngwFiTR7w.png\" width=\"800px\">\n\n\n\nThis is Google_Colab.pdf 👇\n\n\nhttps://github.com/yasserhessein/What-is-Google-Colab-and-how-can-I-use-it/blob/main/Google_Colab.pdf"
  },
  "source": "meta"
}