{
  "id": 98895,
  "title": "Why Kernel Out of Resources?",
  "url": "/competitions/aptos2019-blindness-detection/discussion/98895",
  "author_name": "makogarei",
  "post_date": "2019-07-07T11:37:47.252000",
  "votes": 5,
  "comment_count": 12,
  "views": 0,
  "content": "<p>This kernel is out of Resources when my submissions csv submit to kaggle.\nPlease tell me why this problem occurs.</p>\n\n<p>【my kernel】\n<a href=\"https://www.kaggle.com/snakayama/vgg16-keras\">https://www.kaggle.com/snakayama/vgg16-keras</a></p>",
  "messages": [
    {
      "id": 569806,
      "postDate": "2019-07-07T11:37:47.253Z",
      "content": "<p>This kernel is out of Resources when my submissions csv submit to kaggle.\nPlease tell me why this problem occurs.</p>\n\n<p>【my kernel】\n<a href=\"https://www.kaggle.com/snakayama/vgg16-keras\">https://www.kaggle.com/snakayama/vgg16-keras</a></p>",
      "rawMarkdown": "This kernel is out of Resources when my submissions csv submit to kaggle.\nPlease tell me why this problem occurs.\n\n【my kernel】\nhttps://www.kaggle.com/snakayama/vgg16-keras",
      "votes": 5
    },
    {
      "id": 570390,
      "postDate": "2019-07-08T08:05:40.447Z",
      "content": "<p>Same problem!</p>",
      "rawMarkdown": "Same problem!",
      "votes": 1
    },
    {
      "id": 570088,
      "postDate": "2019-07-07T19:01:14.187Z",
      "content": "<p>I have a same problem! </p>",
      "rawMarkdown": "I have a same problem! ",
      "votes": 1
    },
    {
      "id": 608178,
      "postDate": "2019-08-26T12:55:26.063Z",
      "content": "<p>We are having the same issue with the Keras submission. Do we need to change something? The code takes like 30 minutes for the commit if you want some details. In the public score section, it took more than 5 hours for them to show us the Kernel out of resources error. </p>",
      "rawMarkdown": "We are having the same issue with the Keras submission. Do we need to change something? The code takes like 30 minutes for the commit if you want some details. In the public score section, it took more than 5 hours for them to show us the Kernel out of resources error. "
    },
    {
      "id": 607616,
      "postDate": "2019-08-25T15:42:37.480Z",
      "content": "<p>I have the same problem.</p>",
      "rawMarkdown": "I have the same problem."
    },
    {
      "id": 593478,
      "postDate": "2019-08-06T16:49:56.317Z",
      "content": "<p>I have encountered with same problem. Then I started to research about it like why this type of error occurs and how to solve it? <br>\nThis type of error may occur because we have different type of public test cases and private test cases, our memory may be bottle necked, if we have more number of images in private test case. Our model is not working properly.\nThis type of competitions are conducted to get more optimized solutions.\nSolution:- Make our model use less RAM then before, more optimized model, running in less time and easy to use.\nyou can use less epochs, best optimizer's and best preprocessing required.</p>",
      "rawMarkdown": "I have encountered with same problem. Then I started to research about it like why this type of error occurs and how to solve it?  \nThis type of error may occur because we have different type of public test cases and private test cases, our memory may be bottle necked, if we have more number of images in private test case. Our model is not working properly.\nThis type of competitions are conducted to get more optimized solutions.\nSolution:- Make our model use less RAM then before, more optimized model, running in less time and easy to use.\nyou can use less epochs, best optimizer's and best preprocessing required."
    },
    {
      "id": 581366,
      "postDate": "2019-07-21T20:32:24.597Z",
      "content": "<p>Cursory glance at your kernel and it looks like you load all test images into memory for prediction. Remember that the hidden test data set has 30k+ images, so it's likely you are running out of RAM.</p>\n\n<p>Have a look at using a data generator that reads batches from disk instead:</p>\n\n<p><a href=\"https://keras.io/preprocessing/image/\">https://keras.io/preprocessing/image/</a></p>",
      "rawMarkdown": "Cursory glance at your kernel and it looks like you load all test images into memory for prediction. Remember that the hidden test data set has 30k+ images, so it's likely you are running out of RAM.\n\nHave a look at using a data generator that reads batches from disk instead:\n\nhttps://keras.io/preprocessing/image/"
    },
    {
      "id": 581350,
      "postDate": "2019-07-21T19:44:11.607Z",
      "content": "<p>I also have same problem. I've tried some of the solutions like dividing the epochs on fit generator in seperate cells and lowering the verbosity level. But it's still giving me the same error.</p>",
      "rawMarkdown": "I also have same problem. I've tried some of the solutions like dividing the epochs on fit generator in seperate cells and lowering the verbosity level. But it's still giving me the same error."
    },
    {
      "id": 573865,
      "postDate": "2019-07-12T21:14:34.660Z",
      "content": "<p>similar problem!</p>",
      "rawMarkdown": "similar problem!"
    },
    {
      "id": 573608,
      "postDate": "2019-07-12T13:41:03.100Z",
      "content": "<p>I am having the same problem. My kernel runs fine in the editor. Can someone please post the solution to this?</p>",
      "rawMarkdown": "I am having the same problem. My kernel runs fine in the editor. Can someone please post the solution to this?"
    },
    {
      "id": 570415,
      "postDate": "2019-07-08T09:00:08.113Z",
      "content": "<p>I have the same problem. What's wrong?</p>",
      "rawMarkdown": "I have the same problem. What's wrong?"
    },
    {
      "id": 570117,
      "postDate": "2019-07-07T19:36:35.217Z",
      "content": "<p>Same problem! It runs normally in the editor and when you commit it. The submission generates an error saying the kernel ran out of resources.</p>",
      "rawMarkdown": "Same problem! It runs normally in the editor and when you commit it. The submission generates an error saying the kernel ran out of resources."
    },
    {
      "id": 570818,
      "postDate": "2019-07-08T19:49:34.887Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 570390,
      "author_name": "Revathi Vijay",
      "author_url": "",
      "post_date": "2019-07-08T08:05:40.447000",
      "content": "<p>Same problem!</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 570088,
      "author_name": "E.Nik",
      "author_url": "",
      "post_date": "2019-07-07T19:01:14.187000",
      "content": "<p>I have a same problem! </p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 608178,
      "author_name": "naitik",
      "author_url": "",
      "post_date": "2019-08-26T12:55:26.063000",
      "content": "<p>We are having the same issue with the Keras submission. Do we need to change something? The code takes like 30 minutes for the commit if you want some details. In the public score section, it took more than 5 hours for them to show us the Kernel out of resources error. </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 607616,
      "author_name": "palak sood",
      "author_url": "",
      "post_date": "2019-08-25T15:42:37.480000",
      "content": "<p>I have the same problem.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 593478,
      "author_name": "Sainadh086",
      "author_url": "",
      "post_date": "2019-08-06T16:49:56.317000",
      "content": "<p>I have encountered with same problem. Then I started to research about it like why this type of error occurs and how to solve it? <br>\nThis type of error may occur because we have different type of public test cases and private test cases, our memory may be bottle necked, if we have more number of images in private test case. Our model is not working properly.\nThis type of competitions are conducted to get more optimized solutions.\nSolution:- Make our model use less RAM then before, more optimized model, running in less time and easy to use.\nyou can use less epochs, best optimizer's and best preprocessing required.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 581366,
      "author_name": "Tom Aindow",
      "author_url": "",
      "post_date": "2019-07-21T20:32:24.597000",
      "content": "<p>Cursory glance at your kernel and it looks like you load all test images into memory for prediction. Remember that the hidden test data set has 30k+ images, so it's likely you are running out of RAM.</p>\n\n<p>Have a look at using a data generator that reads batches from disk instead:</p>\n\n<p><a href=\"https://keras.io/preprocessing/image/\">https://keras.io/preprocessing/image/</a></p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 581350,
      "author_name": "Alok Malik",
      "author_url": "",
      "post_date": "2019-07-21T19:44:11.607000",
      "content": "<p>I also have same problem. I've tried some of the solutions like dividing the epochs on fit generator in seperate cells and lowering the verbosity level. But it's still giving me the same error.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 573865,
      "author_name": "Firat Gonen",
      "author_url": "",
      "post_date": "2019-07-12T21:14:34.660000",
      "content": "<p>similar problem!</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 573608,
      "author_name": "ranasac",
      "author_url": "",
      "post_date": "2019-07-12T13:41:03.100000",
      "content": "<p>I am having the same problem. My kernel runs fine in the editor. Can someone please post the solution to this?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 570415,
      "author_name": "Bin Wang",
      "author_url": "",
      "post_date": "2019-07-08T09:00:08.113000",
      "content": "<p>I have the same problem. What's wrong?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 570117,
      "author_name": "David Liang",
      "author_url": "",
      "post_date": "2019-07-07T19:36:35.217000",
      "content": "<p>Same problem! It runs normally in the editor and when you commit it. The submission generates an error saying the kernel ran out of resources.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 570818,
      "author_name": "",
      "author_url": "",
      "post_date": "2019-07-08T19:49:34.887000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "569806": "This kernel is out of Resources when my submissions csv submit to kaggle.\nPlease tell me why this problem occurs.\n\n【my kernel】\nhttps://www.kaggle.com/snakayama/vgg16-keras",
    "570390": "Same problem!",
    "570088": "I have a same problem! ",
    "608178": "We are having the same issue with the Keras submission. Do we need to change something? The code takes like 30 minutes for the commit if you want some details. In the public score section, it took more than 5 hours for them to show us the Kernel out of resources error. ",
    "607616": "I have the same problem.",
    "593478": "I have encountered with same problem. Then I started to research about it like why this type of error occurs and how to solve it?  \nThis type of error may occur because we have different type of public test cases and private test cases, our memory may be bottle necked, if we have more number of images in private test case. Our model is not working properly.\nThis type of competitions are conducted to get more optimized solutions.\nSolution:- Make our model use less RAM then before, more optimized model, running in less time and easy to use.\nyou can use less epochs, best optimizer's and best preprocessing required.",
    "581366": "Cursory glance at your kernel and it looks like you load all test images into memory for prediction. Remember that the hidden test data set has 30k+ images, so it's likely you are running out of RAM.\n\nHave a look at using a data generator that reads batches from disk instead:\n\nhttps://keras.io/preprocessing/image/",
    "581350": "I also have same problem. I've tried some of the solutions like dividing the epochs on fit generator in seperate cells and lowering the verbosity level. But it's still giving me the same error.",
    "573865": "similar problem!",
    "573608": "I am having the same problem. My kernel runs fine in the editor. Can someone please post the solution to this?",
    "570415": "I have the same problem. What's wrong?",
    "570117": "Same problem! It runs normally in the editor and when you commit it. The submission generates an error saying the kernel ran out of resources.",
    "570818": ""
  }
}