Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to interpret the model fine tuning on the pre-trained ViT model using the imagery with larger resolution (500 * 500) than the pre-trained dataset (224 * 224) #114

Open
lyfranki opened this issue Nov 4, 2022 · 0 comments

Comments

@lyfranki
Copy link

lyfranki commented Nov 4, 2022

Hi @cdpierse ,

I am working on the downstream task of image classification. I fine tuned a pre-trained ViT model (224 * 224) using larger resoltuion imagery (500 * 500). In the process of fine tuning, I only need to set interpolate_pos_encoding as True in model(**inputs, interpolate_pos_encoding = True) to fine tune the pre-trained model. However, it seems like your code does not include the part of interpolate_pos_encoding in the class of ImageClassificationExplainer. I am wondering what do you think about the attention map of the image classified by my fine tuned model according to your understanding to ViT. Is it much different from the attention map of the image classified by a model fine tuned from the pre-trained ViT model using the same larger resolution imagery? (In this process of fine tuning, imagery is resized to 224 * 224.) Or they would be same?

Thanks,
Yin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant