{
  "id": 180535,
  "title": "Submission CSV Not Found : On Sample Submission only from Baseline code",
  "url": "/competitions/landmark-recognition-2020/discussion/180535",
  "author_name": "",
  "post_date": "2020-09-05T13:06:00.255842Z",
  "votes": 2,
  "comment_count": 6,
  "views": 0,
  "content": "<p>Just to make our very first submission (a dummy submission), we commented out code to get predictions. And only trying to submit by saving the sample submission file to working directory in baseline code given to us here :-<br>\n<a href=\"https://www.kaggle.com/camaskew/host-baseline-example\" target=\"_blank\">https://www.kaggle.com/camaskew/host-baseline-example</a></p>\n<h1>SAVING ONLY SAMPLE SUBMISSION AS IT IS</h1>\n<p>if num_training_images == NUM_PUBLIC_TRAIN_IMAGES: print('Found NUM_PUBLIC_TRAIN_IMAGES. Copying sample submission.') save_submission_csv()</p>\n<h1>NOT RUNNING ANY MODEL/PREDICTIONS JUST FOR TESTING PURPOSE</h1>\n<p>#_, post_verification_predictions = get_predictions(labelmap) <br>\n #save_submission_csv(post_verification_predictions)</p>\n<p>We have checked that submission.csv file is there in output. Then why we are getting this error?<br>\nAny help?</p>\n<p>I can share my notebook with the admins, if they can help me.</p>",
  "messages": [
    {
      "id": "999189",
      "postDate": "09/05/2020 13:06:00",
      "content": "<p>Just to make our very first submission (a dummy submission), we commented out code to get predictions. And only trying to submit by saving the sample submission file to working directory in baseline code given to us here :-<br>\n<a href=\"https://www.kaggle.com/camaskew/host-baseline-example\" target=\"_blank\">https://www.kaggle.com/camaskew/host-baseline-example</a></p>\n<h1>SAVING ONLY SAMPLE SUBMISSION AS IT IS</h1>\n<p>if num_training_images == NUM_PUBLIC_TRAIN_IMAGES: print('Found NUM_PUBLIC_TRAIN_IMAGES. Copying sample submission.') save_submission_csv()</p>\n<h1>NOT RUNNING ANY MODEL/PREDICTIONS JUST FOR TESTING PURPOSE</h1>\n<p>#_, post_verification_predictions = get_predictions(labelmap) <br>\n #save_submission_csv(post_verification_predictions)</p>\n<p>We have checked that submission.csv file is there in output. Then why we are getting this error?<br>\nAny help?</p>\n<p>I can share my notebook with the admins, if they can help me.</p>",
      "rawMarkdown": "Just to make our very first submission (a dummy submission), we commented out code to get predictions. And only trying to submit by saving the sample submission file to working directory in baseline code given to us here :-\nhttps://www.kaggle.com/camaskew/host-baseline-example\n\n# SAVING ONLY SAMPLE SUBMISSION AS IT IS\nif num_training_images == NUM_PUBLIC_TRAIN_IMAGES: print('Found NUM_PUBLIC_TRAIN_IMAGES. Copying sample submission.') save_submission_csv()\n\n#NOT RUNNING ANY MODEL/PREDICTIONS JUST FOR TESTING PURPOSE\n \n #_, post_verification_predictions = get_predictions(labelmap) \n #save_submission_csv(post_verification_predictions)\n\n\nWe have checked that submission.csv file is there in output. Then why we are getting this error?\nAny help?\n\nI can share my notebook with the admins, if they can help me.",
      "votes": null
    },
    {
      "id": "999204",
      "postDate": "09/05/2020 13:18:18",
      "content": "<p>yes i'm facing the same issue. please help..!</p>",
      "rawMarkdown": "yes i'm facing the same issue. please help..!",
      "votes": null
    },
    {
      "id": "1000911",
      "postDate": "09/06/2020 22:32:40",
      "content": "<blockquote>\n  <p>if num_training_images == NUM_PUBLIC_TRAIN_IMAGES:</p>\n</blockquote>\n<p>This is false when the notebook is rerun.</p>",
      "rawMarkdown": "> if num_training_images == NUM_PUBLIC_TRAIN_IMAGES:\n\nThis is false when the notebook is rerun.",
      "votes": null
    },
    {
      "id": "1001412",
      "postDate": "09/07/2020 10:11:53",
      "content": "<p>thanks Usmann for your reply.</p>\n<p>But I have checked logs. It seems it's going inside the if condition with True value.</p>\n<p>Found 1580470 training images.<br>\n31.0s<br>\n50<br>\nFound NUM_PUBLIC_TRAIN_IMAGES. Copying sample submission.<br>\n34.5s<br>\n51<br>\n[NbConvertApp] Converting notebook <strong>notebook</strong>.ipynb to notebook<br>\n34.8s<br>\n52<br>\n[NbConvertApp] Writing 29195 bytes to <strong>notebook</strong>.ipynb<br>\n35.4s<br>\n53<br>\n[NbConvertApp] Converting notebook <strong>notebook</strong>.ipynb to html<br>\n36.1s<br>\n54<br>\n[NbConvertApp] Writing 325706 bytes to <strong>results</strong>.html</p>",
      "rawMarkdown": "thanks Usmann for your reply.\n\nBut I have checked logs. It seems it's going inside the if condition with True value.\n\nFound 1580470 training images.\n31.0s\n50\nFound NUM_PUBLIC_TRAIN_IMAGES. Copying sample submission.\n34.5s\n51\n[NbConvertApp] Converting notebook __notebook__.ipynb to notebook\n34.8s\n52\n[NbConvertApp] Writing 29195 bytes to __notebook__.ipynb\n35.4s\n53\n[NbConvertApp] Converting notebook __notebook__.ipynb to html\n36.1s\n54\n[NbConvertApp] Writing 325706 bytes to __results__.html",
      "votes": null
    },
    {
      "id": "1001848",
      "postDate": "09/07/2020 16:05:22",
      "content": "<p>Kaggle runs your code with the public test set when you are committing your notebook. And with the hidden private test set after you submit it. So<br>\n<code>if num_training_images == NUM_PUBLIC_TRAIN_IMAGES</code> <br>\nis false when you submit, as Usmann said.</p>",
      "rawMarkdown": "Kaggle runs your code with the public test set when you are committing your notebook. And with the hidden private test set after you submit it. So\n`if num_training_images == NUM_PUBLIC_TRAIN_IMAGES` \nis false when you submit, as Usmann said.",
      "votes": null
    },
    {
      "id": "1002635",
      "postDate": "09/08/2020 09:49:38",
      "content": "<p><a href=\"https://www.kaggle.com/allvor\" target=\"_blank\">@allvor</a> <a href=\"https://www.kaggle.com/usmannkhan\" target=\"_blank\">@usmannkhan</a> thanks a lot </p>",
      "rawMarkdown": "allvor @usmannkhan thanks a lot",
      "votes": null
    },
    {
      "id": "1005971",
      "postDate": "09/10/2020 23:47:35",
      "content": "<p>I understood what happened here.  Once we submit the code, kaggle takes notebook, created new instance of the container and run it. If notebook fail for any reason (too many memory usage, to many disk usage, syntax error, etc), then the file submission.csv in this instance of container is not created and we see this error. </p>\n<p>Again: The error \"Submission CSV Not Found\" means that the some (unknown for us) error occurs during rerun.</p>",
      "rawMarkdown": "I understood what happened here.  Once we submit the code, kaggle takes notebook, created new instance of the container and run it. If notebook fail for any reason (too many memory usage, to many disk usage, syntax error, etc), then the file submission.csv in this instance of container is not created and we see this error. \n\nAgain: The error \"Submission CSV Not Found\" means that the some (unknown for us) error occurs during rerun.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 999204,
      "author_name": "dineshmamidella",
      "author_url": "",
      "post_date": "09/05/2020 13:18:18",
      "content": "<p>yes i'm facing the same issue. please help..!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1000911,
      "author_name": "usmannkhan",
      "author_url": "",
      "post_date": "09/06/2020 22:32:40",
      "content": "<blockquote>\n  <p>if num_training_images == NUM_PUBLIC_TRAIN_IMAGES:</p>\n</blockquote>\n<p>This is false when the notebook is rerun.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1001412,
          "author_name": "rohitdeepu17",
          "author_url": "",
          "post_date": "09/07/2020 10:11:53",
          "content": "<p>thanks Usmann for your reply.</p>\n<p>But I have checked logs. It seems it's going inside the if condition with True value.</p>\n<p>Found 1580470 training images.<br>\n31.0s<br>\n50<br>\nFound NUM_PUBLIC_TRAIN_IMAGES. Copying sample submission.<br>\n34.5s<br>\n51<br>\n[NbConvertApp] Converting notebook <strong>notebook</strong>.ipynb to notebook<br>\n34.8s<br>\n52<br>\n[NbConvertApp] Writing 29195 bytes to <strong>notebook</strong>.ipynb<br>\n35.4s<br>\n53<br>\n[NbConvertApp] Converting notebook <strong>notebook</strong>.ipynb to html<br>\n36.1s<br>\n54<br>\n[NbConvertApp] Writing 325706 bytes to <strong>results</strong>.html</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1001848,
          "author_name": "allvor",
          "author_url": "",
          "post_date": "09/07/2020 16:05:22",
          "content": "<p>Kaggle runs your code with the public test set when you are committing your notebook. And with the hidden private test set after you submit it. So<br>\n<code>if num_training_images == NUM_PUBLIC_TRAIN_IMAGES</code> <br>\nis false when you submit, as Usmann said.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1002635,
      "author_name": "rohitdeepu17",
      "author_url": "",
      "post_date": "09/08/2020 09:49:38",
      "content": "<p><a href=\"https://www.kaggle.com/allvor\" target=\"_blank\">@allvor</a> <a href=\"https://www.kaggle.com/usmannkhan\" target=\"_blank\">@usmannkhan</a> thanks a lot </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1005971,
      "author_name": "boris2020",
      "author_url": "",
      "post_date": "09/10/2020 23:47:35",
      "content": "<p>I understood what happened here.  Once we submit the code, kaggle takes notebook, created new instance of the container and run it. If notebook fail for any reason (too many memory usage, to many disk usage, syntax error, etc), then the file submission.csv in this instance of container is not created and we see this error. </p>\n<p>Again: The error \"Submission CSV Not Found\" means that the some (unknown for us) error occurs during rerun.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "999189": "Just to make our very first submission (a dummy submission), we commented out code to get predictions. And only trying to submit by saving the sample submission file to working directory in baseline code given to us here :-\nhttps://www.kaggle.com/camaskew/host-baseline-example\n\n# SAVING ONLY SAMPLE SUBMISSION AS IT IS\nif num_training_images == NUM_PUBLIC_TRAIN_IMAGES: print('Found NUM_PUBLIC_TRAIN_IMAGES. Copying sample submission.') save_submission_csv()\n\n#NOT RUNNING ANY MODEL/PREDICTIONS JUST FOR TESTING PURPOSE\n \n #_, post_verification_predictions = get_predictions(labelmap) \n #save_submission_csv(post_verification_predictions)\n\n\nWe have checked that submission.csv file is there in output. Then why we are getting this error?\nAny help?\n\nI can share my notebook with the admins, if they can help me.",
    "999204": "yes i'm facing the same issue. please help..!",
    "1000911": "> if num_training_images == NUM_PUBLIC_TRAIN_IMAGES:\n\nThis is false when the notebook is rerun.",
    "1001412": "thanks Usmann for your reply.\n\nBut I have checked logs. It seems it's going inside the if condition with True value.\n\nFound 1580470 training images.\n31.0s\n50\nFound NUM_PUBLIC_TRAIN_IMAGES. Copying sample submission.\n34.5s\n51\n[NbConvertApp] Converting notebook __notebook__.ipynb to notebook\n34.8s\n52\n[NbConvertApp] Writing 29195 bytes to __notebook__.ipynb\n35.4s\n53\n[NbConvertApp] Converting notebook __notebook__.ipynb to html\n36.1s\n54\n[NbConvertApp] Writing 325706 bytes to __results__.html",
    "1001848": "Kaggle runs your code with the public test set when you are committing your notebook. And with the hidden private test set after you submit it. So\n`if num_training_images == NUM_PUBLIC_TRAIN_IMAGES` \nis false when you submit, as Usmann said.",
    "1002635": "allvor @usmannkhan thanks a lot",
    "1005971": "I understood what happened here.  Once we submit the code, kaggle takes notebook, created new instance of the container and run it. If notebook fail for any reason (too many memory usage, to many disk usage, syntax error, etc), then the file submission.csv in this instance of container is not created and we see this error. \n\nAgain: The error \"Submission CSV Not Found\" means that the some (unknown for us) error occurs during rerun."
  },
  "source": "meta"
}