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

Train the classification model without setting DinoV2's param.requires_grad = False #3

Open
Hao-Ping opened this issue Feb 4, 2024 · 0 comments

Comments

@Hao-Ping
Copy link

Hao-Ping commented Feb 4, 2024

Hello,

Thank you for sharing your great article on Medium and GitHub. I was inspired a lot.
In 3.DinoV2_VS_ResnetClassification.ipynb, you load the dinov2_vits14 model, and I don't see anywhere you freeze the parameters in the dinov2.

Does it mean that during the training process, you tune all the parameters in the DinoVisionTransformerClassifier (including transformer and linear layer)?
Then does it mean that all the benefits come from the pretrained model and curated data is discarded?

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