{
  "id": 473277,
  "title": "[HELP] Inference/Submission time is very strange ",
  "url": "/competitions/blood-vessel-segmentation/discussion/473277",
  "author_name": "tanxxx",
  "post_date": "2024-02-04T06:46:01.688000",
  "votes": 1,
  "comment_count": 19,
  "views": 0,
  "content": "<p>When i use the same notebook, only the weights are changed. <br>\nHowever, <strong>some notebooks can get the results normally, but some will threw \"time out error\".</strong> <br>\nSo during the submission process, are there any other factors that will affect the overall running time? <br>\n**For example, **<br>\nDoes the time to install the environment fluctuate greatly each time? <br>\nWill changes in input data size in /kaggle/input/ affect notebook running time?<br>\nWill the process of calculating the csv result be calculated by kaggle in the submisson time?<br>\n<strong>It’s really really really strange</strong>!!!😵</p>",
  "messages": [
    {
      "id": 2635041,
      "postDate": "2024-02-04T06:46:01.690Z",
      "content": "<p>When i use the same notebook, only the weights are changed. <br>\nHowever, <strong>some notebooks can get the results normally, but some will threw \"time out error\".</strong> <br>\nSo during the submission process, are there any other factors that will affect the overall running time? <br>\n**For example, **<br>\nDoes the time to install the environment fluctuate greatly each time? <br>\nWill changes in input data size in /kaggle/input/ affect notebook running time?<br>\nWill the process of calculating the csv result be calculated by kaggle in the submisson time?<br>\n<strong>It’s really really really strange</strong>!!!😵</p>",
      "rawMarkdown": "When i use the same notebook, only the weights are changed. \nHowever, **some notebooks can get the results normally, but some will threw \"time out error\".** \nSo during the submission process, are there any other factors that will affect the overall running time? \n**For example, **\nDoes the time to install the environment fluctuate greatly each time? \nWill changes in input data size in /kaggle/input/ affect notebook running time?\nWill the process of calculating the csv result be calculated by kaggle in the submisson time?\n**It’s really really really strange**!!!😵",
      "votes": 1
    },
    {
      "id": 2636356,
      "postDate": "2024-02-05T03:19:48.963Z",
      "content": "<p>The timeout issue may be caused by the memory usage. It helps improve the speed and avoid out of time by clearing memory after each image inference.</p>",
      "rawMarkdown": "The timeout issue may be caused by the memory usage. It helps improve the speed and avoid out of time by clearing memory after each image inference."
    },
    {
      "id": 2635587,
      "postDate": "2024-02-04T13:49:44.893Z",
      "content": "<p>The code implements the exact same result, but I've found that the time varies quite a bit depending on how I type.</p>",
      "rawMarkdown": "The code implements the exact same result, but I've found that the time varies quite a bit depending on how I type.",
      "replies": [
        {
          "id": 2635606,
          "postDate": "2024-02-04T13:56:37.583Z",
          "content": "<p>I simply modified the weight path, thus it timed out, which was really a strange thing.</p>",
          "rawMarkdown": "I simply modified the weight path, thus it timed out, which was really a strange thing."
        }
      ]
    },
    {
      "id": 2635569,
      "postDate": "2024-02-04T13:45:05.653Z",
      "content": "<p>to verify, you can waste a few submission:<br>\ncompare timming for</p>\n<pre><code>make\n</code></pre>\n<pre><code>\n\n</code></pre>",
      "rawMarkdown": "to verify, you can waste a few submission:\ncompare timming for\n\n```\nmake_dummy_submission(random objects)\n```\n\n```\nsleep(9hr)\nmake_dummy_submission(random objects)\n```",
      "replies": [
        {
          "id": 2635595,
          "postDate": "2024-02-04T13:53:48.193Z",
          "content": "<p>I tried twice here and it takes about 14 minutes during submission if all results are '1 0'.</p>",
          "rawMarkdown": "I tried twice here and it takes about 14 minutes during submission if all results are '1 0'."
        }
      ]
    },
    {
      "id": 2635449,
      "postDate": "2024-02-04T12:15:12.253Z",
      "content": "<p>Absolutely the same happens to me as well. It's just the nature on Kaggle Kernels, unfortunately </p>",
      "rawMarkdown": "Absolutely the same happens to me as well. It's just the nature on Kaggle Kernels, unfortunately ",
      "replies": [
        {
          "id": 2635590,
          "postDate": "2024-02-04T13:51:13.533Z",
          "content": "<p>Hahaha, this is indeed a headache for us</p>",
          "rawMarkdown": "Hahaha, this is indeed a headache for us"
        }
      ]
    },
    {
      "id": 2635143,
      "postDate": "2024-02-04T07:26:01.397Z",
      "content": "<p>Even if the model size is the same and the model inference time is the same, if the weight is different, the predicton will change and the score calculation time will change, so I think this is the effect.</p>",
      "rawMarkdown": "Even if the model size is the same and the model inference time is the same, if the weight is different, the predicton will change and the score calculation time will change, so I think this is the effect.",
      "replies": [
        {
          "id": 2635146,
          "postDate": "2024-02-04T07:28:21.357Z",
          "content": "<p><strong>Score calculation</strong> is indeed not used in my code, so do you mean that for different prediction results by different weights, there is a certain difference in the submission time calculated by kaggle?</p>",
          "rawMarkdown": "**Score calculation** is indeed not used in my code, so do you mean that for different prediction results by different weights, there is a certain difference in the submission time calculated by kaggle?",
          "replies": [
            {
              "id": 2635156,
              "postDate": "2024-02-04T07:36:22.470Z",
              "content": "<blockquote>\n  <p>different prediction results by different weights, there is a certain difference in the submission time calculated by kaggle?</p>\n</blockquote>\n<p>yes</p>",
              "rawMarkdown": ">different prediction results by different weights, there is a certain difference in the submission time calculated by kaggle?\n\nyes"
            },
            {
              "id": 2635171,
              "postDate": "2024-02-04T07:41:04.210Z",
              "content": "<p>You could find similar topics in the past thread like below<br>\n<a href=\"https://www.kaggle.com/competitions/blood-vessel-segmentation/discussion/459969\" target=\"_blank\">https://www.kaggle.com/competitions/blood-vessel-segmentation/discussion/459969</a></p>\n<blockquote>\n  <p>For this metric, I extended the scoring time to 90 minutes. I haven't seen any submissions that need longer than that, but I can extend it further if necessary. Let me know</p>\n</blockquote>",
              "rawMarkdown": "You could find similar topics in the past thread like below\nhttps://www.kaggle.com/competitions/blood-vessel-segmentation/discussion/459969\n\n>For this metric, I extended the scoring time to 90 minutes. I haven't seen any submissions that need longer than that, but I can extend it further if necessary. Let me know"
            },
            {
              "id": 2635183,
              "postDate": "2024-02-04T07:45:07.017Z",
              "content": "<p>Thanks a lot, I feel that the metric calculation will be included in the overall submission  inference time seems a bit unreasonable.😓</p>",
              "rawMarkdown": "Thanks a lot, I feel that the metric calculation will be included in the overall submission  inference time seems a bit unreasonable.😓"
            },
            {
              "id": 2635540,
              "postDate": "2024-02-04T13:17:43.867Z",
              "content": "<p>Although I have not performed strict verification, it seems that the score calculation time depends on the inference result. It may not actually be included, so please forgive me if I'm wrong. Also, there seems to be some variation in the execution times of Kaggle's kernels, even though the code is exactly the same.</p>",
              "rawMarkdown": "Although I have not performed strict verification, it seems that the score calculation time depends on the inference result. It may not actually be included, so please forgive me if I'm wrong. Also, there seems to be some variation in the execution times of Kaggle's kernels, even though the code is exactly the same."
            },
            {
              "id": 2635583,
              "postDate": "2024-02-04T13:49:19.087Z",
              "content": "<p>Thanks，I'll try to reduce some inference time</p>",
              "rawMarkdown": "Thanks，I'll try to reduce some inference time",
              "votes": 1
            },
            {
              "id": 2636204,
              "postDate": "2024-02-04T22:08:26.030Z",
              "content": "<p>It seems like scoring is done while notebook execution time. Bad solution make scoring long and this increases the notebook's runtime.<br>\nThis is exactly the problem that everyone had with the metric at the begging of competition, the metric was calculated for too long until it exceeded the available time of the GPU or got very small metric values, this problem disappeared when kagglers started to submitted +- good solutions.</p>",
              "rawMarkdown": "It seems like scoring is done while notebook execution time. Bad solution make scoring long and this increases the notebook's runtime.\nThis is exactly the problem that everyone had with the metric at the begging of competition, the metric was calculated for too long until it exceeded the available time of the GPU or got very small metric values, this problem disappeared when kagglers started to submitted +- good solutions.",
              "votes": 1
            },
            {
              "id": 2636312,
              "postDate": "2024-02-05T01:32:29.960Z",
              "rawMarkdown": "",
              "isDeleted": true
            },
            {
              "id": 2636313,
              "postDate": "2024-02-05T01:32:54.607Z",
              "content": "<p>Thanks, I'll check again😀</p>",
              "rawMarkdown": "Thanks, I'll check again😀\n\n\n"
            },
            {
              "id": 2636862,
              "postDate": "2024-02-05T10:39:51.557Z",
              "content": "<p><a href=\"https://www.kaggle.com/viktoriaskorik\" target=\"_blank\">@viktoriaskorik</a> no, the code has been changed that is why the bug disappeared. This has nothing to do with the quality of the submission.</p>",
              "rawMarkdown": "@viktoriaskorik no, the code has been changed that is why the bug disappeared. This has nothing to do with the quality of the submission."
            }
          ]
        }
      ]
    },
    {
      "id": 2635140,
      "postDate": "2024-02-04T07:23:36.717Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 2636356,
      "author_name": "Min-Hsien Weng",
      "author_url": "",
      "post_date": "2024-02-05T03:19:48.963000",
      "content": "<p>The timeout issue may be caused by the memory usage. It helps improve the speed and avoid out of time by clearing memory after each image inference.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2635587,
      "author_name": "HB",
      "author_url": "",
      "post_date": "2024-02-04T13:49:44.893000",
      "content": "<p>The code implements the exact same result, but I've found that the time varies quite a bit depending on how I type.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 2635606,
          "author_name": "tanxxx",
          "author_url": "",
          "post_date": "2024-02-04T13:56:37.583000",
          "content": "<p>I simply modified the weight path, thus it timed out, which was really a strange thing.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2635569,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2024-02-04T13:45:05.653000",
      "content": "<p>to verify, you can waste a few submission:<br>\ncompare timming for</p>\n<pre><code>make\n</code></pre>\n<pre><code>\n\n</code></pre>",
      "votes": 0,
      "replies": [
        {
          "id": 2635595,
          "author_name": "tanxxx",
          "author_url": "",
          "post_date": "2024-02-04T13:53:48.193000",
          "content": "<p>I tried twice here and it takes about 14 minutes during submission if all results are '1 0'.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2635449,
      "author_name": "Ivan Panshin",
      "author_url": "",
      "post_date": "2024-02-04T12:15:12.253000",
      "content": "<p>Absolutely the same happens to me as well. It's just the nature on Kaggle Kernels, unfortunately </p>",
      "votes": 0,
      "replies": [
        {
          "id": 2635590,
          "author_name": "tanxxx",
          "author_url": "",
          "post_date": "2024-02-04T13:51:13.533000",
          "content": "<p>Hahaha, this is indeed a headache for us</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2635143,
      "author_name": "ts",
      "author_url": "",
      "post_date": "2024-02-04T07:26:01.397000",
      "content": "<p>Even if the model size is the same and the model inference time is the same, if the weight is different, the predicton will change and the score calculation time will change, so I think this is the effect.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 2635146,
          "author_name": "tanxxx",
          "author_url": "",
          "post_date": "2024-02-04T07:28:21.357000",
          "content": "<p><strong>Score calculation</strong> is indeed not used in my code, so do you mean that for different prediction results by different weights, there is a certain difference in the submission time calculated by kaggle?</p>",
          "votes": 0,
          "replies": [
            {
              "id": 2635156,
              "author_name": "ts",
              "author_url": "",
              "post_date": "2024-02-04T07:36:22.470000",
              "content": "<blockquote>\n  <p>different prediction results by different weights, there is a certain difference in the submission time calculated by kaggle?</p>\n</blockquote>\n<p>yes</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2635171,
              "author_name": "ts",
              "author_url": "",
              "post_date": "2024-02-04T07:41:04.210000",
              "content": "<p>You could find similar topics in the past thread like below<br>\n<a href=\"https://www.kaggle.com/competitions/blood-vessel-segmentation/discussion/459969\" target=\"_blank\">https://www.kaggle.com/competitions/blood-vessel-segmentation/discussion/459969</a></p>\n<blockquote>\n  <p>For this metric, I extended the scoring time to 90 minutes. I haven't seen any submissions that need longer than that, but I can extend it further if necessary. Let me know</p>\n</blockquote>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2635183,
              "author_name": "tanxxx",
              "author_url": "",
              "post_date": "2024-02-04T07:45:07.017000",
              "content": "<p>Thanks a lot, I feel that the metric calculation will be included in the overall submission  inference time seems a bit unreasonable.😓</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2635540,
              "author_name": "ts",
              "author_url": "",
              "post_date": "2024-02-04T13:17:43.867000",
              "content": "<p>Although I have not performed strict verification, it seems that the score calculation time depends on the inference result. It may not actually be included, so please forgive me if I'm wrong. Also, there seems to be some variation in the execution times of Kaggle's kernels, even though the code is exactly the same.</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2635583,
              "author_name": "tanxxx",
              "author_url": "",
              "post_date": "2024-02-04T13:49:19.087000",
              "content": "<p>Thanks，I'll try to reduce some inference time</p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 2636204,
              "author_name": "Viktoria",
              "author_url": "",
              "post_date": "2024-02-04T22:08:26.030000",
              "content": "<p>It seems like scoring is done while notebook execution time. Bad solution make scoring long and this increases the notebook's runtime.<br>\nThis is exactly the problem that everyone had with the metric at the begging of competition, the metric was calculated for too long until it exceeded the available time of the GPU or got very small metric values, this problem disappeared when kagglers started to submitted +- good solutions.</p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 2636312,
              "author_name": "",
              "author_url": "",
              "post_date": "2024-02-05T01:32:29.960000",
              "content": "",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2636313,
              "author_name": "tanxxx",
              "author_url": "",
              "post_date": "2024-02-05T01:32:54.607000",
              "content": "<p>Thanks, I'll check again😀</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2636862,
              "author_name": "Optimo",
              "author_url": "",
              "post_date": "2024-02-05T10:39:51.557000",
              "content": "<p><a href=\"https://www.kaggle.com/viktoriaskorik\" target=\"_blank\">@viktoriaskorik</a> no, the code has been changed that is why the bug disappeared. This has nothing to do with the quality of the submission.</p>",
              "votes": 0,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2635140,
      "author_name": "",
      "author_url": "",
      "post_date": "2024-02-04T07:23:36.717000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2635041": "When i use the same notebook, only the weights are changed. \nHowever, **some notebooks can get the results normally, but some will threw \"time out error\".** \nSo during the submission process, are there any other factors that will affect the overall running time? \n**For example, **\nDoes the time to install the environment fluctuate greatly each time? \nWill changes in input data size in /kaggle/input/ affect notebook running time?\nWill the process of calculating the csv result be calculated by kaggle in the submisson time?\n**It’s really really really strange**!!!😵",
    "2636356": "The timeout issue may be caused by the memory usage. It helps improve the speed and avoid out of time by clearing memory after each image inference.",
    "2635587": "The code implements the exact same result, but I've found that the time varies quite a bit depending on how I type.",
    "2635569": "to verify, you can waste a few submission:\ncompare timming for\n\n```\nmake_dummy_submission(random objects)\n```\n\n```\nsleep(9hr)\nmake_dummy_submission(random objects)\n```",
    "2635449": "Absolutely the same happens to me as well. It's just the nature on Kaggle Kernels, unfortunately ",
    "2635143": "Even if the model size is the same and the model inference time is the same, if the weight is different, the predicton will change and the score calculation time will change, so I think this is the effect.",
    "2635140": ""
  }
}