{
  "id": 201473,
  "title": "Submission is taking a long time to process",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/201473",
  "author_name": "rajan",
  "post_date": "2020-12-05T07:13:01.943000",
  "votes": 3,
  "comment_count": 12,
  "views": 0,
  "content": "<p>I am using trained model my submission is taking to long so i set number of EPOCHS=0 so it just have to load the model and then do inference on test dataset. <br>\nBut after submitting and waiting for 9 hours it also failed ;-( <br>\nWhen i save the file it run code in just 2-3 mins.  </p>",
  "messages": [
    {
      "id": 1102676,
      "postDate": "2020-12-05T07:13:01.943Z",
      "content": "<p>I am using trained model my submission is taking to long so i set number of EPOCHS=0 so it just have to load the model and then do inference on test dataset. <br>\nBut after submitting and waiting for 9 hours it also failed ;-( <br>\nWhen i save the file it run code in just 2-3 mins.  </p>",
      "rawMarkdown": "I am using trained model my submission is taking to long so i set number of EPOCHS=0 so it just have to load the model and then do inference on test dataset. \nBut after submitting and waiting for 9 hours it also failed ;-( \nWhen i save the file it run code in just 2-3 mins.  ",
      "votes": 3
    },
    {
      "id": 1102678,
      "postDate": "2020-12-05T07:18:47.633Z",
      "content": "<p>After failing it gave  <strong>Notebook Timeout</strong> but EPOCHS are 0 and when i run all the cell of notebook it take just 2 mins </p>",
      "rawMarkdown": "After failing it gave  **Notebook Timeout** but EPOCHS are 0 and when i run all the cell of notebook it take just 2 mins ",
      "votes": 1,
      "replies": [
        {
          "id": 1102693,
          "postDate": "2020-12-05T07:44:38.967Z",
          "rawMarkdown": "",
          "votes": 1,
          "isDeleted": true
        },
        {
          "id": 1102743,
          "postDate": "2020-12-05T08:53:01.723Z",
          "content": "<p>How can i solve that. For testset i am using 5 as batch size</p>",
          "rawMarkdown": "How can i solve that. For testset i am using 5 as batch size"
        },
        {
          "id": 1102746,
          "postDate": "2020-12-05T08:55:44.833Z",
          "rawMarkdown": "",
          "isDeleted": true
        },
        {
          "id": 1102896,
          "postDate": "2020-12-05T13:06:22.830Z",
          "content": "<p>When you run your notebook, you just have one test set image (obviously, it's very quick to run that through your model). When you submit to the leaderboard, it is then run on around 15,000 images.</p>\n<p>I don't think your GPU quota should matter when you submit to the leaderboard. It's more likely that it took longer than you expected and exceeded the time limit, or that e.g. a out-of-memory error stopped the processing without stopping the notebook (in that case it looks like it kept running).</p>\n<p>If you want to test how long it takes, time how long the prediction cell of the notebook (obviously, some of the initial set-up also takes time) takes when you run a large number of training set images through the model (you can probably extrapolate from 500 to 1000).</p>",
          "rawMarkdown": "When you run your notebook, you just have one test set image (obviously, it's very quick to run that through your model). When you submit to the leaderboard, it is then run on around 15,000 images.\n\nI don't think your GPU quota should matter when you submit to the leaderboard. It's more likely that it took longer than you expected and exceeded the time limit, or that e.g. a out-of-memory error stopped the processing without stopping the notebook (in that case it looks like it kept running).\n\nIf you want to test how long it takes, time how long the prediction cell of the notebook (obviously, some of the initial set-up also takes time) takes when you run a large number of training set images through the model (you can probably extrapolate from 500 to 1000).",
          "votes": 1
        },
        {
          "id": 1103430,
          "postDate": "2020-12-05T22:37:55.427Z",
          "content": "<p>I had the same problem (out of memory).  I solved it by performing prediction on small batches and reuse the memory.   You can point your test data to your training image directory to validate the issue.</p>",
          "rawMarkdown": "I had the same problem (out of memory).  I solved it by performing prediction on small batches and reuse the memory.   You can point your test data to your training image directory to validate the issue."
        },
        {
          "id": 1195270,
          "postDate": "2021-02-10T16:40:45.033Z",
          "content": "<p>This worked for me too… Great. Thanks.</p>",
          "rawMarkdown": "This worked for me too... Great. Thanks."
        }
      ]
    },
    {
      "id": 1102782,
      "postDate": "2020-12-05T09:55:23.187Z",
      "content": "<p>It is said that the model will be evaluated on GPU accelerator. What accelerator are you using?</p>",
      "rawMarkdown": "It is said that the model will be evaluated on GPU accelerator. What accelerator are you using?",
      "replies": [
        {
          "id": 1102827,
          "postDate": "2020-12-05T11:06:12.937Z",
          "content": "<p>Yes it was running on GPU. But i think my GPU quota was exhausted that is why it failed. </p>",
          "rawMarkdown": "Yes it was running on GPU. But i think my GPU quota was exhausted that is why it failed. ",
          "votes": 1
        },
        {
          "id": 1102829,
          "postDate": "2020-12-05T11:07:09.017Z",
          "content": "<p>Thankyou for reply </p>",
          "rawMarkdown": "Thankyou for reply "
        }
      ]
    },
    {
      "id": 1102761,
      "postDate": "2020-12-05T09:21:30.627Z",
      "content": "<p>Yes submission evaluation is too slow. I have submitted with a batch size of 32, it took 1 hour to run.</p>\n<p>How big is your model in terms of size? and are you resizing the input at test time?</p>",
      "rawMarkdown": "Yes submission evaluation is too slow. I have submitted with a batch size of 32, it took 1 hour to run.\n\nHow big is your model in terms of size? and are you resizing the input at test time?\n\n",
      "replies": [
        {
          "id": 1102828,
          "postDate": "2020-12-05T11:06:57.580Z",
          "content": "<p>Thankyou for reply.<br>\nI think my GPU quota was exhausted that is why it failed. </p>",
          "rawMarkdown": "Thankyou for reply.\nI think my GPU quota was exhausted that is why it failed. \n"
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 1102678,
      "author_name": "rajan",
      "author_url": "",
      "post_date": "2020-12-05T07:18:47.633000",
      "content": "<p>After failing it gave  <strong>Notebook Timeout</strong> but EPOCHS are 0 and when i run all the cell of notebook it take just 2 mins </p>",
      "votes": 1,
      "replies": [
        {
          "id": 1102693,
          "author_name": "",
          "author_url": "",
          "post_date": "2020-12-05T07:44:38.967000",
          "content": "",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1102743,
          "author_name": "rajan",
          "author_url": "",
          "post_date": "2020-12-05T08:53:01.723000",
          "content": "<p>How can i solve that. For testset i am using 5 as batch size</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1102746,
          "author_name": "",
          "author_url": "",
          "post_date": "2020-12-05T08:55:44.833000",
          "content": "",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1102896,
          "author_name": "Björn",
          "author_url": "",
          "post_date": "2020-12-05T13:06:22.830000",
          "content": "<p>When you run your notebook, you just have one test set image (obviously, it's very quick to run that through your model). When you submit to the leaderboard, it is then run on around 15,000 images.</p>\n<p>I don't think your GPU quota should matter when you submit to the leaderboard. It's more likely that it took longer than you expected and exceeded the time limit, or that e.g. a out-of-memory error stopped the processing without stopping the notebook (in that case it looks like it kept running).</p>\n<p>If you want to test how long it takes, time how long the prediction cell of the notebook (obviously, some of the initial set-up also takes time) takes when you run a large number of training set images through the model (you can probably extrapolate from 500 to 1000).</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1103430,
          "author_name": "luqing Wang",
          "author_url": "",
          "post_date": "2020-12-05T22:37:55.427000",
          "content": "<p>I had the same problem (out of memory).  I solved it by performing prediction on small batches and reuse the memory.   You can point your test data to your training image directory to validate the issue.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1195270,
          "author_name": "Vinodh Arumugam",
          "author_url": "",
          "post_date": "2021-02-10T16:40:45.033000",
          "content": "<p>This worked for me too… Great. Thanks.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1102782,
      "author_name": "Shanmukh",
      "author_url": "",
      "post_date": "2020-12-05T09:55:23.187000",
      "content": "<p>It is said that the model will be evaluated on GPU accelerator. What accelerator are you using?</p>",
      "votes": 0,
      "replies": [
        {
          "id": 1102827,
          "author_name": "rajan",
          "author_url": "",
          "post_date": "2020-12-05T11:06:12.937000",
          "content": "<p>Yes it was running on GPU. But i think my GPU quota was exhausted that is why it failed. </p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1102829,
          "author_name": "rajan",
          "author_url": "",
          "post_date": "2020-12-05T11:07:09.017000",
          "content": "<p>Thankyou for reply </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1102761,
      "author_name": "Harveen Singh Chadha",
      "author_url": "",
      "post_date": "2020-12-05T09:21:30.627000",
      "content": "<p>Yes submission evaluation is too slow. I have submitted with a batch size of 32, it took 1 hour to run.</p>\n<p>How big is your model in terms of size? and are you resizing the input at test time?</p>",
      "votes": 0,
      "replies": [
        {
          "id": 1102828,
          "author_name": "rajan",
          "author_url": "",
          "post_date": "2020-12-05T11:06:57.580000",
          "content": "<p>Thankyou for reply.<br>\nI think my GPU quota was exhausted that is why it failed. </p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1102676": "I am using trained model my submission is taking to long so i set number of EPOCHS=0 so it just have to load the model and then do inference on test dataset. \nBut after submitting and waiting for 9 hours it also failed ;-( \nWhen i save the file it run code in just 2-3 mins.  ",
    "1102678": "After failing it gave  **Notebook Timeout** but EPOCHS are 0 and when i run all the cell of notebook it take just 2 mins ",
    "1102782": "It is said that the model will be evaluated on GPU accelerator. What accelerator are you using?",
    "1102761": "Yes submission evaluation is too slow. I have submitted with a batch size of 32, it took 1 hour to run.\n\nHow big is your model in terms of size? and are you resizing the input at test time?\n\n"
  }
}