{
  "id": 568831,
  "title": "Struggling on Log errors",
  "url": "/competitions/byu-locating-bacterial-flagellar-motors-2025/discussion/568831",
  "author_name": "",
  "post_date": "2025-03-18T08:24:09.590928Z",
  "votes": null,
  "comment_count": 6,
  "views": 0,
  "content": "<p>The model ran very well on the Internet, but I faced an error after sending it.</p>",
  "messages": [
    {
      "id": "3152878",
      "postDate": "03/18/2025 08:24:09",
      "content": "<p>The model ran very well on the Internet, but I faced an error after sending it.</p>",
      "rawMarkdown": "The model ran very well on the Internet, but I faced an error after sending it.",
      "votes": null
    },
    {
      "id": "3153402",
      "postDate": "03/18/2025 19:05:44",
      "content": "<p>What type of error?  The internet has to be turned off on your notebook when you submit so I am guessing that when you are loading a model you are trying to download the pretrained weights and it fails because it runs offline.  If you are using something like ResNet then make sure you pass pretrained=False so it does not try and download weights.</p>",
      "rawMarkdown": "What type of error?  The internet has to be turned off on your notebook when you submit so I am guessing that when you are loading a model you are trying to download the pretrained weights and it fails because it runs offline.  If you are using something like ResNet then make sure you pass pretrained=False so it does not try and download weights.",
      "votes": null
    },
    {
      "id": "3153701",
      "postDate": "03/19/2025 04:41:12",
      "content": "<p>I turned off the internet and submitted the notebook. I am using something like the ResNet model. I trained the model on the same notebook, and inference it. </p>",
      "rawMarkdown": "I turned off the internet and submitted the notebook. I am using something like the ResNet model. I trained the model on the same notebook, and inference it.",
      "votes": null
    },
    {
      "id": "3154172",
      "postDate": "03/19/2025 15:48:47",
      "content": "<p>I recommend training on one notebook, saving the weights, and then loading them into your inference notebook by using a kaggle dataset to store the weights.  This reduces the submission times and removes some randomness as your notebook will be rerun on the final dataset and you do not want it to perform worse a second time.</p>",
      "rawMarkdown": "I recommend training on one notebook, saving the weights, and then loading them into your inference notebook by using a kaggle dataset to store the weights.  This reduces the submission times and removes some randomness as your notebook will be rerun on the final dataset and you do not want it to perform worse a second time.",
      "votes": null
    },
    {
      "id": "3154458",
      "postDate": "03/20/2025 00:56:14",
      "content": "<p>Thank you. But I don't know how to do it? How can I load model from another notebook? Could you give me instruction?</p>",
      "rawMarkdown": "Thank you. But I don't know how to do it? How can I load model from another notebook? Could you give me instruction?",
      "votes": null
    },
    {
      "id": "3154591",
      "postDate": "03/20/2025 05:59:40",
      "content": "<p><a href=\"https://www.kaggle.com/connorjd\" target=\"_blank\">@connorjd</a> If you store a model as a Kaggle dataset, you should make it public, right?</p>",
      "rawMarkdown": "connorjd If you store a model as a Kaggle dataset, you should make it public, right?",
      "votes": null
    },
    {
      "id": "3156109",
      "postDate": "03/21/2025 18:28:57",
      "content": "<p>In the starter code, I demonstrate how to do this. The weights in train yolo are loaded into the submission notebook. You should be able to copy this approach in pytorch or tensorflow or really anything that you're using. </p>\n<p><a href=\"https://www.kaggle.com/code/andrewjdarley/byu-biophysics-group-starter\" target=\"_blank\">https://www.kaggle.com/code/andrewjdarley/byu-biophysics-group-starter</a></p>",
      "rawMarkdown": "In the starter code, I demonstrate how to do this. The weights in train yolo are loaded into the submission notebook. You should be able to copy this approach in pytorch or tensorflow or really anything that you're using. \n\nhttps://www.kaggle.com/code/andrewjdarley/byu-biophysics-group-starter",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3153402,
      "author_name": "connorjd",
      "author_url": "",
      "post_date": "03/18/2025 19:05:44",
      "content": "<p>What type of error?  The internet has to be turned off on your notebook when you submit so I am guessing that when you are loading a model you are trying to download the pretrained weights and it fails because it runs offline.  If you are using something like ResNet then make sure you pass pretrained=False so it does not try and download weights.</p>",
      "votes": null,
      "replies": [
        {
          "id": 3153701,
          "author_name": "rustambazarbayev",
          "author_url": "",
          "post_date": "03/19/2025 04:41:12",
          "content": "<p>I turned off the internet and submitted the notebook. I am using something like the ResNet model. I trained the model on the same notebook, and inference it. </p>",
          "votes": null,
          "replies": [
            {
              "id": 3154172,
              "author_name": "connorjd",
              "author_url": "",
              "post_date": "03/19/2025 15:48:47",
              "content": "<p>I recommend training on one notebook, saving the weights, and then loading them into your inference notebook by using a kaggle dataset to store the weights.  This reduces the submission times and removes some randomness as your notebook will be rerun on the final dataset and you do not want it to perform worse a second time.</p>",
              "votes": null,
              "replies": [
                {
                  "id": 3154458,
                  "author_name": "rustambazarbayev",
                  "author_url": "",
                  "post_date": "03/20/2025 00:56:14",
                  "content": "<p>Thank you. But I don't know how to do it? How can I load model from another notebook? Could you give me instruction?</p>",
                  "votes": null,
                  "replies": [
                    {
                      "id": 3156109,
                      "author_name": "andrewjdarley",
                      "author_url": "",
                      "post_date": "03/21/2025 18:28:57",
                      "content": "<p>In the starter code, I demonstrate how to do this. The weights in train yolo are loaded into the submission notebook. You should be able to copy this approach in pytorch or tensorflow or really anything that you're using. </p>\n<p><a href=\"https://www.kaggle.com/code/andrewjdarley/byu-biophysics-group-starter\" target=\"_blank\">https://www.kaggle.com/code/andrewjdarley/byu-biophysics-group-starter</a></p>",
                      "votes": null,
                      "replies": []
                    }
                  ]
                },
                {
                  "id": 3154591,
                  "author_name": "alekslinya",
                  "author_url": "",
                  "post_date": "03/20/2025 05:59:40",
                  "content": "<p><a href=\"https://www.kaggle.com/connorjd\" target=\"_blank\">@connorjd</a> If you store a model as a Kaggle dataset, you should make it public, right?</p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3152878": "The model ran very well on the Internet, but I faced an error after sending it.",
    "3153402": "What type of error?  The internet has to be turned off on your notebook when you submit so I am guessing that when you are loading a model you are trying to download the pretrained weights and it fails because it runs offline.  If you are using something like ResNet then make sure you pass pretrained=False so it does not try and download weights.",
    "3153701": "I turned off the internet and submitted the notebook. I am using something like the ResNet model. I trained the model on the same notebook, and inference it.",
    "3154172": "I recommend training on one notebook, saving the weights, and then loading them into your inference notebook by using a kaggle dataset to store the weights.  This reduces the submission times and removes some randomness as your notebook will be rerun on the final dataset and you do not want it to perform worse a second time.",
    "3154458": "Thank you. But I don't know how to do it? How can I load model from another notebook? Could you give me instruction?",
    "3154591": "connorjd If you store a model as a Kaggle dataset, you should make it public, right?",
    "3156109": "In the starter code, I demonstrate how to do this. The weights in train yolo are loaded into the submission notebook. You should be able to copy this approach in pytorch or tensorflow or really anything that you're using. \n\nhttps://www.kaggle.com/code/andrewjdarley/byu-biophysics-group-starter"
  },
  "source": "meta"
}