{
  "id": 435326,
  "title": "Submission CSV not found",
  "url": "/competitions/rsna-2023-abdominal-trauma-detection/discussion/435326",
  "author_name": "jdonnelly0804",
  "post_date": "2023-08-29T00:02:01.970000",
  "votes": 3,
  "comment_count": 8,
  "views": 0,
  "content": "<p>Hi All,</p>\n<p>I've been having trouble with getting a score back, the notebook runs fine, is offline, etc, and I have a submission.csv with the 3 patient_ids as well as the 14 columns for the injuries. Would appreciate if anyone could help. Linking public notebook - <a href=\"https://www.kaggle.com/code/jdonnelly0804/rsna-first-submission\" target=\"_blank\">https://www.kaggle.com/code/jdonnelly0804/rsna-first-submission</a></p>",
  "messages": [
    {
      "id": 2413459,
      "postDate": "2023-08-29T00:02:01.970Z",
      "content": "<p>Hi All,</p>\n<p>I've been having trouble with getting a score back, the notebook runs fine, is offline, etc, and I have a submission.csv with the 3 patient_ids as well as the 14 columns for the injuries. Would appreciate if anyone could help. Linking public notebook - <a href=\"https://www.kaggle.com/code/jdonnelly0804/rsna-first-submission\" target=\"_blank\">https://www.kaggle.com/code/jdonnelly0804/rsna-first-submission</a></p>",
      "rawMarkdown": "Hi All,\n\nI've been having trouble with getting a score back, the notebook runs fine, is offline, etc, and I have a submission.csv with the 3 patient_ids as well as the 14 columns for the injuries. Would appreciate if anyone could help. Linking public notebook - https://www.kaggle.com/code/jdonnelly0804/rsna-first-submission",
      "votes": 3
    },
    {
      "id": 2418629,
      "postDate": "2023-09-01T12:36:50.690Z",
      "content": "<p>In my case it was due to corrupt dicom file mentioned <a href=\"https://www.kaggle.com/competitions/rsna-2023-abdominal-trauma-detection/discussion/435815\" target=\"_blank\">here</a>.</p>\n<p>I was reading files in nested loops and when that file was encountered, loop was throwing an error so a partial submission file was created later due to missing scans.</p>",
      "rawMarkdown": "In my case it was due to corrupt dicom file mentioned [here](https://www.kaggle.com/competitions/rsna-2023-abdominal-trauma-detection/discussion/435815).\n\nI was reading files in nested loops and when that file was encountered, loop was throwing an error so a partial submission file was created later due to missing scans.",
      "votes": 1
    },
    {
      "id": 2415331,
      "postDate": "2023-08-30T08:47:17.350Z",
      "content": "<p>As a result of experiments, I have established the following.<br>\nI was writing about 10 MB of files to the '/kaggle/working' directory. Everything goes fine.<br>\nAnd if you write a lot (About 100 MB), I did not set the exact number, then at the end there is a CSV Not Found error.<br>\nI don't presume to judge why, but it's a fact. I didn't find any information on this issue in Google.</p>",
      "rawMarkdown": "As a result of experiments, I have established the following.\nI was writing about 10 MB of files to the '/kaggle/working' directory. Everything goes fine.\nAnd if you write a lot (About 100 MB), I did not set the exact number, then at the end there is a CSV Not Found error.\nI don't presume to judge why, but it's a fact. I didn't find any information on this issue in Google.",
      "votes": 1,
      "replies": [
        {
          "id": 2417275,
          "postDate": "2023-08-31T14:32:32.097Z",
          "content": "<p>Interesting… Thanks for the heads up!</p>",
          "rawMarkdown": "Interesting... Thanks for the heads up!"
        },
        {
          "id": 2418025,
          "postDate": "2023-09-01T04:44:53.487Z",
          "content": "<p>I got the same error but I don't think this would be the reason.</p>",
          "rawMarkdown": "I got the same error but I don't think this would be the reason."
        }
      ]
    },
    {
      "id": 2414197,
      "postDate": "2023-08-29T13:13:03.927Z",
      "content": "<p>I have problems with this error too \"Submission CSV not found\"</p>\n<p>The simplest output of the file passes without an error. As soon as I added a little logic to the code, it issues a Submission CSV not found. Despite the fact that it is under the try catch block and in theory should be executed in any case.</p>\n<p>Although, my code writes intermediate files to the 'working' directory for convenience. Although yesterday I conducted experiments with writing files to the working directory and even reading them. Everything worked fine. What doesn't work in my new code - now I can only guess. Attempts are over for today. I will report back when I find the cause.<br>\nBy the way, have you tried switching gpu P100 to t4 or vice versa?</p>",
      "rawMarkdown": "I have problems with this error too \"Submission CSV not found\"\n\nThe simplest output of the file passes without an error. As soon as I added a little logic to the code, it issues a Submission CSV not found. Despite the fact that it is under the try catch block and in theory should be executed in any case.\n\nAlthough, my code writes intermediate files to the 'working' directory for convenience. Although yesterday I conducted experiments with writing files to the working directory and even reading them. Everything worked fine. What doesn't work in my new code - now I can only guess. Attempts are over for today. I will report back when I find the cause.\nBy the way, have you tried switching gpu P100 to t4 or vice versa?\n",
      "votes": 1,
      "replies": [
        {
          "id": 2414212,
          "postDate": "2023-08-29T13:26:59.467Z",
          "content": "<p>I haven't! I'll give it a shot today, and I'll also let you know if I figure out this submission error… sure is a pain, no idea what's wrong! My output looks exactly the same as other notebooks I've looked at.</p>",
          "rawMarkdown": "I haven't! I'll give it a shot today, and I'll also let you know if I figure out this submission error... sure is a pain, no idea what's wrong! My output looks exactly the same as other notebooks I've looked at.",
          "replies": [
            {
              "id": 2414345,
              "postDate": "2023-08-29T15:11:51.517Z",
              "content": "<p>Do you have an example of minimal code that outputs \"CSV not found\"? <br>\nYour link to the notebook returns a 404 error, I would like to see if there are any similarities with my code. </p>\n<p>\"My output looks exactly the same as other notebooks I've looked at.\"<br>\nMy notebook also outputs the CSV file during normal execution, but it cannot find it when submitted. This suggests that the error is not related to the output, but rather to an issue in the code that works fine during normal notebook execution but stops the code from running during submission. </p>\n<p>My notebook produces warnings, which may be related to the issue.<br>\n [WARN:0@1949.697] global loadsave.cpp:248 findDecoder imread_('/kaggle/working/presave/9537-1117/0.png'): can't open/read file: check file path/integrity. </p>\n<p>If I don't find better ideas, I will investigate this version.</p>",
              "rawMarkdown": "Do you have an example of minimal code that outputs \"CSV not found\"? \nYour link to the notebook returns a 404 error, I would like to see if there are any similarities with my code. \n\n\"My output looks exactly the same as other notebooks I've looked at.\"\nMy notebook also outputs the CSV file during normal execution, but it cannot find it when submitted. This suggests that the error is not related to the output, but rather to an issue in the code that works fine during normal notebook execution but stops the code from running during submission. \n\nMy notebook produces warnings, which may be related to the issue.\n [WARN:0@1949.697] global loadsave.cpp:248 findDecoder imread_('/kaggle/working/presave/9537-1117/0.png'): can't open/read file: check file path/integrity. \n \nIf I don't find better ideas, I will investigate this version."
            },
            {
              "id": 2414634,
              "postDate": "2023-08-29T19:19:15.563Z",
              "content": "<p><code>preds, _ = learn.get_preds(dl=test_dl)\nsubmission = pd.read_csv(\"/kaggle/input/rsna-2023-abdominal-trauma-detection/sample_submission.csv\")\nsubmission[df.columns]= preds\nsubmission.to_csv('submission.csv', index=False)</code></p>\n<p>I don't get that warning however. For now, I just created a separate notebook that reads in the submission DF, and then merges in my predictions from my training notebook… for whatever reason that works when I submit, and at least I can get a score and iterate for now. Also, I tried using the T4, and found that I was able to train slightly faster.</p>",
              "rawMarkdown": "`preds, _ = learn.get_preds(dl=test_dl)\nsubmission = pd.read_csv(\"/kaggle/input/rsna-2023-abdominal-trauma-detection/sample_submission.csv\")\nsubmission[df.columns]= preds\nsubmission.to_csv('submission.csv', index=False)`\n\nI don't get that warning however. For now, I just created a separate notebook that reads in the submission DF, and then merges in my predictions from my training notebook... for whatever reason that works when I submit, and at least I can get a score and iterate for now. Also, I tried using the T4, and found that I was able to train slightly faster."
            }
          ]
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 2418629,
      "author_name": "Gunes Evitan",
      "author_url": "",
      "post_date": "2023-09-01T12:36:50.690000",
      "content": "<p>In my case it was due to corrupt dicom file mentioned <a href=\"https://www.kaggle.com/competitions/rsna-2023-abdominal-trauma-detection/discussion/435815\" target=\"_blank\">here</a>.</p>\n<p>I was reading files in nested loops and when that file was encountered, loop was throwing an error so a partial submission file was created later due to missing scans.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 2415331,
      "author_name": "Anuar-s",
      "author_url": "",
      "post_date": "2023-08-30T08:47:17.350000",
      "content": "<p>As a result of experiments, I have established the following.<br>\nI was writing about 10 MB of files to the '/kaggle/working' directory. Everything goes fine.<br>\nAnd if you write a lot (About 100 MB), I did not set the exact number, then at the end there is a CSV Not Found error.<br>\nI don't presume to judge why, but it's a fact. I didn't find any information on this issue in Google.</p>",
      "votes": 1,
      "replies": [
        {
          "id": 2417275,
          "author_name": "jdonnelly0804",
          "author_url": "",
          "post_date": "2023-08-31T14:32:32.097000",
          "content": "<p>Interesting… Thanks for the heads up!</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2418025,
          "author_name": "Gunes Evitan",
          "author_url": "",
          "post_date": "2023-09-01T04:44:53.487000",
          "content": "<p>I got the same error but I don't think this would be the reason.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2414197,
      "author_name": "Anuar-s",
      "author_url": "",
      "post_date": "2023-08-29T13:13:03.927000",
      "content": "<p>I have problems with this error too \"Submission CSV not found\"</p>\n<p>The simplest output of the file passes without an error. As soon as I added a little logic to the code, it issues a Submission CSV not found. Despite the fact that it is under the try catch block and in theory should be executed in any case.</p>\n<p>Although, my code writes intermediate files to the 'working' directory for convenience. Although yesterday I conducted experiments with writing files to the working directory and even reading them. Everything worked fine. What doesn't work in my new code - now I can only guess. Attempts are over for today. I will report back when I find the cause.<br>\nBy the way, have you tried switching gpu P100 to t4 or vice versa?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 2414212,
          "author_name": "jdonnelly0804",
          "author_url": "",
          "post_date": "2023-08-29T13:26:59.467000",
          "content": "<p>I haven't! I'll give it a shot today, and I'll also let you know if I figure out this submission error… sure is a pain, no idea what's wrong! My output looks exactly the same as other notebooks I've looked at.</p>",
          "votes": 0,
          "replies": [
            {
              "id": 2414345,
              "author_name": "Anuar-s",
              "author_url": "",
              "post_date": "2023-08-29T15:11:51.517000",
              "content": "<p>Do you have an example of minimal code that outputs \"CSV not found\"? <br>\nYour link to the notebook returns a 404 error, I would like to see if there are any similarities with my code. </p>\n<p>\"My output looks exactly the same as other notebooks I've looked at.\"<br>\nMy notebook also outputs the CSV file during normal execution, but it cannot find it when submitted. This suggests that the error is not related to the output, but rather to an issue in the code that works fine during normal notebook execution but stops the code from running during submission. </p>\n<p>My notebook produces warnings, which may be related to the issue.<br>\n [WARN:0@1949.697] global loadsave.cpp:248 findDecoder imread_('/kaggle/working/presave/9537-1117/0.png'): can't open/read file: check file path/integrity. </p>\n<p>If I don't find better ideas, I will investigate this version.</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2414634,
              "author_name": "jdonnelly0804",
              "author_url": "",
              "post_date": "2023-08-29T19:19:15.563000",
              "content": "<p><code>preds, _ = learn.get_preds(dl=test_dl)\nsubmission = pd.read_csv(\"/kaggle/input/rsna-2023-abdominal-trauma-detection/sample_submission.csv\")\nsubmission[df.columns]= preds\nsubmission.to_csv('submission.csv', index=False)</code></p>\n<p>I don't get that warning however. For now, I just created a separate notebook that reads in the submission DF, and then merges in my predictions from my training notebook… for whatever reason that works when I submit, and at least I can get a score and iterate for now. Also, I tried using the T4, and found that I was able to train slightly faster.</p>",
              "votes": 0,
              "replies": []
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2413459": "Hi All,\n\nI've been having trouble with getting a score back, the notebook runs fine, is offline, etc, and I have a submission.csv with the 3 patient_ids as well as the 14 columns for the injuries. Would appreciate if anyone could help. Linking public notebook - https://www.kaggle.com/code/jdonnelly0804/rsna-first-submission",
    "2418629": "In my case it was due to corrupt dicom file mentioned [here](https://www.kaggle.com/competitions/rsna-2023-abdominal-trauma-detection/discussion/435815).\n\nI was reading files in nested loops and when that file was encountered, loop was throwing an error so a partial submission file was created later due to missing scans.",
    "2415331": "As a result of experiments, I have established the following.\nI was writing about 10 MB of files to the '/kaggle/working' directory. Everything goes fine.\nAnd if you write a lot (About 100 MB), I did not set the exact number, then at the end there is a CSV Not Found error.\nI don't presume to judge why, but it's a fact. I didn't find any information on this issue in Google.",
    "2414197": "I have problems with this error too \"Submission CSV not found\"\n\nThe simplest output of the file passes without an error. As soon as I added a little logic to the code, it issues a Submission CSV not found. Despite the fact that it is under the try catch block and in theory should be executed in any case.\n\nAlthough, my code writes intermediate files to the 'working' directory for convenience. Although yesterday I conducted experiments with writing files to the working directory and even reading them. Everything worked fine. What doesn't work in my new code - now I can only guess. Attempts are over for today. I will report back when I find the cause.\nBy the way, have you tried switching gpu P100 to t4 or vice versa?\n"
  }
}