Skip to content

Distilling VIT-L from VIT-G on imagenet #374

Discussion options

You must be logged in to vote

Hi @arpitsahni04

Do you just want to change models in some ImageNet configs?
If so, with the current PyPI package (torchdistill==0.3.3), your model entry in a yaml config will look like this as shown in README.md

models:
  teacher_model:
    name: 'vit_giant_patch14_224'
    repo_or_dir: 'huggingface/pytorch-image-models'
    params:
      pretrained: True
      other kwargs here if necessary ...
  student_model:
    name: 'vit_large_patch14_clip_224'
    repo_or_dir: 'huggingface/pytorch-image-models'
    params:
      pretrained: False
      other kwargs here if necessary ...

For the teacher and student names, I referred to https://github.com/huggingface/pytorch-image-models/blob/main/…

Replies: 1 comment 25 replies

Comment options

You must be logged in to vote
25 replies
@nighting0le01
Comment options

@yoshitomo-matsubara
Comment options

@nighting0le01
Comment options

@yoshitomo-matsubara
Comment options

@nighting0le01
Comment options

Answer selected by nighting0le01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants