{
  "id": 574368,
  "title": "Why all my submissions are failed?",
  "url": "/competitions/birdclef-2025/discussion/574368",
  "author_name": "Rustam Bazarbayev",
  "post_date": "2025-04-21T16:27:38.889000",
  "votes": 0,
  "comment_count": 13,
  "views": 0,
  "content": "<p>I tried to submit, but unfortunately all my submissions failed. I would be grateful if someone could help me.<br>\nHere is error in the log file:<br>\nModel loaded successfully.<br>\nERROR: No .ogg files found in /kaggle/input/birdclef-2025/test_soundscapes/<br>\nNo inference results—exiting.</p>",
  "messages": [
    {
      "id": 3184113,
      "postDate": "2025-04-21T17:06:08.470Z",
      "content": "<p>The following great notebook by <a href=\"https://www.kaggle.com/jocelyndumlao\" target=\"_blank\">@jocelyndumlao</a> was really helpful for me as my first few submissions failed as well. Maybe you can stick to it. <a href=\"https://www.kaggle.com/code/jocelyndumlao/birdclef-2025-inference-w-simplecnn-spectrogram/\" target=\"_blank\">https://www.kaggle.com/code/jocelyndumlao/birdclef-2025-inference-w-simplecnn-spectrogram/</a></p>",
      "rawMarkdown": "The following great notebook by @jocelyndumlao was really helpful for me as my first few submissions failed as well. Maybe you can stick to it. https://www.kaggle.com/code/jocelyndumlao/birdclef-2025-inference-w-simplecnn-spectrogram/",
      "votes": 1
    },
    {
      "id": 3185202,
      "postDate": "2025-04-23T02:13:08.547Z",
      "content": "<p>Having the same issue. I got a submission to run last night, but running the same code the submission is finding no audio files. Presumably the test data folder should be empty until it runs a submission job so people can't see the test data, but mine seems to be empty on submission now too.</p>",
      "rawMarkdown": "Having the same issue. I got a submission to run last night, but running the same code the submission is finding no audio files. Presumably the test data folder should be empty until it runs a submission job so people can't see the test data, but mine seems to be empty on submission now too.",
      "replies": [
        {
          "id": 3185255,
          "postDate": "2025-04-23T03:54:19.567Z",
          "content": "<p>Following up on this, I found my issue. A good practice would be to have a conditional in your code that if your reading the test soundscapes and you fine none, read a few of the training ones and run the inference through those. At submission time it will properly read from the test ones, but you can still validate everything is working as expected in notebook.</p>",
          "rawMarkdown": "Following up on this, I found my issue. A good practice would be to have a conditional in your code that if your reading the test soundscapes and you fine none, read a few of the training ones and run the inference through those. At submission time it will properly read from the test ones, but you can still validate everything is working as expected in notebook.",
          "replies": [
            {
              "id": 3186397,
              "postDate": "2025-04-24T15:42:43.700Z",
              "rawMarkdown": "",
              "isDeleted": true
            }
          ]
        }
      ]
    },
    {
      "id": 3184096,
      "postDate": "2025-04-21T16:33:42.387Z",
      "content": "<p>This looks like a path issue. It seems that you are looking for <code>.ogg</code> files under the  <code>/kaggle/input/birdclef-2025/test_soundscapes/</code> folder (probably using some kind of globing).<br>\nIf you share this part of your code, I might give you more tips to debug.<br>\nBest of luck.</p>",
      "rawMarkdown": "This looks like a path issue. It seems that you are looking for `.ogg` files under the  `/kaggle/input/birdclef-2025/test_soundscapes/` folder (probably using some kind of globing).\nIf you share this part of your code, I might give you more tips to debug.\nBest of luck.",
      "replies": [
        {
          "id": 3184107,
          "postDate": "2025-04-21T16:59:00.443Z",
          "content": "<p>def run_inference(self):<br>\n        pattern = os.path.join(self.cfg.test_soundscapes, '*.ogg')<br>\n        test_files = glob.glob(pattern)  <br>\n        if not test_files:<br>\n            print(f\"ERROR: No .ogg files found in {self.cfg.test_soundscapes}\")<br>\n            return [], []<br>\n        if self.cfg.debug:<br>\n            test_files = test_files[:self.cfg.debug_count]<br>\n        print(f\"Found {len(test_files)} test files.\")</p>\n<pre><code>    all_ids = \n    all_pr  = \n     fp  (test_files, desc=):\n        ids, pr = self(fp)\n        all_ids(ids)\n        all_pr(pr)\n        gc()\n    return all_ids, all_pr\n</code></pre>",
          "rawMarkdown": "def run_inference(self):\n        pattern = os.path.join(self.cfg.test_soundscapes, '*.ogg')\n        test_files = glob.glob(pattern)  \n        if not test_files:\n            print(f\"ERROR: No .ogg files found in {self.cfg.test_soundscapes}\")\n            return [], []\n        if self.cfg.debug:\n            test_files = test_files[:self.cfg.debug_count]\n        print(f\"Found {len(test_files)} test files.\")\n        \n        all_ids = []\n        all_pr  = []\n        for fp in tqdm(test_files, desc=\"Inferring\"):\n            ids, pr = self.predict_on_spectrogram(fp)\n            all_ids.extend(ids)\n            all_pr.extend(pr)\n            gc.collect()\n        return all_ids, all_pr",
          "replies": [
            {
              "id": 3184111,
              "postDate": "2025-04-21T17:03:20.053Z",
              "content": "<p>Can you do an <code>ls /kaggle/input/birdclef-2025/test_soundscapes/</code> on the console and report what you get?</p>",
              "rawMarkdown": "Can you do an `ls /kaggle/input/birdclef-2025/test_soundscapes/ ` on the console and report what you get?"
            },
            {
              "id": 3184120,
              "postDate": "2025-04-21T17:15:34.260Z",
              "content": "<p>readme.txt</p>",
              "rawMarkdown": "readme.txt",
              "votes": 1
            },
            {
              "id": 3184176,
              "postDate": "2025-04-21T18:40:26.450Z",
              "content": "<p>Alright, as suspected, you don't have <code>.ogg</code> files under this folder so you either need to change the folder or add the desired files. Let me know if you need further help.</p>",
              "rawMarkdown": "Alright, as suspected, you don't have `.ogg` files under this folder so you either need to change the folder or add the desired files. Let me know if you need further help."
            },
            {
              "id": 3184426,
              "postDate": "2025-04-22T04:26:59.057Z",
              "content": "<p>I did not understand.Is this folder related to the competition dataset, or am I mistaken?</p>",
              "rawMarkdown": "I did not understand.Is this folder related to the competition dataset, or am I mistaken?"
            },
            {
              "id": 3184497,
              "postDate": "2025-04-22T06:58:59.993Z",
              "content": "<p>I mean you are looking for files that don't exist. Either you need to change the folder or add the missing files.<br>\nMaybe I am missing something?</p>",
              "rawMarkdown": "I mean you are looking for files that don't exist. Either you need to change the folder or add the missing files.\nMaybe I am missing something?"
            },
            {
              "id": 3184517,
              "postDate": "2025-04-22T07:53:33.573Z",
              "content": "<p>I did not understand why the test data folder is empty.</p>",
              "rawMarkdown": "I did not understand why the test data folder is empty."
            },
            {
              "id": 3185339,
              "postDate": "2025-04-23T07:24:57.430Z",
              "content": "<p>I guess it is empty when running the notebook and then it gets populated when submitting?</p>",
              "rawMarkdown": "I guess it is empty when running the notebook and then it gets populated when submitting?"
            }
          ]
        }
      ]
    },
    {
      "id": 3184091,
      "postDate": "2025-04-21T16:27:38.890Z",
      "content": "<p>I tried to submit, but unfortunately all my submissions failed. I would be grateful if someone could help me.<br>\nHere is error in the log file:<br>\nModel loaded successfully.<br>\nERROR: No .ogg files found in /kaggle/input/birdclef-2025/test_soundscapes/<br>\nNo inference results—exiting.</p>",
      "rawMarkdown": "I tried to submit, but unfortunately all my submissions failed. I would be grateful if someone could help me.\nHere is error in the log file:\nModel loaded successfully.\nERROR: No .ogg files found in /kaggle/input/birdclef-2025/test_soundscapes/\nNo inference results—exiting."
    }
  ],
  "comments": [
    {
      "id": 3184113,
      "author_name": "Tim",
      "author_url": "",
      "post_date": "2025-04-21T17:06:08.470000",
      "content": "<p>The following great notebook by <a href=\"https://www.kaggle.com/jocelyndumlao\" target=\"_blank\">@jocelyndumlao</a> was really helpful for me as my first few submissions failed as well. Maybe you can stick to it. <a href=\"https://www.kaggle.com/code/jocelyndumlao/birdclef-2025-inference-w-simplecnn-spectrogram/\" target=\"_blank\">https://www.kaggle.com/code/jocelyndumlao/birdclef-2025-inference-w-simplecnn-spectrogram/</a></p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 3185202,
      "author_name": "Mitchell DeHaven",
      "author_url": "",
      "post_date": "2025-04-23T02:13:08.547000",
      "content": "<p>Having the same issue. I got a submission to run last night, but running the same code the submission is finding no audio files. Presumably the test data folder should be empty until it runs a submission job so people can't see the test data, but mine seems to be empty on submission now too.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 3185255,
          "author_name": "Mitchell DeHaven",
          "author_url": "",
          "post_date": "2025-04-23T03:54:19.567000",
          "content": "<p>Following up on this, I found my issue. A good practice would be to have a conditional in your code that if your reading the test soundscapes and you fine none, read a few of the training ones and run the inference through those. At submission time it will properly read from the test ones, but you can still validate everything is working as expected in notebook.</p>",
          "votes": 0,
          "replies": [
            {
              "id": 3186397,
              "author_name": "",
              "author_url": "",
              "post_date": "2025-04-24T15:42:43.700000",
              "content": "",
              "votes": 0,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 3184096,
      "author_name": "Yassine Alouini",
      "author_url": "",
      "post_date": "2025-04-21T16:33:42.387000",
      "content": "<p>This looks like a path issue. It seems that you are looking for <code>.ogg</code> files under the  <code>/kaggle/input/birdclef-2025/test_soundscapes/</code> folder (probably using some kind of globing).<br>\nIf you share this part of your code, I might give you more tips to debug.<br>\nBest of luck.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 3184107,
          "author_name": "Rustam Bazarbayev",
          "author_url": "",
          "post_date": "2025-04-21T16:59:00.443000",
          "content": "<p>def run_inference(self):<br>\n        pattern = os.path.join(self.cfg.test_soundscapes, '*.ogg')<br>\n        test_files = glob.glob(pattern)  <br>\n        if not test_files:<br>\n            print(f\"ERROR: No .ogg files found in {self.cfg.test_soundscapes}\")<br>\n            return [], []<br>\n        if self.cfg.debug:<br>\n            test_files = test_files[:self.cfg.debug_count]<br>\n        print(f\"Found {len(test_files)} test files.\")</p>\n<pre><code>    all_ids = \n    all_pr  = \n     fp  (test_files, desc=):\n        ids, pr = self(fp)\n        all_ids(ids)\n        all_pr(pr)\n        gc()\n    return all_ids, all_pr\n</code></pre>",
          "votes": 0,
          "replies": [
            {
              "id": 3184111,
              "author_name": "Yassine Alouini",
              "author_url": "",
              "post_date": "2025-04-21T17:03:20.053000",
              "content": "<p>Can you do an <code>ls /kaggle/input/birdclef-2025/test_soundscapes/</code> on the console and report what you get?</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 3184120,
              "author_name": "Rustam Bazarbayev",
              "author_url": "",
              "post_date": "2025-04-21T17:15:34.260000",
              "content": "<p>readme.txt</p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 3184176,
              "author_name": "Yassine Alouini",
              "author_url": "",
              "post_date": "2025-04-21T18:40:26.450000",
              "content": "<p>Alright, as suspected, you don't have <code>.ogg</code> files under this folder so you either need to change the folder or add the desired files. Let me know if you need further help.</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 3184426,
              "author_name": "Rustam Bazarbayev",
              "author_url": "",
              "post_date": "2025-04-22T04:26:59.057000",
              "content": "<p>I did not understand.Is this folder related to the competition dataset, or am I mistaken?</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 3184497,
              "author_name": "Yassine Alouini",
              "author_url": "",
              "post_date": "2025-04-22T06:58:59.993000",
              "content": "<p>I mean you are looking for files that don't exist. Either you need to change the folder or add the missing files.<br>\nMaybe I am missing something?</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 3184517,
              "author_name": "Rustam Bazarbayev",
              "author_url": "",
              "post_date": "2025-04-22T07:53:33.573000",
              "content": "<p>I did not understand why the test data folder is empty.</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 3185339,
              "author_name": "Yassine Alouini",
              "author_url": "",
              "post_date": "2025-04-23T07:24:57.430000",
              "content": "<p>I guess it is empty when running the notebook and then it gets populated when submitting?</p>",
              "votes": 0,
              "replies": []
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3184113": "The following great notebook by @jocelyndumlao was really helpful for me as my first few submissions failed as well. Maybe you can stick to it. https://www.kaggle.com/code/jocelyndumlao/birdclef-2025-inference-w-simplecnn-spectrogram/",
    "3185202": "Having the same issue. I got a submission to run last night, but running the same code the submission is finding no audio files. Presumably the test data folder should be empty until it runs a submission job so people can't see the test data, but mine seems to be empty on submission now too.",
    "3184096": "This looks like a path issue. It seems that you are looking for `.ogg` files under the  `/kaggle/input/birdclef-2025/test_soundscapes/` folder (probably using some kind of globing).\nIf you share this part of your code, I might give you more tips to debug.\nBest of luck.",
    "3184091": "I tried to submit, but unfortunately all my submissions failed. I would be grateful if someone could help me.\nHere is error in the log file:\nModel loaded successfully.\nERROR: No .ogg files found in /kaggle/input/birdclef-2025/test_soundscapes/\nNo inference results—exiting."
  }
}