{
  "id": 124702,
  "title": "Submission CSV Not Found",
  "url": "/competitions/deepfake-detection-challenge/discussion/124702",
  "author_name": "Xinyi Ding",
  "post_date": "2020-01-06T00:49:24.501000",
  "votes": 8,
  "comment_count": 15,
  "views": 0,
  "content": "<p>Hi all,</p>\n\n<p>I wrote a baseline model using one frame and a pre-trained resnet18  <a href=\"https://www.kaggle.com/xinyiding/deepfake-single-frame\">https://www.kaggle.com/xinyiding/deepfake-single-frame</a>. But I keep getting this 'Submission CSV Not Found' error.  My guess is there is some exception before generating the submission csv. I have a model works fine without the face detection stuff.  So added some try except just for the face detection.</p>\n\n<p>I have no problem committing and generating the 400 scores for the public dataset. Also, when I trained my model, I almost used all the 500G data available and didn't see any errors. Do we expect some videos from the private test set that are very different from this 500g dataset (say invalid videos or  videos with less than 60 frames ?)</p>\n\n<p>Or do you think it might be a memory issue? Thank you for your help!</p>\n\n<p>UPDATE: I fixed this issue by enclosing a try-except block for each prediction, my guess is there are some videos that opencv will throw some errors</p>",
  "messages": [
    {
      "id": 711352,
      "postDate": "2020-01-06T00:49:24.500Z",
      "content": "<p>Hi all,</p>\n\n<p>I wrote a baseline model using one frame and a pre-trained resnet18  <a href=\"https://www.kaggle.com/xinyiding/deepfake-single-frame\">https://www.kaggle.com/xinyiding/deepfake-single-frame</a>. But I keep getting this 'Submission CSV Not Found' error.  My guess is there is some exception before generating the submission csv. I have a model works fine without the face detection stuff.  So added some try except just for the face detection.</p>\n\n<p>I have no problem committing and generating the 400 scores for the public dataset. Also, when I trained my model, I almost used all the 500G data available and didn't see any errors. Do we expect some videos from the private test set that are very different from this 500g dataset (say invalid videos or  videos with less than 60 frames ?)</p>\n\n<p>Or do you think it might be a memory issue? Thank you for your help!</p>\n\n<p>UPDATE: I fixed this issue by enclosing a try-except block for each prediction, my guess is there are some videos that opencv will throw some errors</p>",
      "rawMarkdown": "Hi all,\n\nI wrote a baseline model using one frame and a pre-trained resnet18  [https://www.kaggle.com/xinyiding/deepfake-single-frame](https://www.kaggle.com/xinyiding/deepfake-single-frame). But I keep getting this 'Submission CSV Not Found' error.  My guess is there is some exception before generating the submission csv. I have a model works fine without the face detection stuff.  So added some try except just for the face detection.\n\nI have no problem committing and generating the 400 scores for the public dataset. Also, when I trained my model, I almost used all the 500G data available and didn't see any errors. Do we expect some videos from the private test set that are very different from this 500g dataset (say invalid videos or  videos with less than 60 frames ?)\n\nOr do you think it might be a memory issue? Thank you for your help!\n\n\nUPDATE: I fixed this issue by enclosing a try-except block for each prediction, my guess is there are some videos that opencv will throw some errors",
      "votes": 7
    },
    {
      "id": 711607,
      "postDate": "2020-01-06T10:00:35.830Z",
      "content": "<p>I have error \"Submission CSV Not Found\" for the same code, which works ok 4 days ago. Looks like some problem at Kaggle scoring system.</p>",
      "rawMarkdown": "I have error \"Submission CSV Not Found\" for the same code, which works ok 4 days ago. Looks like some problem at Kaggle scoring system.",
      "votes": 5,
      "replies": [
        {
          "id": 712368,
          "postDate": "2020-01-07T06:30:03.823Z",
          "content": "<p>I had similar issues and I suspect there are some corrupt video files in the updated test dataset. I abandoned pytorch dataloader and instead did like below pseudo code to solve the issues:\n<code>\nsubmission = pd.read_csv('...sample_submission.csv')\nsubmission['label'] = 0.5\nsubmission.set_index('filename')\nfor path in paths:\n    try:\n        # load video and predict\n        submission.loc[path] = prediction\n    except:\n        pass\nsubmission.to_csv('submission.csv', index=True)\n</code></p>",
          "rawMarkdown": "I had similar issues and I suspect there are some corrupt video files in the updated test dataset. I abandoned pytorch dataloader and instead did like below pseudo code to solve the issues:\n```\nsubmission = pd.read_csv('...sample_submission.csv')\nsubmission['label'] = 0.5\nsubmission.set_index('filename')\nfor path in paths:\n    try:\n        # load video and predict\n        submission.loc[path] = prediction\n    except:\n        pass\nsubmission.to_csv('submission.csv', index=True)\n```",
          "votes": 6
        },
        {
          "id": 712427,
          "postDate": "2020-01-07T08:30:11.380Z",
          "content": "<p>I didn't use try-except block in my code. I probably will give it a try. </p>\n\n<p>The other idea what could happen: after reencode or update of videos in private test set, opencv couldn't read them, because of new codec or container.</p>",
          "rawMarkdown": "I didn't use try-except block in my code. I probably will give it a try. \n\nThe other idea what could happen: after reencode or update of videos in private test set, opencv couldn't read them, because of new codec or container.",
          "votes": 2
        },
        {
          "id": 712844,
          "postDate": "2020-01-07T16:26:36.733Z",
          "content": "<p>&gt; I have error \"Submission CSV Not Found\" for the same code, which works ok 4 days ago.</p>\n\n<p>I have the same problem with submission which successfully run before holidays (today it fails in first few minutes). \nI've done minor changes in <strong>video reading</strong> &amp; <strong>frames handling</strong> and now submission has not fallen yet...</p>\n\n<p>UPD : Submission run successfully.</p>",
          "rawMarkdown": "&gt; I have error \"Submission CSV Not Found\" for the same code, which works ok 4 days ago.\n\nI have the same problem with submission which successfully run before holidays (today it fails in first few minutes). \nI've done minor changes in **video reading** &amp; **frames handling** and now submission has not fallen yet...\n\nUPD : Submission run successfully.\n",
          "votes": 5,
          "isDeleted": true
        },
        {
          "id": 713542,
          "postDate": "2020-01-08T12:02:56.117Z",
          "content": "<p>My submissions now work fine too.</p>",
          "rawMarkdown": "My submissions now work fine too.",
          "votes": 2
        },
        {
          "id": 720066,
          "postDate": "2020-01-16T05:53:40.557Z",
          "rawMarkdown": "",
          "isDeleted": true
        }
      ]
    },
    {
      "id": 725983,
      "postDate": "2020-01-22T17:31:03.893Z",
      "content": "<p><a href=\"/xinyiding\">@xinyiding</a> thanks for sharing your notebook. reviewing your code was very insightful. </p>",
      "rawMarkdown": "@xinyiding thanks for sharing your notebook. reviewing your code was very insightful. "
    },
    {
      "id": 725107,
      "postDate": "2020-01-21T20:12:06.903Z",
      "content": "<p>So what is the solution here?\nI guess it has something to do with way we take input, and where we generate output (in the same directory??).\nShould our model look for: \"test_videos.zip\" or something else? Will it be in the same directory? </p>",
      "rawMarkdown": "So what is the solution here?\nI guess it has something to do with way we take input, and where we generate output (in the same directory??).\nShould our model look for: \"test_videos.zip\" or something else? Will it be in the same directory? "
    },
    {
      "id": 713531,
      "postDate": "2020-01-08T11:43:13.777Z",
      "content": "<p>I have exactly the same error, even when providing a submission CSV without accessing to any data : </p>\n\n<p><code>python\nsubmission = pd.read_csv(\"../input/deepfake-detection-challenge/sample_submission.csv\")\nsubmission['label'] = 0.5\nsubmission.set_index('filename')\nsubmission.to_csv('submission.csv', index=True)\n</code></p>\n\n<p>I tried to contact the support where I received the following answer : </p>\n\n<blockquote>\n  <p>This is a suitable question to best ask in the discussion or competition forums. Your peers are a great resource for these types of questions. Please note that Kaggle support is reserved for technical issues affecting all participants.</p>\n</blockquote>\n\n<p>This is actually not anymore my problem but the problem of multiple different submissions ...</p>",
      "rawMarkdown": "I have exactly the same error, even when providing a submission CSV without accessing to any data : \n\n```python\nsubmission = pd.read_csv(\"../input/deepfake-detection-challenge/sample_submission.csv\")\nsubmission['label'] = 0.5\nsubmission.set_index('filename')\nsubmission.to_csv('submission.csv', index=True)\n```\n\nI tried to contact the support where I received the following answer : \n&gt; This is a suitable question to best ask in the discussion or competition forums. Your peers are a great resource for these types of questions. Please note that Kaggle support is reserved for technical issues affecting all participants.\n\nThis is actually not anymore my problem but the problem of multiple different submissions ..."
    },
    {
      "id": 712550,
      "postDate": "2020-01-07T11:14:23.683Z",
      "content": "<p>Hi All, </p>\n\n<p>I downloaded the large data-set (470GB). However, after unzipping I can only find the .mp4 files. Would anyone be able to let me know where is the .json (metadata) file and is the whole 470GB data-set is for training? If so how could I get the test set? </p>\n\n<p>Thanks</p>\n\n<p>Michael</p>",
      "rawMarkdown": "Hi All, \n\nI downloaded the large data-set (470GB). However, after unzipping I can only find the .mp4 files. Would anyone be able to let me know where is the .json (metadata) file and is the whole 470GB data-set is for training? If so how could I get the test set? \n\nThanks\n\nMichael",
      "replies": [
        {
          "id": 712909,
          "postDate": "2020-01-07T18:02:16.420Z",
          "content": "<p>The json file is in the same folder as videos, just sort by file size, you will find it</p>",
          "rawMarkdown": "The json file is in the same folder as videos, just sort by file size, you will find it"
        }
      ]
    },
    {
      "id": 712366,
      "postDate": "2020-01-07T06:26:43.087Z",
      "content": "<p>you can try to kick off the internet button in your kernel and then commit. hope that can help you.</p>",
      "rawMarkdown": "you can try to kick off the internet button in your kernel and then commit. hope that can help you."
    },
    {
      "id": 711447,
      "postDate": "2020-01-06T05:39:05.860Z",
      "content": "<p>I have got the same error now, no idea what it is yet.</p>",
      "rawMarkdown": "I have got the same error now, no idea what it is yet.",
      "replies": [
        {
          "id": 711452,
          "postDate": "2020-01-06T05:57:46.500Z",
          "content": "<p>One workaround is not to use the data loader from pytorch, but iterate through each video and enclose each prediction with a try except block. This might not be the most efficient way, but it did solve my problem. </p>",
          "rawMarkdown": "One workaround is not to use the data loader from pytorch, but iterate through each video and enclose each prediction with a try except block. This might not be the most efficient way, but it did solve my problem. ",
          "votes": 1
        }
      ]
    },
    {
      "id": 712667,
      "postDate": "2020-01-07T13:46:07.793Z",
      "rawMarkdown": "",
      "votes": 1,
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 711607,
      "author_name": "ZFTurbo",
      "author_url": "",
      "post_date": "2020-01-06T10:00:35.830000",
      "content": "<p>I have error \"Submission CSV Not Found\" for the same code, which works ok 4 days ago. Looks like some problem at Kaggle scoring system.</p>",
      "votes": 5,
      "replies": [
        {
          "id": 712368,
          "author_name": "YoonSoo",
          "author_url": "",
          "post_date": "2020-01-07T06:30:03.823000",
          "content": "<p>I had similar issues and I suspect there are some corrupt video files in the updated test dataset. I abandoned pytorch dataloader and instead did like below pseudo code to solve the issues:\n<code>\nsubmission = pd.read_csv('...sample_submission.csv')\nsubmission['label'] = 0.5\nsubmission.set_index('filename')\nfor path in paths:\n    try:\n        # load video and predict\n        submission.loc[path] = prediction\n    except:\n        pass\nsubmission.to_csv('submission.csv', index=True)\n</code></p>",
          "votes": 6,
          "replies": []
        },
        {
          "id": 712427,
          "author_name": "ZFTurbo",
          "author_url": "",
          "post_date": "2020-01-07T08:30:11.380000",
          "content": "<p>I didn't use try-except block in my code. I probably will give it a try. </p>\n\n<p>The other idea what could happen: after reencode or update of videos in private test set, opencv couldn't read them, because of new codec or container.</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 712844,
          "author_name": "",
          "author_url": "",
          "post_date": "2020-01-07T16:26:36.733000",
          "content": "<p>&gt; I have error \"Submission CSV Not Found\" for the same code, which works ok 4 days ago.</p>\n\n<p>I have the same problem with submission which successfully run before holidays (today it fails in first few minutes). \nI've done minor changes in <strong>video reading</strong> &amp; <strong>frames handling</strong> and now submission has not fallen yet...</p>\n\n<p>UPD : Submission run successfully.</p>",
          "votes": 5,
          "replies": []
        },
        {
          "id": 713542,
          "author_name": "ZFTurbo",
          "author_url": "",
          "post_date": "2020-01-08T12:02:56.117000",
          "content": "<p>My submissions now work fine too.</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 720066,
          "author_name": "",
          "author_url": "",
          "post_date": "2020-01-16T05:53:40.557000",
          "content": "",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 725983,
      "author_name": "Nick Sciarrilli",
      "author_url": "",
      "post_date": "2020-01-22T17:31:03.893000",
      "content": "<p><a href=\"/xinyiding\">@xinyiding</a> thanks for sharing your notebook. reviewing your code was very insightful. </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 725107,
      "author_name": "AshutoshNirala",
      "author_url": "",
      "post_date": "2020-01-21T20:12:06.903000",
      "content": "<p>So what is the solution here?\nI guess it has something to do with way we take input, and where we generate output (in the same directory??).\nShould our model look for: \"test_videos.zip\" or something else? Will it be in the same directory? </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 713531,
      "author_name": "P. Breton",
      "author_url": "",
      "post_date": "2020-01-08T11:43:13.777000",
      "content": "<p>I have exactly the same error, even when providing a submission CSV without accessing to any data : </p>\n\n<p><code>python\nsubmission = pd.read_csv(\"../input/deepfake-detection-challenge/sample_submission.csv\")\nsubmission['label'] = 0.5\nsubmission.set_index('filename')\nsubmission.to_csv('submission.csv', index=True)\n</code></p>\n\n<p>I tried to contact the support where I received the following answer : </p>\n\n<blockquote>\n  <p>This is a suitable question to best ask in the discussion or competition forums. Your peers are a great resource for these types of questions. Please note that Kaggle support is reserved for technical issues affecting all participants.</p>\n</blockquote>\n\n<p>This is actually not anymore my problem but the problem of multiple different submissions ...</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 712550,
      "author_name": "Schroter",
      "author_url": "",
      "post_date": "2020-01-07T11:14:23.683000",
      "content": "<p>Hi All, </p>\n\n<p>I downloaded the large data-set (470GB). However, after unzipping I can only find the .mp4 files. Would anyone be able to let me know where is the .json (metadata) file and is the whole 470GB data-set is for training? If so how could I get the test set? </p>\n\n<p>Thanks</p>\n\n<p>Michael</p>",
      "votes": 0,
      "replies": [
        {
          "id": 712909,
          "author_name": "Xinyi Ding",
          "author_url": "",
          "post_date": "2020-01-07T18:02:16.420000",
          "content": "<p>The json file is in the same folder as videos, just sort by file size, you will find it</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 712366,
      "author_name": "CKC_WDH",
      "author_url": "",
      "post_date": "2020-01-07T06:26:43.087000",
      "content": "<p>you can try to kick off the internet button in your kernel and then commit. hope that can help you.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 711447,
      "author_name": "nosound",
      "author_url": "",
      "post_date": "2020-01-06T05:39:05.860000",
      "content": "<p>I have got the same error now, no idea what it is yet.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 711452,
          "author_name": "Xinyi Ding",
          "author_url": "",
          "post_date": "2020-01-06T05:57:46.500000",
          "content": "<p>One workaround is not to use the data loader from pytorch, but iterate through each video and enclose each prediction with a try except block. This might not be the most efficient way, but it did solve my problem. </p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 712667,
      "author_name": "",
      "author_url": "",
      "post_date": "2020-01-07T13:46:07.793000",
      "content": "",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "711352": "Hi all,\n\nI wrote a baseline model using one frame and a pre-trained resnet18  [https://www.kaggle.com/xinyiding/deepfake-single-frame](https://www.kaggle.com/xinyiding/deepfake-single-frame). But I keep getting this 'Submission CSV Not Found' error.  My guess is there is some exception before generating the submission csv. I have a model works fine without the face detection stuff.  So added some try except just for the face detection.\n\nI have no problem committing and generating the 400 scores for the public dataset. Also, when I trained my model, I almost used all the 500G data available and didn't see any errors. Do we expect some videos from the private test set that are very different from this 500g dataset (say invalid videos or  videos with less than 60 frames ?)\n\nOr do you think it might be a memory issue? Thank you for your help!\n\n\nUPDATE: I fixed this issue by enclosing a try-except block for each prediction, my guess is there are some videos that opencv will throw some errors",
    "711607": "I have error \"Submission CSV Not Found\" for the same code, which works ok 4 days ago. Looks like some problem at Kaggle scoring system.",
    "725983": "@xinyiding thanks for sharing your notebook. reviewing your code was very insightful. ",
    "725107": "So what is the solution here?\nI guess it has something to do with way we take input, and where we generate output (in the same directory??).\nShould our model look for: \"test_videos.zip\" or something else? Will it be in the same directory? ",
    "713531": "I have exactly the same error, even when providing a submission CSV without accessing to any data : \n\n```python\nsubmission = pd.read_csv(\"../input/deepfake-detection-challenge/sample_submission.csv\")\nsubmission['label'] = 0.5\nsubmission.set_index('filename')\nsubmission.to_csv('submission.csv', index=True)\n```\n\nI tried to contact the support where I received the following answer : \n&gt; This is a suitable question to best ask in the discussion or competition forums. Your peers are a great resource for these types of questions. Please note that Kaggle support is reserved for technical issues affecting all participants.\n\nThis is actually not anymore my problem but the problem of multiple different submissions ...",
    "712550": "Hi All, \n\nI downloaded the large data-set (470GB). However, after unzipping I can only find the .mp4 files. Would anyone be able to let me know where is the .json (metadata) file and is the whole 470GB data-set is for training? If so how could I get the test set? \n\nThanks\n\nMichael",
    "712366": "you can try to kick off the internet button in your kernel and then commit. hope that can help you.",
    "711447": "I have got the same error now, no idea what it is yet.",
    "712667": ""
  }
}