{
  "id": 146872,
  "title": "[FIXED] Submission error? (CSV not found)",
  "url": "/competitions/prostate-cancer-grade-assessment/discussion/146872",
  "author_name": "Satwik",
  "post_date": "2020-04-28T18:35:59.960000",
  "votes": 0,
  "comment_count": 4,
  "views": 0,
  "content": "<p>I tried making a submission, but got an error saying submission.csv not found , while it exists.</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3459992%2F4ee0b59727315f187dbeb8b8c272e09b%2Funknown.png?generation=1588098856293436&amp;alt=media\" alt=\"\"></p>\n\n<p>I used the inference part from <a href=\"https://www.kaggle.com/yasufuminakama/panda-se-resnext50-classification-baseline\">this kernel</a></p>\n\n<p>Anyone having similar issues / or know a solution?\nThank you.</p>\n\n<p>EDIT - There was an issue in the inference code. The inference function was being passed a parameter for pretrained , and there was a typo in the variable name. </p>",
  "messages": [
    {
      "id": 859021,
      "postDate": "2020-05-24T04:12:59.173Z",
      "content": "<p>I got the same issue as well. The submission csv is sometimes found by kaggle and sometimes not.\nWhat i meant was ,2 of my submissions went through successfull. However all the later submissions with only changes in model and nothing else fails to generate the csv. \nI wonder whats the real issue here. I have tried reducing file size, reducing batch size, almost everything.\nAny help is appreciated.</p>",
      "rawMarkdown": "I got the same issue as well. The submission csv is sometimes found by kaggle and sometimes not.\nWhat i meant was ,2 of my submissions went through successfull. However all the later submissions with only changes in model and nothing else fails to generate the csv. \nI wonder whats the real issue here. I have tried reducing file size, reducing batch size, almost everything.\nAny help is appreciated.",
      "replies": [
        {
          "id": 860846,
          "postDate": "2020-05-25T16:20:41.427Z",
          "content": "<p>It's probably because the file is not actually being created when you run the inference on the complete public test set , due to some incorrect file naming , function calls or things like that. You said you only changed the model , which I assume you are creating an instance of , or loading the weights in the inference function or loop , so there might be some error there in loading the model , the weights or anything like that which might cause the csv file to not be generated during the submission. A simple workaround is to just try the inference code on the training files , just load the train.csv and run inference for train.head() and if there is any error you will see the traceback for it. </p>",
          "rawMarkdown": "It's probably because the file is not actually being created when you run the inference on the complete public test set , due to some incorrect file naming , function calls or things like that. You said you only changed the model , which I assume you are creating an instance of , or loading the weights in the inference function or loop , so there might be some error there in loading the model , the weights or anything like that which might cause the csv file to not be generated during the submission. A simple workaround is to just try the inference code on the training files , just load the train.csv and run inference for train.head() and if there is any error you will see the traceback for it. "
        }
      ]
    },
    {
      "id": 847018,
      "postDate": "2020-05-14T06:01:00.937Z",
      "content": "<p><a href=\"/p4rallax\">@p4rallax</a> \nHi i get the same issue how did u overcome the issue. </p>",
      "rawMarkdown": "@p4rallax \nHi i get the same issue how did u overcome the issue. \n",
      "replies": [
        {
          "id": 847816,
          "postDate": "2020-05-14T16:03:13.563Z",
          "content": "<p>There was an issue with the code I used for inference. The inference function was not being called properly. Check your code again , where you create the submission.csv. Make sure you are able to run the inference code on any number of images and not just the 3 as in the test.csv provided. Try checking the inference code on the training images.</p>",
          "rawMarkdown": "There was an issue with the code I used for inference. The inference function was not being called properly. Check your code again , where you create the submission.csv. Make sure you are able to run the inference code on any number of images and not just the 3 as in the test.csv provided. Try checking the inference code on the training images."
        }
      ]
    },
    {
      "id": 825043,
      "postDate": "2020-04-28T18:35:59.960Z",
      "content": "<p>I tried making a submission, but got an error saying submission.csv not found , while it exists.</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3459992%2F4ee0b59727315f187dbeb8b8c272e09b%2Funknown.png?generation=1588098856293436&amp;alt=media\" alt=\"\"></p>\n\n<p>I used the inference part from <a href=\"https://www.kaggle.com/yasufuminakama/panda-se-resnext50-classification-baseline\">this kernel</a></p>\n\n<p>Anyone having similar issues / or know a solution?\nThank you.</p>\n\n<p>EDIT - There was an issue in the inference code. The inference function was being passed a parameter for pretrained , and there was a typo in the variable name. </p>",
      "rawMarkdown": "I tried making a submission, but got an error saying submission.csv not found , while it exists.\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3459992%2F4ee0b59727315f187dbeb8b8c272e09b%2Funknown.png?generation=1588098856293436&amp;alt=media)\n\nI used the inference part from [this kernel](https://www.kaggle.com/yasufuminakama/panda-se-resnext50-classification-baseline)\n\nAnyone having similar issues / or know a solution?\nThank you.\n\n\n\nEDIT - There was an issue in the inference code. The inference function was being passed a parameter for pretrained , and there was a typo in the variable name. "
    }
  ],
  "comments": [
    {
      "id": 859021,
      "author_name": "Noble",
      "author_url": "",
      "post_date": "2020-05-24T04:12:59.173000",
      "content": "<p>I got the same issue as well. The submission csv is sometimes found by kaggle and sometimes not.\nWhat i meant was ,2 of my submissions went through successfull. However all the later submissions with only changes in model and nothing else fails to generate the csv. \nI wonder whats the real issue here. I have tried reducing file size, reducing batch size, almost everything.\nAny help is appreciated.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 860846,
          "author_name": "Satwik",
          "author_url": "",
          "post_date": "2020-05-25T16:20:41.427000",
          "content": "<p>It's probably because the file is not actually being created when you run the inference on the complete public test set , due to some incorrect file naming , function calls or things like that. You said you only changed the model , which I assume you are creating an instance of , or loading the weights in the inference function or loop , so there might be some error there in loading the model , the weights or anything like that which might cause the csv file to not be generated during the submission. A simple workaround is to just try the inference code on the training files , just load the train.csv and run inference for train.head() and if there is any error you will see the traceback for it. </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 847018,
      "author_name": "Jaideep",
      "author_url": "",
      "post_date": "2020-05-14T06:01:00.937000",
      "content": "<p><a href=\"/p4rallax\">@p4rallax</a> \nHi i get the same issue how did u overcome the issue. </p>",
      "votes": 0,
      "replies": [
        {
          "id": 847816,
          "author_name": "Satwik",
          "author_url": "",
          "post_date": "2020-05-14T16:03:13.563000",
          "content": "<p>There was an issue with the code I used for inference. The inference function was not being called properly. Check your code again , where you create the submission.csv. Make sure you are able to run the inference code on any number of images and not just the 3 as in the test.csv provided. Try checking the inference code on the training images.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "859021": "I got the same issue as well. The submission csv is sometimes found by kaggle and sometimes not.\nWhat i meant was ,2 of my submissions went through successfull. However all the later submissions with only changes in model and nothing else fails to generate the csv. \nI wonder whats the real issue here. I have tried reducing file size, reducing batch size, almost everything.\nAny help is appreciated.",
    "847018": "@p4rallax \nHi i get the same issue how did u overcome the issue. \n",
    "825043": "I tried making a submission, but got an error saying submission.csv not found , while it exists.\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3459992%2F4ee0b59727315f187dbeb8b8c272e09b%2Funknown.png?generation=1588098856293436&amp;alt=media)\n\nI used the inference part from [this kernel](https://www.kaggle.com/yasufuminakama/panda-se-resnext50-classification-baseline)\n\nAnyone having similar issues / or know a solution?\nThank you.\n\n\n\nEDIT - There was an issue in the inference code. The inference function was being passed a parameter for pretrained , and there was a typo in the variable name. "
  }
}