{
  "id": 535323,
  "title": "Can someone help me with the error?",
  "url": "/competitions/rsna-2024-lumbar-spine-degenerative-classification/discussion/535323",
  "author_name": "",
  "post_date": "2024-09-21T13:14:19.592210400Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>I tried using efficentnet_b0 in &gt;3D ViT Single-Stage Classifier (Inference)</p>\n<p>efficentnet_b0 model come from vitors' &gt;3D Single-Stage Classifier Training</p>\n<p>but my notebook <a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/aristotlechen/rsna-2024-submission-3d?scriptVersionId=197653712</a> dosent work.</p>\n<p>I've tried a lot of things but it still doesn't work,can anyone help me with the reported error please? Thank you very much.</p>",
  "messages": [
    {
      "id": "2994789",
      "postDate": "09/21/2024 13:14:19",
      "content": "<p>I tried using efficentnet_b0 in &gt;3D ViT Single-Stage Classifier (Inference)</p>\n<p>efficentnet_b0 model come from vitors' &gt;3D Single-Stage Classifier Training</p>\n<p>but my notebook <a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/aristotlechen/rsna-2024-submission-3d?scriptVersionId=197653712</a> dosent work.</p>\n<p>I've tried a lot of things but it still doesn't work,can anyone help me with the reported error please? Thank you very much.</p>",
      "rawMarkdown": "I tried using efficentnet_b0 in >3D ViT Single-Stage Classifier (Inference)\n\nefficentnet_b0 model come from vitors' >3D Single-Stage Classifier Training\n\nbut my notebook [https://www.kaggle.com/code/aristotlechen/rsna-2024-submission-3d?scriptVersionId=197653712](url) dosent work.\n\nI've tried a lot of things but it still doesn't work,can anyone help me with the reported error please? Thank you very much.",
      "votes": null
    },
    {
      "id": "2995037",
      "postDate": "09/21/2024 18:58:08",
      "content": "<p>I think the issue is that you saved the model not as <code>weights_only</code> but the entire model. So, either you need to do <code>model = torch.load(\"/kaggle/input/rnsaefb0/efficientnet_b0_fold_0_4.pt\").to(device)</code> and check if it is the correct model.</p>\n<p>Or you need to go back to your train script and save the model's state_dict or with <code>weights_only=True</code>.</p>",
      "rawMarkdown": "I think the issue is that you saved the model not as `weights_only` but the entire model. So, either you need to do `model = torch.load(\"/kaggle/input/rnsaefb0/efficientnet_b0_fold_0_4.pt\").to(device)` and check if it is the correct model.\n\nOr you need to go back to your train script and save the model's state_dict or with `weights_only=True`.",
      "votes": null
    },
    {
      "id": "2995195",
      "postDate": "09/22/2024 01:52:00",
      "content": "<p>i add weights_only=True.,but it doesnt work</p>",
      "rawMarkdown": "i add weights_only=True.,but it doesnt work",
      "votes": null
    },
    {
      "id": "2996503",
      "postDate": "09/23/2024 15:03:01",
      "content": "<p><a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/aristotlechen/unzip-rsna-2024-submission-3d/notebook</a></p>\n<p>this is new version somebody can help me find bug please😭</p>",
      "rawMarkdown": "[https://www.kaggle.com/code/aristotlechen/unzip-rsna-2024-submission-3d/notebook](url)\n\nthis is new version somebody can help me find bug please😭",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2995037,
      "author_name": "coderrkj",
      "author_url": "",
      "post_date": "09/21/2024 18:58:08",
      "content": "<p>I think the issue is that you saved the model not as <code>weights_only</code> but the entire model. So, either you need to do <code>model = torch.load(\"/kaggle/input/rnsaefb0/efficientnet_b0_fold_0_4.pt\").to(device)</code> and check if it is the correct model.</p>\n<p>Or you need to go back to your train script and save the model's state_dict or with <code>weights_only=True</code>.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2995195,
          "author_name": "aristotlechen",
          "author_url": "",
          "post_date": "09/22/2024 01:52:00",
          "content": "<p>i add weights_only=True.,but it doesnt work</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2996503,
      "author_name": "aristotlechen",
      "author_url": "",
      "post_date": "09/23/2024 15:03:01",
      "content": "<p><a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/aristotlechen/unzip-rsna-2024-submission-3d/notebook</a></p>\n<p>this is new version somebody can help me find bug please😭</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2994789": "I tried using efficentnet_b0 in >3D ViT Single-Stage Classifier (Inference)\n\nefficentnet_b0 model come from vitors' >3D Single-Stage Classifier Training\n\nbut my notebook [https://www.kaggle.com/code/aristotlechen/rsna-2024-submission-3d?scriptVersionId=197653712](url) dosent work.\n\nI've tried a lot of things but it still doesn't work,can anyone help me with the reported error please? Thank you very much.",
    "2995037": "I think the issue is that you saved the model not as `weights_only` but the entire model. So, either you need to do `model = torch.load(\"/kaggle/input/rnsaefb0/efficientnet_b0_fold_0_4.pt\").to(device)` and check if it is the correct model.\n\nOr you need to go back to your train script and save the model's state_dict or with `weights_only=True`.",
    "2995195": "i add weights_only=True.,but it doesnt work",
    "2996503": "[https://www.kaggle.com/code/aristotlechen/unzip-rsna-2024-submission-3d/notebook](url)\n\nthis is new version somebody can help me find bug please😭"
  },
  "source": "meta"
}