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

Error: Cannot import name '_init_vit_weights' from 'timm.models.vision_transformer' #1

Open
lxy-146 opened this issue Aug 1, 2024 · 1 comment

Comments

@lxy-146
Copy link

lxy-146 commented Aug 1, 2024

Hello, we encountered an error ‘Cannot import name '_init_vit_weights' from 'timm.models.vision_transformer’ while trying to replicate your method. This might be due to changes in the timm version that have altered or removed _init_vit_weights. Could you please provide the version of timm that you used?

@lxy-146
Copy link
Author

lxy-146 commented Aug 1, 2024

I found that timm=0.5.4 is functional and hope this helps others.

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