{
  "id": 213167,
  "title": "[Share] New pretrained Weights For DeiT",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/213167",
  "author_name": "",
  "post_date": "2021-01-21T18:08:50.211989400Z",
  "votes": 35,
  "comment_count": 22,
  "views": 0,
  "content": "<h1>Introduction</h1>\n<p>DeiT is <code>DeiT: Data-efficient Image Transformers</code> like <code>ViT</code>.</p>\n<h1>New pretrained Weights</h1>\n<p>Now, we can use <code>384x384</code> image size for DeiT.</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3492127%2F3b99cd8b398b3d4349539ae307f7547d%2Fdd1.png?generation=1611251617068659&amp;alt=media\" alt=\"\"></p>\n<ul>\n<li>DeiT-base 384</li>\n<li>DeiT-base distilled 384 (1000 epochs)</li>\n</ul>\n<p><a href=\"https://github.com/facebookresearch/deit\" target=\"_blank\">https://github.com/facebookresearch/deit</a></p>\n<h1>End</h1>\n<ul>\n<li>Official inference for DeiT(Colab)</li>\n</ul>\n<p><a href=\"https://colab.research.google.com/github/facebookresearch/deit/blob/colab/notebooks/deit_inference.ipynb\" target=\"_blank\">https://colab.research.google.com/github/facebookresearch/deit/blob/colab/notebooks/deit_inference.ipynb</a></p>\n<p>Thank you!</p>",
  "messages": [
    {
      "id": "1163530",
      "postDate": "01/21/2021 18:08:50",
      "content": "<h1>Introduction</h1>\n<p>DeiT is <code>DeiT: Data-efficient Image Transformers</code> like <code>ViT</code>.</p>\n<h1>New pretrained Weights</h1>\n<p>Now, we can use <code>384x384</code> image size for DeiT.</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3492127%2F3b99cd8b398b3d4349539ae307f7547d%2Fdd1.png?generation=1611251617068659&amp;alt=media\" alt=\"\"></p>\n<ul>\n<li>DeiT-base 384</li>\n<li>DeiT-base distilled 384 (1000 epochs)</li>\n</ul>\n<p><a href=\"https://github.com/facebookresearch/deit\" target=\"_blank\">https://github.com/facebookresearch/deit</a></p>\n<h1>End</h1>\n<ul>\n<li>Official inference for DeiT(Colab)</li>\n</ul>\n<p><a href=\"https://colab.research.google.com/github/facebookresearch/deit/blob/colab/notebooks/deit_inference.ipynb\" target=\"_blank\">https://colab.research.google.com/github/facebookresearch/deit/blob/colab/notebooks/deit_inference.ipynb</a></p>\n<p>Thank you!</p>",
      "rawMarkdown": "# Introduction\nDeiT is `DeiT: Data-efficient Image Transformers` like `ViT`.\n\n\n# New pretrained Weights\nNow, we can use `384x384` image size for DeiT.\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3492127%2F3b99cd8b398b3d4349539ae307f7547d%2Fdd1.png?generation=1611251617068659&alt=media)\n\n- DeiT-base 384\n- DeiT-base distilled 384 (1000 epochs)\n\nhttps://github.com/facebookresearch/deit\n\n# End\n- Official inference for DeiT(Colab)\n\nhttps://colab.research.google.com/github/facebookresearch/deit/blob/colab/notebooks/deit_inference.ipynb\n\nThank you!",
      "votes": null
    },
    {
      "id": "1163816",
      "postDate": "01/22/2021 00:36:30",
      "content": "<p>Thanks a lot for sharing ! I read up on DeiT on the last discussion and was wondering exactly where the 384 weights were! Definitely gonna use them since it should be an improvement on ViT models. Thanks again for sharing.</p>",
      "rawMarkdown": "Thanks a lot for sharing ! I read up on DeiT on the last discussion and was wondering exactly where the 384 weights were! Definitely gonna use them since it should be an improvement on ViT models. Thanks again for sharing.",
      "votes": null
    },
    {
      "id": "1164430",
      "postDate": "01/22/2021 11:18:00",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/heroseo\" target=\"_blank\">@heroseo</a> you have made some significant contributions in this competition , I just wanted to ask if you have tried DIET model yourself and if yes , can you share your cv/lb<br>\nThanks</p>",
      "rawMarkdown": "Hi @heroseo you have made some significant contributions in this competition , I just wanted to ask if you have tried DIET model yourself and if yes , can you share your cv/lb\nThanks",
      "votes": null
    },
    {
      "id": "1164444",
      "postDate": "01/22/2021 11:26:01",
      "content": "<p>I found new pretrained weights for DeiT yesterday. So, it needs experimentation using <code>384x384</code>.</p>\n<p>In case of <code>224x224</code>, My cv and lb were not good. (public lb is lower than <a href=\"https://www.kaggle.com/piantic/no-tta-cassava-resnext50-32x4d-inference-lb0-903\" target=\"_blank\">Resnext50_32x4d</a>.)</p>\n<p><a href=\"https://www.kaggle.com/tanulsingh077\" target=\"_blank\">@tanulsingh077</a> </p>",
      "rawMarkdown": "I found new pretrained weights for DeiT yesterday. So, it needs experimentation using `384x384`.\n\nIn case of `224x224`, My cv and lb were not good. (public lb is lower than [Resnext50_32x4d](https://www.kaggle.com/piantic/no-tta-cassava-resnext50-32x4d-inference-lb0-903).)\n\n@tanulsingh077",
      "votes": null
    },
    {
      "id": "1164543",
      "postDate": "01/22/2021 12:43:08",
      "content": "<p>What's the difference between deit without distill and vit? </p>",
      "rawMarkdown": "What's the difference between deit without distill and vit?",
      "votes": null
    },
    {
      "id": "1164546",
      "postDate": "01/22/2021 12:46:21",
      "content": "<p>Simply explain it, distill uses teacher models. <a href=\"https://www.kaggle.com/kewang777\" target=\"_blank\">@kewang777</a> </p>",
      "rawMarkdown": "Simply explain it, distill uses teacher models. @kewang777",
      "votes": null
    },
    {
      "id": "1165164",
      "postDate": "01/22/2021 18:37:03",
      "content": "<p>My last submission made this morning was with deit 384 base (not distilled). CV 0.891, LB: 0.896, single model. I plan to train distilled version tonight, I can update if you want.</p>",
      "rawMarkdown": "My last submission made this morning was with deit 384 base (not distilled). CV 0.891, LB: 0.896, single model. I plan to train distilled version tonight, I can update if you want.",
      "votes": null
    },
    {
      "id": "1165212",
      "postDate": "01/22/2021 19:20:04",
      "content": "<p><a href=\"https://www.kaggle.com/piantic\" target=\"_blank\">@piantic</a> thanks for being so kind and replying all my queries <br>\nAlso <a href=\"https://www.kaggle.com/claverru\" target=\"_blank\">@claverru</a> thanks for sharing the update , I am looking forward to experiment with DeiT as well </p>",
      "rawMarkdown": "piantic thanks for being so kind and replying all my queries \nAlso @claverru thanks for sharing the update , I am looking forward to experiment with DeiT as well",
      "votes": null
    },
    {
      "id": "1166750",
      "postDate": "01/23/2021 19:58:17",
      "content": "<p>Thanks for sharing it. How can I use DeiT for 512*512 image size. Is there any way? </p>",
      "rawMarkdown": "Thanks for sharing it. How can I use DeiT for 512*512 image size. Is there any way?",
      "votes": null
    },
    {
      "id": "1166770",
      "postDate": "01/23/2021 20:15:12",
      "content": "<p>The Vision Transformer is conceptually different from architectures like resnet.<br>\nCurrently, it is not possible to use 512 image size for DeiT or ViT.</p>\n<p><a href=\"https://www.kaggle.com/durbin164\" target=\"_blank\">@durbin164</a> </p>",
      "rawMarkdown": "The Vision Transformer is conceptually different from architectures like resnet.\nCurrently, it is not possible to use 512 image size for DeiT or ViT.\n\n@durbin164",
      "votes": null
    },
    {
      "id": "1166774",
      "postDate": "01/23/2021 20:20:38",
      "content": "<p><a href=\"https://www.kaggle.com/piantic\" target=\"_blank\">@piantic</a> Thanks for the quick informatic replay. </p>",
      "rawMarkdown": "piantic Thanks for the quick informatic replay.",
      "votes": null
    },
    {
      "id": "1166884",
      "postDate": "01/23/2021 21:44:04",
      "content": "<p>I think it is actually possible (I have not tried though). </p>\n<p><a href=\"https://github.com/facebookresearch/deit/blob/main/main.py\" target=\"_blank\">https://github.com/facebookresearch/deit/blob/main/main.py</a></p>\n<p>Lines 264-282 both included.</p>\n<p>In fact in the paper they mention something about pretraining with 224 and finetuning the same model with 384.</p>",
      "rawMarkdown": "I think it is actually possible (I have not tried though). \n\n[https://github.com/facebookresearch/deit/blob/main/main.py](https://github.com/facebookresearch/deit/blob/main/main.py)\n\nLines 264-282 both included.\n\nIn fact in the paper they mention something about pretraining with 224 and finetuning the same model with 384.",
      "votes": null
    },
    {
      "id": "1166886",
      "postDate": "01/23/2021 21:45:58",
      "content": "<p>I'm looking forward how to properly train the distilled version. I've read something about self-distilled finetuning, though I don't know if this would be possible/appropiate for our task.</p>",
      "rawMarkdown": "I'm looking forward how to properly train the distilled version. I've read something about self-distilled finetuning, though I don't know if this would be possible/appropiate for our task.",
      "votes": null
    },
    {
      "id": "1166894",
      "postDate": "01/23/2021 22:03:19",
      "content": "<p>Even if you modify the code, we can't use pretrained weights for 512 image size.</p>\n<p><a href=\"https://www.kaggle.com/claverru\" target=\"_blank\">@claverru</a> </p>",
      "rawMarkdown": "Even if you modify the code, we can't use pretrained weights for 512 image size.\n\n@claverru",
      "votes": null
    },
    {
      "id": "1184552",
      "postDate": "02/03/2021 15:18:51",
      "content": "<p>Have you tried the DeiT ? How much LB you can get, thanks!</p>",
      "rawMarkdown": "Have you tried the DeiT ? How much LB you can get, thanks!",
      "votes": null
    },
    {
      "id": "1194419",
      "postDate": "02/10/2021 07:33:17",
      "content": "<p><a href=\"https://www.kaggle.com/claverru\" target=\"_blank\">@claverru</a>  i face weight format incompatibility issue… did face any thing</p>",
      "rawMarkdown": "claverru  i face weight format incompatibility issue... did face any thing",
      "votes": null
    },
    {
      "id": "1194567",
      "postDate": "02/10/2021 08:43:21",
      "content": "<p><a href=\"https://www.kaggle.com/claverru\" target=\"_blank\">@claverru</a> Is deit without distill the same with vit? I read the code but didn't find any difference….</p>",
      "rawMarkdown": "claverru Is deit without distill the same with vit? I read the code but didn't find any difference....",
      "votes": null
    },
    {
      "id": "1194664",
      "postDate": "02/10/2021 09:50:03",
      "content": "<p>Could you tell me how to load deit model without network for inference?</p>\n<p>The code </p>\n<p>torch.hub.load('facebookresearch/deit:main') </p>\n<p>seems does not work</p>",
      "rawMarkdown": "Could you tell me how to load deit model without network for inference?\n\nThe code \n\ntorch.hub.load('facebookresearch/deit:main') \n\nseems does not work",
      "votes": null
    },
    {
      "id": "1194995",
      "postDate": "02/10/2021 13:54:53",
      "content": "<p><a href=\"https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu\" target=\"_blank\">https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu</a></p>\n<p>I updated <code>DeiT</code> using <code>timm</code> not torch.hub.</p>\n<p>please see my notebook-v9. :)<br>\n<a href=\"https://www.kaggle.com/cuteffff\" target=\"_blank\">@cuteffff</a> </p>",
      "rawMarkdown": "https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu\n\nI updated `DeiT` using `timm` not torch.hub.\n\nplease see my notebook-v9. :)\n@cuteffff",
      "votes": null
    },
    {
      "id": "1195084",
      "postDate": "02/10/2021 14:39:38",
      "content": "<p>Thanks! <a href=\"https://www.kaggle.com/piantic\" target=\"_blank\">@piantic</a> </p>",
      "rawMarkdown": "Thanks! @piantic",
      "votes": null
    },
    {
      "id": "1195846",
      "postDate": "02/11/2021 05:25:13",
      "content": "<p>Thank you very much!</p>",
      "rawMarkdown": "Thank you very much!",
      "votes": null
    },
    {
      "id": "1210242",
      "postDate": "02/19/2021 09:34:02",
      "content": "<p>I was waiting until the end of the competition to say that yes, you can. I may release a public notebook with the explanation. In fact, one of my best submissions has a DeiT finetuned on 480 image size. Even more, I'm pretty sure you can do it two very different ways.</p>\n<p><a href=\"https://www.kaggle.com/piantic\" target=\"_blank\">@piantic</a> </p>\n<p>Edit: I've done it in one way, but I strongly believe there is another way.</p>",
      "rawMarkdown": "I was waiting until the end of the competition to say that yes, you can. I may release a public notebook with the explanation. In fact, one of my best submissions has a DeiT finetuned on 480 image size. Even more, I'm pretty sure you can do it two very different ways.\n\n@piantic \n\nEdit: I've done it in one way, but I strongly believe there is another way.",
      "votes": null
    },
    {
      "id": "1210267",
      "postDate": "02/19/2021 09:57:49",
      "content": "<p>If you share your solutions, everyone will learn something new. :)</p>\n<p><a href=\"https://www.kaggle.com/claverru\" target=\"_blank\">@claverru</a> </p>",
      "rawMarkdown": "If you share your solutions, everyone will learn something new. :)\n\n@claverru",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1163816,
      "author_name": "capiru",
      "author_url": "",
      "post_date": "01/22/2021 00:36:30",
      "content": "<p>Thanks a lot for sharing ! I read up on DeiT on the last discussion and was wondering exactly where the 384 weights were! Definitely gonna use them since it should be an improvement on ViT models. Thanks again for sharing.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1164430,
      "author_name": "tanulsingh077",
      "author_url": "",
      "post_date": "01/22/2021 11:18:00",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/heroseo\" target=\"_blank\">@heroseo</a> you have made some significant contributions in this competition , I just wanted to ask if you have tried DIET model yourself and if yes , can you share your cv/lb<br>\nThanks</p>",
      "votes": null,
      "replies": [
        {
          "id": 1164444,
          "author_name": "piantic",
          "author_url": "",
          "post_date": "01/22/2021 11:26:01",
          "content": "<p>I found new pretrained weights for DeiT yesterday. So, it needs experimentation using <code>384x384</code>.</p>\n<p>In case of <code>224x224</code>, My cv and lb were not good. (public lb is lower than <a href=\"https://www.kaggle.com/piantic/no-tta-cassava-resnext50-32x4d-inference-lb0-903\" target=\"_blank\">Resnext50_32x4d</a>.)</p>\n<p><a href=\"https://www.kaggle.com/tanulsingh077\" target=\"_blank\">@tanulsingh077</a> </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1165164,
          "author_name": "claverru",
          "author_url": "",
          "post_date": "01/22/2021 18:37:03",
          "content": "<p>My last submission made this morning was with deit 384 base (not distilled). CV 0.891, LB: 0.896, single model. I plan to train distilled version tonight, I can update if you want.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1165212,
          "author_name": "tanulsingh077",
          "author_url": "",
          "post_date": "01/22/2021 19:20:04",
          "content": "<p><a href=\"https://www.kaggle.com/piantic\" target=\"_blank\">@piantic</a> thanks for being so kind and replying all my queries <br>\nAlso <a href=\"https://www.kaggle.com/claverru\" target=\"_blank\">@claverru</a> thanks for sharing the update , I am looking forward to experiment with DeiT as well </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1166886,
          "author_name": "claverru",
          "author_url": "",
          "post_date": "01/23/2021 21:45:58",
          "content": "<p>I'm looking forward how to properly train the distilled version. I've read something about self-distilled finetuning, though I don't know if this would be possible/appropiate for our task.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1194419,
          "author_name": "jaideepvalani",
          "author_url": "",
          "post_date": "02/10/2021 07:33:17",
          "content": "<p><a href=\"https://www.kaggle.com/claverru\" target=\"_blank\">@claverru</a>  i face weight format incompatibility issue… did face any thing</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1194567,
          "author_name": "kewang777",
          "author_url": "",
          "post_date": "02/10/2021 08:43:21",
          "content": "<p><a href=\"https://www.kaggle.com/claverru\" target=\"_blank\">@claverru</a> Is deit without distill the same with vit? I read the code but didn't find any difference….</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1194664,
          "author_name": "cuteffff",
          "author_url": "",
          "post_date": "02/10/2021 09:50:03",
          "content": "<p>Could you tell me how to load deit model without network for inference?</p>\n<p>The code </p>\n<p>torch.hub.load('facebookresearch/deit:main') </p>\n<p>seems does not work</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1194995,
          "author_name": "piantic",
          "author_url": "",
          "post_date": "02/10/2021 13:54:53",
          "content": "<p><a href=\"https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu\" target=\"_blank\">https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu</a></p>\n<p>I updated <code>DeiT</code> using <code>timm</code> not torch.hub.</p>\n<p>please see my notebook-v9. :)<br>\n<a href=\"https://www.kaggle.com/cuteffff\" target=\"_blank\">@cuteffff</a> </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1195084,
          "author_name": "cuteffff",
          "author_url": "",
          "post_date": "02/10/2021 14:39:38",
          "content": "<p>Thanks! <a href=\"https://www.kaggle.com/piantic\" target=\"_blank\">@piantic</a> </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1164543,
      "author_name": "kewang777",
      "author_url": "",
      "post_date": "01/22/2021 12:43:08",
      "content": "<p>What's the difference between deit without distill and vit? </p>",
      "votes": null,
      "replies": [
        {
          "id": 1164546,
          "author_name": "piantic",
          "author_url": "",
          "post_date": "01/22/2021 12:46:21",
          "content": "<p>Simply explain it, distill uses teacher models. <a href=\"https://www.kaggle.com/kewang777\" target=\"_blank\">@kewang777</a> </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1166750,
      "author_name": "durbin164",
      "author_url": "",
      "post_date": "01/23/2021 19:58:17",
      "content": "<p>Thanks for sharing it. How can I use DeiT for 512*512 image size. Is there any way? </p>",
      "votes": null,
      "replies": [
        {
          "id": 1166770,
          "author_name": "piantic",
          "author_url": "",
          "post_date": "01/23/2021 20:15:12",
          "content": "<p>The Vision Transformer is conceptually different from architectures like resnet.<br>\nCurrently, it is not possible to use 512 image size for DeiT or ViT.</p>\n<p><a href=\"https://www.kaggle.com/durbin164\" target=\"_blank\">@durbin164</a> </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1166774,
          "author_name": "durbin164",
          "author_url": "",
          "post_date": "01/23/2021 20:20:38",
          "content": "<p><a href=\"https://www.kaggle.com/piantic\" target=\"_blank\">@piantic</a> Thanks for the quick informatic replay. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1166884,
          "author_name": "claverru",
          "author_url": "",
          "post_date": "01/23/2021 21:44:04",
          "content": "<p>I think it is actually possible (I have not tried though). </p>\n<p><a href=\"https://github.com/facebookresearch/deit/blob/main/main.py\" target=\"_blank\">https://github.com/facebookresearch/deit/blob/main/main.py</a></p>\n<p>Lines 264-282 both included.</p>\n<p>In fact in the paper they mention something about pretraining with 224 and finetuning the same model with 384.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1166894,
          "author_name": "piantic",
          "author_url": "",
          "post_date": "01/23/2021 22:03:19",
          "content": "<p>Even if you modify the code, we can't use pretrained weights for 512 image size.</p>\n<p><a href=\"https://www.kaggle.com/claverru\" target=\"_blank\">@claverru</a> </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1210242,
          "author_name": "claverru",
          "author_url": "",
          "post_date": "02/19/2021 09:34:02",
          "content": "<p>I was waiting until the end of the competition to say that yes, you can. I may release a public notebook with the explanation. In fact, one of my best submissions has a DeiT finetuned on 480 image size. Even more, I'm pretty sure you can do it two very different ways.</p>\n<p><a href=\"https://www.kaggle.com/piantic\" target=\"_blank\">@piantic</a> </p>\n<p>Edit: I've done it in one way, but I strongly believe there is another way.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1210267,
          "author_name": "piantic",
          "author_url": "",
          "post_date": "02/19/2021 09:57:49",
          "content": "<p>If you share your solutions, everyone will learn something new. :)</p>\n<p><a href=\"https://www.kaggle.com/claverru\" target=\"_blank\">@claverru</a> </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1184552,
      "author_name": "clw5180",
      "author_url": "",
      "post_date": "02/03/2021 15:18:51",
      "content": "<p>Have you tried the DeiT ? How much LB you can get, thanks!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1195846,
      "author_name": "",
      "author_url": "",
      "post_date": "02/11/2021 05:25:13",
      "content": "<p>Thank you very much!</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1163530": "# Introduction\nDeiT is `DeiT: Data-efficient Image Transformers` like `ViT`.\n\n\n# New pretrained Weights\nNow, we can use `384x384` image size for DeiT.\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3492127%2F3b99cd8b398b3d4349539ae307f7547d%2Fdd1.png?generation=1611251617068659&alt=media)\n\n- DeiT-base 384\n- DeiT-base distilled 384 (1000 epochs)\n\nhttps://github.com/facebookresearch/deit\n\n# End\n- Official inference for DeiT(Colab)\n\nhttps://colab.research.google.com/github/facebookresearch/deit/blob/colab/notebooks/deit_inference.ipynb\n\nThank you!",
    "1163816": "Thanks a lot for sharing ! I read up on DeiT on the last discussion and was wondering exactly where the 384 weights were! Definitely gonna use them since it should be an improvement on ViT models. Thanks again for sharing.",
    "1164430": "Hi @heroseo you have made some significant contributions in this competition , I just wanted to ask if you have tried DIET model yourself and if yes , can you share your cv/lb\nThanks",
    "1164444": "I found new pretrained weights for DeiT yesterday. So, it needs experimentation using `384x384`.\n\nIn case of `224x224`, My cv and lb were not good. (public lb is lower than [Resnext50_32x4d](https://www.kaggle.com/piantic/no-tta-cassava-resnext50-32x4d-inference-lb0-903).)\n\n@tanulsingh077",
    "1164543": "What's the difference between deit without distill and vit?",
    "1164546": "Simply explain it, distill uses teacher models. @kewang777",
    "1165164": "My last submission made this morning was with deit 384 base (not distilled). CV 0.891, LB: 0.896, single model. I plan to train distilled version tonight, I can update if you want.",
    "1165212": "piantic thanks for being so kind and replying all my queries \nAlso @claverru thanks for sharing the update , I am looking forward to experiment with DeiT as well",
    "1166750": "Thanks for sharing it. How can I use DeiT for 512*512 image size. Is there any way?",
    "1166770": "The Vision Transformer is conceptually different from architectures like resnet.\nCurrently, it is not possible to use 512 image size for DeiT or ViT.\n\n@durbin164",
    "1166774": "piantic Thanks for the quick informatic replay.",
    "1166884": "I think it is actually possible (I have not tried though). \n\n[https://github.com/facebookresearch/deit/blob/main/main.py](https://github.com/facebookresearch/deit/blob/main/main.py)\n\nLines 264-282 both included.\n\nIn fact in the paper they mention something about pretraining with 224 and finetuning the same model with 384.",
    "1166886": "I'm looking forward how to properly train the distilled version. I've read something about self-distilled finetuning, though I don't know if this would be possible/appropiate for our task.",
    "1166894": "Even if you modify the code, we can't use pretrained weights for 512 image size.\n\n@claverru",
    "1184552": "Have you tried the DeiT ? How much LB you can get, thanks!",
    "1194419": "claverru  i face weight format incompatibility issue... did face any thing",
    "1194567": "claverru Is deit without distill the same with vit? I read the code but didn't find any difference....",
    "1194664": "Could you tell me how to load deit model without network for inference?\n\nThe code \n\ntorch.hub.load('facebookresearch/deit:main') \n\nseems does not work",
    "1194995": "https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu\n\nI updated `DeiT` using `timm` not torch.hub.\n\nplease see my notebook-v9. :)\n@cuteffff",
    "1195084": "Thanks! @piantic",
    "1195846": "Thank you very much!",
    "1210242": "I was waiting until the end of the competition to say that yes, you can. I may release a public notebook with the explanation. In fact, one of my best submissions has a DeiT finetuned on 480 image size. Even more, I'm pretty sure you can do it two very different ways.\n\n@piantic \n\nEdit: I've done it in one way, but I strongly believe there is another way.",
    "1210267": "If you share your solutions, everyone will learn something new. :)\n\n@claverru"
  },
  "source": "meta"
}