{
  "id": 497190,
  "title": "Need help for scoring time",
  "url": "/competitions/birdclef-2024/discussion/497190",
  "author_name": "",
  "post_date": "2024-04-24T01:31:10.646026300Z",
  "votes": 1,
  "comment_count": 12,
  "views": 0,
  "content": "<p>I submitted an inference notebook, and it is successfully run within 180 sec by  watching the log.<br>\nBut the scoring time is at least longer than 1h.</p>\n<p>Is there anyone who have the same issue?</p>",
  "messages": [
    {
      "id": "2770680",
      "postDate": "04/24/2024 01:31:10",
      "content": "<p>I submitted an inference notebook, and it is successfully run within 180 sec by  watching the log.<br>\nBut the scoring time is at least longer than 1h.</p>\n<p>Is there anyone who have the same issue?</p>",
      "rawMarkdown": "I submitted an inference notebook, and it is successfully run within 180 sec by  watching the log.\nBut the scoring time is at least longer than 1h.\n\nIs there anyone who have the same issue?",
      "votes": null
    },
    {
      "id": "2770706",
      "postDate": "04/24/2024 01:49:16",
      "content": "<p>See <a href=\"https://www.kaggle.com/competitions/birdclef-2024/discussion/496684#2767134\" target=\"_blank\">https://www.kaggle.com/competitions/birdclef-2024/discussion/496684#2767134</a></p>",
      "rawMarkdown": "See https://www.kaggle.com/competitions/birdclef-2024/discussion/496684#2767134",
      "votes": null
    },
    {
      "id": "2770749",
      "postDate": "04/24/2024 02:37:19",
      "content": "<p>Thanks for the reply! <br>\nI've specified the cause of the problem.</p>\n<p>In my case, 5-fold ensemble inference takes 12 sec per one test_data.<br>\nThus, total time for 1100  data takes 12 sec x 1100 = 13200 sec ~ 3.67 hours, which is beyond the inference time in this competition.</p>\n<p>So I think this problem would be resolved by using parallelization of inference.</p>",
      "rawMarkdown": "Thanks for the reply! \nI've specified the cause of the problem.\n\nIn my case, 5-fold ensemble inference takes 12 sec per one test_data.\nThus, total time for 1100  data takes 12 sec x 1100 = 13200 sec ~ 3.67 hours, which is beyond the inference time in this competition.\n\nSo I think this problem would be resolved by using parallelization of inference.",
      "votes": null
    },
    {
      "id": "2770844",
      "postDate": "04/24/2024 03:58:47",
      "content": "<p>have you looked at cpu use? I don't know what you use, but code is probably already running with multi threading on cpu.</p>",
      "rawMarkdown": "have you looked at cpu use? I don't know what you use, but code is probably already running with multi threading on cpu.",
      "votes": null
    },
    {
      "id": "2770864",
      "postDate": "04/24/2024 04:08:04",
      "content": "<p>That's right. Thank you!</p>",
      "rawMarkdown": "That's right. Thank you!",
      "votes": null
    },
    {
      "id": "2770875",
      "postDate": "04/24/2024 04:11:46",
      "content": "<p>Hi, Hope you doing good!<br>\nHope my approaches help you in some way. <br>\n<a href=\"https://www.kaggle.com/competitions/birdclef-2024/discussion/494665\" target=\"_blank\">https://www.kaggle.com/competitions/birdclef-2024/discussion/494665</a></p>",
      "rawMarkdown": "Hi, Hope you doing good!\nHope my approaches help you in some way. \nhttps://www.kaggle.com/competitions/birdclef-2024/discussion/494665",
      "votes": null
    },
    {
      "id": "2771103",
      "postDate": "04/24/2024 05:55:30",
      "content": "<p>Thanks for sharing!<br>\nI tried your method, and it makes the inference speed faster (7700sec =&gt; 6600 sec).</p>",
      "rawMarkdown": "Thanks for sharing!\nI tried your method, and it makes the inference speed faster (7700sec => 6600 sec).",
      "votes": null
    },
    {
      "id": "2771163",
      "postDate": "04/24/2024 06:16:47",
      "content": "<p>Great, Hope that enough for submission</p>",
      "rawMarkdown": "Great, Hope that enough for submission",
      "votes": null
    },
    {
      "id": "2771532",
      "postDate": "04/24/2024 09:25:35",
      "content": "<p>I had the same issue. Are you loading all spectrograms before training or are you reading them from files on the fly during training? I was doing the latter previously and it was the cause of my slow inference speed</p>",
      "rawMarkdown": "I had the same issue. Are you loading all spectrograms before training or are you reading them from files on the fly during training? I was doing the latter previously and it was the cause of my slow inference speed",
      "votes": null
    },
    {
      "id": "2771571",
      "postDate": "04/24/2024 09:59:28",
      "content": "<p>I'm loading all spectrograms before training…</p>",
      "rawMarkdown": "I'm loading all spectrograms before training...",
      "votes": null
    },
    {
      "id": "2771573",
      "postDate": "04/24/2024 10:00:48",
      "content": "<p>Do you get the same result with openvino? I consistently lose 0.01 on the LB when I use it compared to ONNX models.</p>",
      "rawMarkdown": "Do you get the same result with openvino? I consistently lose 0.01 on the LB when I use it compared to ONNX models.",
      "votes": null
    },
    {
      "id": "2771854",
      "postDate": "04/24/2024 12:33:42",
      "content": "<p>I submitted a notebook to measure the time to create stft spectrograms under the following configuration:<br>\n    # == stfft config ==<br>\n    FS = 32000  # sample rate<br>\n    MIN_FREQ = 40  # min frequency<br>\n    MAX_FREQ = 15000  # max frequency<br>\n    N_FFT = 1095  # n FFT of Spec.<br>\n    N_MAX = 10  # max number of samples<br>\n    WIN_SIZE = 412  # WIN_SIZE of Spec.<br>\n    WIN_LAP = 100  # overlap of Spec.</p>\n<p>From this experimental submission, I found that pure time to create the spectrograms is about 25 minutes.</p>",
      "rawMarkdown": "I submitted a notebook to measure the time to create stft spectrograms under the following configuration:\n    # == stfft config ==\n    FS = 32000  # sample rate\n    MIN_FREQ = 40  # min frequency\n    MAX_FREQ = 15000  # max frequency\n    N_FFT = 1095  # n FFT of Spec.\n    N_MAX = 10  # max number of samples\n    WIN_SIZE = 412  # WIN_SIZE of Spec.\n    WIN_LAP = 100  # overlap of Spec.\n\nFrom this experimental submission, I found that pure time to create the spectrograms is about 25 minutes.",
      "votes": null
    },
    {
      "id": "2773909",
      "postDate": "04/25/2024 00:46:22",
      "content": "<p>Sorry for late response. <br>\nI have just submitted an inference notebook to verify the difference, but got runtime error.</p>",
      "rawMarkdown": "Sorry for late response. \nI have just submitted an inference notebook to verify the difference, but got runtime error.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2770706,
      "author_name": "cpmpml",
      "author_url": "",
      "post_date": "04/24/2024 01:49:16",
      "content": "<p>See <a href=\"https://www.kaggle.com/competitions/birdclef-2024/discussion/496684#2767134\" target=\"_blank\">https://www.kaggle.com/competitions/birdclef-2024/discussion/496684#2767134</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 2770749,
          "author_name": "johnlemon3",
          "author_url": "",
          "post_date": "04/24/2024 02:37:19",
          "content": "<p>Thanks for the reply! <br>\nI've specified the cause of the problem.</p>\n<p>In my case, 5-fold ensemble inference takes 12 sec per one test_data.<br>\nThus, total time for 1100  data takes 12 sec x 1100 = 13200 sec ~ 3.67 hours, which is beyond the inference time in this competition.</p>\n<p>So I think this problem would be resolved by using parallelization of inference.</p>",
          "votes": null,
          "replies": [
            {
              "id": 2770844,
              "author_name": "cpmpml",
              "author_url": "",
              "post_date": "04/24/2024 03:58:47",
              "content": "<p>have you looked at cpu use? I don't know what you use, but code is probably already running with multi threading on cpu.</p>",
              "votes": null,
              "replies": [
                {
                  "id": 2770864,
                  "author_name": "johnlemon3",
                  "author_url": "",
                  "post_date": "04/24/2024 04:08:04",
                  "content": "<p>That's right. Thank you!</p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": 2770875,
      "author_name": "lmhongkhnh",
      "author_url": "",
      "post_date": "04/24/2024 04:11:46",
      "content": "<p>Hi, Hope you doing good!<br>\nHope my approaches help you in some way. <br>\n<a href=\"https://www.kaggle.com/competitions/birdclef-2024/discussion/494665\" target=\"_blank\">https://www.kaggle.com/competitions/birdclef-2024/discussion/494665</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 2771103,
          "author_name": "johnlemon3",
          "author_url": "",
          "post_date": "04/24/2024 05:55:30",
          "content": "<p>Thanks for sharing!<br>\nI tried your method, and it makes the inference speed faster (7700sec =&gt; 6600 sec).</p>",
          "votes": null,
          "replies": [
            {
              "id": 2771163,
              "author_name": "lmhongkhnh",
              "author_url": "",
              "post_date": "04/24/2024 06:16:47",
              "content": "<p>Great, Hope that enough for submission</p>",
              "votes": null,
              "replies": []
            },
            {
              "id": 2771573,
              "author_name": "cpmpml",
              "author_url": "",
              "post_date": "04/24/2024 10:00:48",
              "content": "<p>Do you get the same result with openvino? I consistently lose 0.01 on the LB when I use it compared to ONNX models.</p>",
              "votes": null,
              "replies": [
                {
                  "id": 2773909,
                  "author_name": "johnlemon3",
                  "author_url": "",
                  "post_date": "04/25/2024 00:46:22",
                  "content": "<p>Sorry for late response. <br>\nI have just submitted an inference notebook to verify the difference, but got runtime error.</p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": 2771532,
      "author_name": "snehalverma10",
      "author_url": "",
      "post_date": "04/24/2024 09:25:35",
      "content": "<p>I had the same issue. Are you loading all spectrograms before training or are you reading them from files on the fly during training? I was doing the latter previously and it was the cause of my slow inference speed</p>",
      "votes": null,
      "replies": [
        {
          "id": 2771571,
          "author_name": "johnlemon3",
          "author_url": "",
          "post_date": "04/24/2024 09:59:28",
          "content": "<p>I'm loading all spectrograms before training…</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2771854,
      "author_name": "johnlemon3",
      "author_url": "",
      "post_date": "04/24/2024 12:33:42",
      "content": "<p>I submitted a notebook to measure the time to create stft spectrograms under the following configuration:<br>\n    # == stfft config ==<br>\n    FS = 32000  # sample rate<br>\n    MIN_FREQ = 40  # min frequency<br>\n    MAX_FREQ = 15000  # max frequency<br>\n    N_FFT = 1095  # n FFT of Spec.<br>\n    N_MAX = 10  # max number of samples<br>\n    WIN_SIZE = 412  # WIN_SIZE of Spec.<br>\n    WIN_LAP = 100  # overlap of Spec.</p>\n<p>From this experimental submission, I found that pure time to create the spectrograms is about 25 minutes.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2770680": "I submitted an inference notebook, and it is successfully run within 180 sec by  watching the log.\nBut the scoring time is at least longer than 1h.\n\nIs there anyone who have the same issue?",
    "2770706": "See https://www.kaggle.com/competitions/birdclef-2024/discussion/496684#2767134",
    "2770749": "Thanks for the reply! \nI've specified the cause of the problem.\n\nIn my case, 5-fold ensemble inference takes 12 sec per one test_data.\nThus, total time for 1100  data takes 12 sec x 1100 = 13200 sec ~ 3.67 hours, which is beyond the inference time in this competition.\n\nSo I think this problem would be resolved by using parallelization of inference.",
    "2770844": "have you looked at cpu use? I don't know what you use, but code is probably already running with multi threading on cpu.",
    "2770864": "That's right. Thank you!",
    "2770875": "Hi, Hope you doing good!\nHope my approaches help you in some way. \nhttps://www.kaggle.com/competitions/birdclef-2024/discussion/494665",
    "2771103": "Thanks for sharing!\nI tried your method, and it makes the inference speed faster (7700sec => 6600 sec).",
    "2771163": "Great, Hope that enough for submission",
    "2771532": "I had the same issue. Are you loading all spectrograms before training or are you reading them from files on the fly during training? I was doing the latter previously and it was the cause of my slow inference speed",
    "2771571": "I'm loading all spectrograms before training...",
    "2771573": "Do you get the same result with openvino? I consistently lose 0.01 on the LB when I use it compared to ONNX models.",
    "2771854": "I submitted a notebook to measure the time to create stft spectrograms under the following configuration:\n    # == stfft config ==\n    FS = 32000  # sample rate\n    MIN_FREQ = 40  # min frequency\n    MAX_FREQ = 15000  # max frequency\n    N_FFT = 1095  # n FFT of Spec.\n    N_MAX = 10  # max number of samples\n    WIN_SIZE = 412  # WIN_SIZE of Spec.\n    WIN_LAP = 100  # overlap of Spec.\n\nFrom this experimental submission, I found that pure time to create the spectrograms is about 25 minutes.",
    "2773909": "Sorry for late response. \nI have just submitted an inference notebook to verify the difference, but got runtime error."
  },
  "source": "meta"
}