{
  "id": 352656,
  "title": "ViT Training Throws an RunTime Error ",
  "url": "/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/352656",
  "author_name": "Collide_Conquer_19",
  "post_date": "2022-09-15T09:08:46.324000",
  "votes": -1,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hello All ,</p>\n<p>Firstly, thanks to <a href=\"https://www.kaggle.com/andradaolteanu\" target=\"_blank\">@andradaolteanu</a> for wonderful notebook to provide insights, i have taken some of the code from her and make tried on different models with making certain changes needed for those models. I have been trying to implement the ViT for image classification and tried on this competition. The error which i got is shown below <img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F10262774%2F09ea4eb399859f20ec4e97a2f9b51bb5%2FScreenshot%20from%202022-09-15%2014-26-32.png?generation=1663232176488340&amp;alt=media\" alt=\"RuntimeError\"><br>\nI have seen some of the websites like stackoverflow and pytorch forums but i didn't got the correct method to correct the code.<br>\nI'm also sharing the <a href=\"https://www.kaggle.com/code/robber19/monai-vit/notebook\" target=\"_blank\">notebook</a> here so you can look into my code </p>\n<p>Thanks,<br>\nConquer_19.</p>",
  "messages": [
    {
      "id": 1940277,
      "postDate": "2022-09-15T09:08:46.323Z",
      "content": "<p>Hello All ,</p>\n<p>Firstly, thanks to <a href=\"https://www.kaggle.com/andradaolteanu\" target=\"_blank\">@andradaolteanu</a> for wonderful notebook to provide insights, i have taken some of the code from her and make tried on different models with making certain changes needed for those models. I have been trying to implement the ViT for image classification and tried on this competition. The error which i got is shown below <img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F10262774%2F09ea4eb399859f20ec4e97a2f9b51bb5%2FScreenshot%20from%202022-09-15%2014-26-32.png?generation=1663232176488340&amp;alt=media\" alt=\"RuntimeError\"><br>\nI have seen some of the websites like stackoverflow and pytorch forums but i didn't got the correct method to correct the code.<br>\nI'm also sharing the <a href=\"https://www.kaggle.com/code/robber19/monai-vit/notebook\" target=\"_blank\">notebook</a> here so you can look into my code </p>\n<p>Thanks,<br>\nConquer_19.</p>",
      "rawMarkdown": "Hello All ,\n\nFirstly, thanks to @andradaolteanu for wonderful notebook to provide insights, i have taken some of the code from her and make tried on different models with making certain changes needed for those models. I have been trying to implement the ViT for image classification and tried on this competition. The error which i got is shown below ![RuntimeError](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F10262774%2F09ea4eb399859f20ec4e97a2f9b51bb5%2FScreenshot%20from%202022-09-15%2014-26-32.png?generation=1663232176488340&alt=media)\nI have seen some of the websites like stackoverflow and pytorch forums but i didn't got the correct method to correct the code.\nI'm also sharing the [notebook] (https://www.kaggle.com/code/robber19/monai-vit/notebook) here so you can look into my code \n\nThanks,\nConquer_19.",
      "votes": -1
    },
    {
      "id": 1943169,
      "postDate": "2022-09-17T10:50:32.573Z",
      "content": "<p>Image size of 28*28 are supported by VIT. Try increasing it </p>",
      "rawMarkdown": "Image size of 28*28 are supported by VIT. Try increasing it ",
      "replies": [
        {
          "id": 1943209,
          "postDate": "2022-09-17T11:25:09.510Z",
          "content": "<p><a href=\"https://www.kaggle.com/mithilsalunkhe\" target=\"_blank\">@mithilsalunkhe</a> thanks for the reply, i have got the model and it's under training.</p>",
          "rawMarkdown": "@mithilsalunkhe thanks for the reply, i have got the model and it's under training."
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 1943169,
      "author_name": "Mithil Salunkhe",
      "author_url": "",
      "post_date": "2022-09-17T10:50:32.573000",
      "content": "<p>Image size of 28*28 are supported by VIT. Try increasing it </p>",
      "votes": 0,
      "replies": [
        {
          "id": 1943209,
          "author_name": "Collide_Conquer_19",
          "author_url": "",
          "post_date": "2022-09-17T11:25:09.510000",
          "content": "<p><a href=\"https://www.kaggle.com/mithilsalunkhe\" target=\"_blank\">@mithilsalunkhe</a> thanks for the reply, i have got the model and it's under training.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1940277": "Hello All ,\n\nFirstly, thanks to @andradaolteanu for wonderful notebook to provide insights, i have taken some of the code from her and make tried on different models with making certain changes needed for those models. I have been trying to implement the ViT for image classification and tried on this competition. The error which i got is shown below ![RuntimeError](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F10262774%2F09ea4eb399859f20ec4e97a2f9b51bb5%2FScreenshot%20from%202022-09-15%2014-26-32.png?generation=1663232176488340&alt=media)\nI have seen some of the websites like stackoverflow and pytorch forums but i didn't got the correct method to correct the code.\nI'm also sharing the [notebook] (https://www.kaggle.com/code/robber19/monai-vit/notebook) here so you can look into my code \n\nThanks,\nConquer_19.",
    "1943169": "Image size of 28*28 are supported by VIT. Try increasing it "
  }
}