{
  "id": 264799,
  "title": "Submission error",
  "url": "/competitions/landmark-recognition-2021/discussion/264799",
  "author_name": "DrCapa",
  "post_date": "2021-08-13T09:32:08.139000",
  "votes": 13,
  "comment_count": 16,
  "views": 0,
  "content": "<p>Hi <a href=\"https://www.kaggle.com/all\" target=\"_blank\">@all</a>,</p>\n<p>unfortunately i get an submission error without informations with respect to the reason. My notebook is <a href=\"https://www.kaggle.com/drcapa/landmark-recognition-2021-starter\" target=\"_blank\">here</a>.</p>\n<p>An this is the error message: <img src=\"https://i.ibb.co/Lv411qp/sub-error.png\" alt=\"\"></p>\n<p>Has somebody a helpful advice?</p>\n<p>Best regards<br>\nCapa</p>",
  "messages": [
    {
      "id": 1470092,
      "postDate": "2021-08-13T09:32:08.140Z",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/all\" target=\"_blank\">@all</a>,</p>\n<p>unfortunately i get an submission error without informations with respect to the reason. My notebook is <a href=\"https://www.kaggle.com/drcapa/landmark-recognition-2021-starter\" target=\"_blank\">here</a>.</p>\n<p>An this is the error message: <img src=\"https://i.ibb.co/Lv411qp/sub-error.png\" alt=\"\"></p>\n<p>Has somebody a helpful advice?</p>\n<p>Best regards<br>\nCapa</p>",
      "rawMarkdown": "Hi @all,\n\nunfortunately i get an submission error without informations with respect to the reason. My notebook is [here](https://www.kaggle.com/drcapa/landmark-recognition-2021-starter).\n\nAn this is the error message: ![](https://i.ibb.co/Lv411qp/sub-error.png )\n\nHas somebody a helpful advice?\n\nBest regards\nCapa",
      "votes": 13
    },
    {
      "id": 1485973,
      "postDate": "2021-08-22T14:48:16.807Z",
      "content": "<p>Hey, <a href=\"https://www.kaggle.com/drcapa\" target=\"_blank\">@drcapa</a>! I faced the same issue today. The reason was that I was trying to read <code>train.csv</code> on my inference (in my case for one-hot decoding). Just remove any requests to the <code>train.csv</code> or <code>train</code> folder, and you'll fix the issue.</p>",
      "rawMarkdown": "Hey, @drcapa! I faced the same issue today. The reason was that I was trying to read `train.csv` on my inference (in my case for one-hot decoding). Just remove any requests to the `train.csv` or `train` folder, and you'll fix the issue.",
      "votes": 4
    },
    {
      "id": 1474073,
      "postDate": "2021-08-15T22:28:29.423Z",
      "content": "<p>Check that you do not use in the script any of the images that in the private rerun might not be among the 100k selected by the host.</p>",
      "rawMarkdown": "Check that you do not use in the script any of the images that in the private rerun might not be among the 100k selected by the host.",
      "votes": 4
    },
    {
      "id": 1505065,
      "postDate": "2021-09-06T22:19:43.973Z",
      "content": "<p>I'm experiencing the same issues 🤕.  It perfectly runs on public test set, but raises an error on the private one.</p>\n<p>I'm doing the following blind testing:</p>\n<ul>\n<li><p>start the script with: <br>\n<code>!cp ../input/landmark-recognition-2021/sample_submission.csv submission.csv</code></p></li>\n<li><p>then remove the very last lines &amp; execute</p></li>\n</ul>\n<p>Repeat it until it stop launching errors, to detect the first line causing an error.</p>\n<p>You can remove the very last line, or perform a dichotomic search 😩</p>",
      "rawMarkdown": "I'm experiencing the same issues 🤕.  It perfectly runs on public test set, but raises an error on the private one.\n\nI'm doing the following blind testing:\n\n- start the script with: \n    `!cp ../input/landmark-recognition-2021/sample_submission.csv submission.csv`\n\n- then remove the very last lines & execute\n\nRepeat it until it stop launching errors, to detect the first line causing an error.\n\nYou can remove the very last line, or perform a dichotomic search 😩",
      "votes": 1
    },
    {
      "id": 1478738,
      "postDate": "2021-08-18T05:57:18.943Z",
      "content": "<p>Hey, I have faces similar issue while submitting. You can try few things:</p>\n<ol>\n<li>Check the index/Name closely of submission.csv. </li>\n<li>Did you train model inside notebooks? Try to generate submission.csv inside kaggle notebooks</li>\n<li>Save the notebooks. Sometime due to bad internet connections, expected notebook did not get saved properly.</li>\n</ol>",
      "rawMarkdown": "Hey, I have faces similar issue while submitting. You can try few things:\n1.  Check the index/Name closely of submission.csv. \n2. Did you train model inside notebooks? Try to generate submission.csv inside kaggle notebooks\n3. Save the notebooks. Sometime due to bad internet connections, expected notebook did not get saved properly.",
      "votes": 1
    },
    {
      "id": 1475228,
      "postDate": "2021-08-16T14:17:03.003Z",
      "content": "<p>To those seeking to debug submission errors, please view <a href=\"https://www.kaggle.com/code-competition-debugging\" target=\"_blank\">https://www.kaggle.com/code-competition-debugging</a> </p>",
      "rawMarkdown": "To those seeking to debug submission errors, please view https://www.kaggle.com/code-competition-debugging ",
      "votes": 1,
      "replies": [
        {
          "id": 1487275,
          "postDate": "2021-08-23T14:11:56.443Z",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/wcukierski\" target=\"_blank\">@wcukierski</a>  in the debugging tips page, it says \"Notebook Threw Exception\" only happens when running scripts but not notebooks, but I keep getting this error when submitting notebooks. Look like it's the same case for OP. Any idea why?</p>\n<blockquote>\n  <p>Notebook Threw Exception: While rerunning your code, your notebook hit an unhandled error. Note that the hidden dataset can be larger/smaller/different than the public dataset. Due to the way Kaggle handles notebook runtime exceptions, this error class is currently only possible with scripts (not notebooks).</p>\n</blockquote>",
          "rawMarkdown": "Hi @wcukierski  in the debugging tips page, it says \"Notebook Threw Exception\" only happens when running scripts but not notebooks, but I keep getting this error when submitting notebooks. Look like it's the same case for OP. Any idea why?\n\n> Notebook Threw Exception: While rerunning your code, your notebook hit an unhandled error. Note that the hidden dataset can be larger/smaller/different than the public dataset. Due to the way Kaggle handles notebook runtime exceptions, this error class is currently only possible with scripts (not notebooks).\n",
          "votes": 1
        },
        {
          "id": 1487367,
          "postDate": "2021-08-23T15:24:14.750Z",
          "content": "<p><a href=\"https://www.kaggle.com/boliu0\" target=\"_blank\">@boliu0</a> Thanks for pointing that out. That text is out of date and no longer true. I'll update the page.</p>",
          "rawMarkdown": "@boliu0 Thanks for pointing that out. That text is out of date and no longer true. I'll update the page.",
          "votes": 2
        }
      ]
    },
    {
      "id": 1470229,
      "postDate": "2021-08-13T11:42:40.487Z",
      "content": "<p>Get the same error, didnt know why, because predictions looks correct</p>",
      "rawMarkdown": "Get the same error, didnt know why, because predictions looks correct",
      "votes": 2,
      "replies": [
        {
          "id": 1490629,
          "postDate": "2021-08-25T18:24:35.150Z",
          "content": "<p>Seems like you have fixed the problem, how have you dealt with this issue?</p>",
          "rawMarkdown": "Seems like you have fixed the problem, how have you dealt with this issue?"
        },
        {
          "id": 1491039,
          "postDate": "2021-08-26T05:30:11.827Z",
          "content": "<p>No, I didnt, I submited other notebook</p>",
          "rawMarkdown": "No, I didnt, I submited other notebook"
        }
      ]
    },
    {
      "id": 1471476,
      "postDate": "2021-08-14T08:27:03.767Z",
      "content": "<p>I got the same \"Submission Scoring Error\" the first time because my Internet was on and when I tried by uploading the extra libraries via upload it threw a \"Notebook Threw Exception\" during submission evaluation, The notebooks seem to be working fine when I use the \"save version\" function, not sure exactly why this is happening.</p>",
      "rawMarkdown": "I got the same \"Submission Scoring Error\" the first time because my Internet was on and when I tried by uploading the extra libraries via upload it threw a \"Notebook Threw Exception\" during submission evaluation, The notebooks seem to be working fine when I use the \"save version\" function, not sure exactly why this is happening."
    },
    {
      "id": 1506218,
      "postDate": "2021-09-08T03:09:27.150Z",
      "content": "<p>Maybe it's tensorflow's problem. I have observed memory leaks when inferring, reducing the batch size or inferring image by image may alleviate the situation. I haven't found a perfect solution yet.</p>",
      "rawMarkdown": "Maybe it's tensorflow's problem. I have observed memory leaks when inferring, reducing the batch size or inferring image by image may alleviate the situation. I haven't found a perfect solution yet."
    },
    {
      "id": 1486630,
      "postDate": "2021-08-23T05:41:23.890Z",
      "content": "<p>Do we need to send the notebook in which we have trained the model?<br>\nOr can I load the model that I've just trained?<br>\nMoreover, is it acceptable to save numpy array as .h5 format and load it to my evaluation notebook?</p>",
      "rawMarkdown": "Do we need to send the notebook in which we have trained the model?\nOr can I load the model that I've just trained?\nMoreover, is it acceptable to save numpy array as .h5 format and load it to my evaluation notebook?"
    },
    {
      "id": 1481018,
      "postDate": "2021-08-19T09:17:03.887Z",
      "content": "<p>Get the same error</p>",
      "rawMarkdown": "Get the same error",
      "replies": [
        {
          "id": 1490627,
          "postDate": "2021-08-25T18:23:57.220Z",
          "content": "<p>How you've managed to deal with this problem? Do you use the train folder in the hidden Dataset?</p>",
          "rawMarkdown": "How you've managed to deal with this problem? Do you use the train folder in the hidden Dataset?"
        }
      ]
    },
    {
      "id": 1470918,
      "postDate": "2021-08-13T19:37:45.647Z",
      "content": "<p>This usually happens when there is a difference between the public and hidden test set, that is your train generator might be broken. I would recommend doing the following:</p>\n<ol>\n<li>Build your model without training -&gt; make a submission where only noise is passed through as predictions.</li>\n<li>Build your model with training -&gt; make a submission where noise is passed through as predictions.</li>\n<li>Build your model without training -&gt; make a submission where the actual test data is passed through as predictions.</li>\n<li>Build your model with training -&gt; make a submission where the actual test data is passed through as predictions.</li>\n</ol>\n<p>This should give you a good idea of what part of your notebook is erroring. You can probably get away with just loading weights as training to save some time.</p>",
      "rawMarkdown": "This usually happens when there is a difference between the public and hidden test set, that is your train generator might be broken. I would recommend doing the following:\n\n1. Build your model without training -> make a submission where only noise is passed through as predictions.\n2. Build your model with training -> make a submission where noise is passed through as predictions.\n3. Build your model without training -> make a submission where the actual test data is passed through as predictions.\n4. Build your model with training -> make a submission where the actual test data is passed through as predictions.\n\nThis should give you a good idea of what part of your notebook is erroring. You can probably get away with just loading weights as training to save some time.",
      "votes": 2,
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 1485973,
      "author_name": "Vadim Timakin",
      "author_url": "",
      "post_date": "2021-08-22T14:48:16.807000",
      "content": "<p>Hey, <a href=\"https://www.kaggle.com/drcapa\" target=\"_blank\">@drcapa</a>! I faced the same issue today. The reason was that I was trying to read <code>train.csv</code> on my inference (in my case for one-hot decoding). Just remove any requests to the <code>train.csv</code> or <code>train</code> folder, and you'll fix the issue.</p>",
      "votes": 4,
      "replies": []
    },
    {
      "id": 1474073,
      "author_name": "Manuel Campos",
      "author_url": "",
      "post_date": "2021-08-15T22:28:29.423000",
      "content": "<p>Check that you do not use in the script any of the images that in the private rerun might not be among the 100k selected by the host.</p>",
      "votes": 4,
      "replies": []
    },
    {
      "id": 1505065,
      "author_name": "Virilo Tejedor Aguilera",
      "author_url": "",
      "post_date": "2021-09-06T22:19:43.973000",
      "content": "<p>I'm experiencing the same issues 🤕.  It perfectly runs on public test set, but raises an error on the private one.</p>\n<p>I'm doing the following blind testing:</p>\n<ul>\n<li><p>start the script with: <br>\n<code>!cp ../input/landmark-recognition-2021/sample_submission.csv submission.csv</code></p></li>\n<li><p>then remove the very last lines &amp; execute</p></li>\n</ul>\n<p>Repeat it until it stop launching errors, to detect the first line causing an error.</p>\n<p>You can remove the very last line, or perform a dichotomic search 😩</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1478738,
      "author_name": "Saurav Solanki",
      "author_url": "",
      "post_date": "2021-08-18T05:57:18.943000",
      "content": "<p>Hey, I have faces similar issue while submitting. You can try few things:</p>\n<ol>\n<li>Check the index/Name closely of submission.csv. </li>\n<li>Did you train model inside notebooks? Try to generate submission.csv inside kaggle notebooks</li>\n<li>Save the notebooks. Sometime due to bad internet connections, expected notebook did not get saved properly.</li>\n</ol>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1475228,
      "author_name": "Will Cukierski",
      "author_url": "",
      "post_date": "2021-08-16T14:17:03.003000",
      "content": "<p>To those seeking to debug submission errors, please view <a href=\"https://www.kaggle.com/code-competition-debugging\" target=\"_blank\">https://www.kaggle.com/code-competition-debugging</a> </p>",
      "votes": 1,
      "replies": [
        {
          "id": 1487275,
          "author_name": "Bo",
          "author_url": "",
          "post_date": "2021-08-23T14:11:56.443000",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/wcukierski\" target=\"_blank\">@wcukierski</a>  in the debugging tips page, it says \"Notebook Threw Exception\" only happens when running scripts but not notebooks, but I keep getting this error when submitting notebooks. Look like it's the same case for OP. Any idea why?</p>\n<blockquote>\n  <p>Notebook Threw Exception: While rerunning your code, your notebook hit an unhandled error. Note that the hidden dataset can be larger/smaller/different than the public dataset. Due to the way Kaggle handles notebook runtime exceptions, this error class is currently only possible with scripts (not notebooks).</p>\n</blockquote>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1487367,
          "author_name": "Will Cukierski",
          "author_url": "",
          "post_date": "2021-08-23T15:24:14.750000",
          "content": "<p><a href=\"https://www.kaggle.com/boliu0\" target=\"_blank\">@boliu0</a> Thanks for pointing that out. That text is out of date and no longer true. I'll update the page.</p>",
          "votes": 2,
          "replies": []
        }
      ]
    },
    {
      "id": 1470229,
      "author_name": "Radmir Zosimov",
      "author_url": "",
      "post_date": "2021-08-13T11:42:40.487000",
      "content": "<p>Get the same error, didnt know why, because predictions looks correct</p>",
      "votes": 2,
      "replies": [
        {
          "id": 1490629,
          "author_name": "nirzaa",
          "author_url": "",
          "post_date": "2021-08-25T18:24:35.150000",
          "content": "<p>Seems like you have fixed the problem, how have you dealt with this issue?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1491039,
          "author_name": "Radmir Zosimov",
          "author_url": "",
          "post_date": "2021-08-26T05:30:11.827000",
          "content": "<p>No, I didnt, I submited other notebook</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1471476,
      "author_name": "Pranav Singh",
      "author_url": "",
      "post_date": "2021-08-14T08:27:03.767000",
      "content": "<p>I got the same \"Submission Scoring Error\" the first time because my Internet was on and when I tried by uploading the extra libraries via upload it threw a \"Notebook Threw Exception\" during submission evaluation, The notebooks seem to be working fine when I use the \"save version\" function, not sure exactly why this is happening.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1506218,
      "author_name": "Qiao Su",
      "author_url": "",
      "post_date": "2021-09-08T03:09:27.150000",
      "content": "<p>Maybe it's tensorflow's problem. I have observed memory leaks when inferring, reducing the batch size or inferring image by image may alleviate the situation. I haven't found a perfect solution yet.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1486630,
      "author_name": "nirzaa",
      "author_url": "",
      "post_date": "2021-08-23T05:41:23.890000",
      "content": "<p>Do we need to send the notebook in which we have trained the model?<br>\nOr can I load the model that I've just trained?<br>\nMoreover, is it acceptable to save numpy array as .h5 format and load it to my evaluation notebook?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1481018,
      "author_name": "Chrisfsj2051",
      "author_url": "",
      "post_date": "2021-08-19T09:17:03.887000",
      "content": "<p>Get the same error</p>",
      "votes": 0,
      "replies": [
        {
          "id": 1490627,
          "author_name": "nirzaa",
          "author_url": "",
          "post_date": "2021-08-25T18:23:57.220000",
          "content": "<p>How you've managed to deal with this problem? Do you use the train folder in the hidden Dataset?</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1470918,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-08-13T19:37:45.647000",
      "content": "<p>This usually happens when there is a difference between the public and hidden test set, that is your train generator might be broken. I would recommend doing the following:</p>\n<ol>\n<li>Build your model without training -&gt; make a submission where only noise is passed through as predictions.</li>\n<li>Build your model with training -&gt; make a submission where noise is passed through as predictions.</li>\n<li>Build your model without training -&gt; make a submission where the actual test data is passed through as predictions.</li>\n<li>Build your model with training -&gt; make a submission where the actual test data is passed through as predictions.</li>\n</ol>\n<p>This should give you a good idea of what part of your notebook is erroring. You can probably get away with just loading weights as training to save some time.</p>",
      "votes": 2,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1470092": "Hi @all,\n\nunfortunately i get an submission error without informations with respect to the reason. My notebook is [here](https://www.kaggle.com/drcapa/landmark-recognition-2021-starter).\n\nAn this is the error message: ![](https://i.ibb.co/Lv411qp/sub-error.png )\n\nHas somebody a helpful advice?\n\nBest regards\nCapa",
    "1485973": "Hey, @drcapa! I faced the same issue today. The reason was that I was trying to read `train.csv` on my inference (in my case for one-hot decoding). Just remove any requests to the `train.csv` or `train` folder, and you'll fix the issue.",
    "1474073": "Check that you do not use in the script any of the images that in the private rerun might not be among the 100k selected by the host.",
    "1505065": "I'm experiencing the same issues 🤕.  It perfectly runs on public test set, but raises an error on the private one.\n\nI'm doing the following blind testing:\n\n- start the script with: \n    `!cp ../input/landmark-recognition-2021/sample_submission.csv submission.csv`\n\n- then remove the very last lines & execute\n\nRepeat it until it stop launching errors, to detect the first line causing an error.\n\nYou can remove the very last line, or perform a dichotomic search 😩",
    "1478738": "Hey, I have faces similar issue while submitting. You can try few things:\n1.  Check the index/Name closely of submission.csv. \n2. Did you train model inside notebooks? Try to generate submission.csv inside kaggle notebooks\n3. Save the notebooks. Sometime due to bad internet connections, expected notebook did not get saved properly.",
    "1475228": "To those seeking to debug submission errors, please view https://www.kaggle.com/code-competition-debugging ",
    "1470229": "Get the same error, didnt know why, because predictions looks correct",
    "1471476": "I got the same \"Submission Scoring Error\" the first time because my Internet was on and when I tried by uploading the extra libraries via upload it threw a \"Notebook Threw Exception\" during submission evaluation, The notebooks seem to be working fine when I use the \"save version\" function, not sure exactly why this is happening.",
    "1506218": "Maybe it's tensorflow's problem. I have observed memory leaks when inferring, reducing the batch size or inferring image by image may alleviate the situation. I haven't found a perfect solution yet.",
    "1486630": "Do we need to send the notebook in which we have trained the model?\nOr can I load the model that I've just trained?\nMoreover, is it acceptable to save numpy array as .h5 format and load it to my evaluation notebook?",
    "1481018": "Get the same error",
    "1470918": "This usually happens when there is a difference between the public and hidden test set, that is your train generator might be broken. I would recommend doing the following:\n\n1. Build your model without training -> make a submission where only noise is passed through as predictions.\n2. Build your model with training -> make a submission where noise is passed through as predictions.\n3. Build your model without training -> make a submission where the actual test data is passed through as predictions.\n4. Build your model with training -> make a submission where the actual test data is passed through as predictions.\n\nThis should give you a good idea of what part of your notebook is erroring. You can probably get away with just loading weights as training to save some time."
  }
}