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

TypeError: __init__() got an unexpected keyword argument 'qk_scale' #3

Closed
shuaiqidexiaojiejie opened this issue May 21, 2023 · 3 comments

Comments

@shuaiqidexiaojiejie
Copy link

I encountered the following error while running the program you provided. Can you help me resolve it.
TypeError: init() got an unexpected keyword argument 'qk_scale'
图片

@zhangzilongc
Copy link
Owner

can you check your timm version? The required timm version is timm==0.3.2. This repo is based on timm==0.3.2(https://github.com/rwightman/pytorch-image-models), for which a fix (huggingface/pytorch-image-models#420 (comment)) is needed to work with PyTorch 1.8.1+.

@zhangzilongc
Copy link
Owner

I encountered the following error while running the program you provided. Can you help me resolve it. TypeError: init() got an unexpected keyword argument 'qk_scale' 图片

above

@shuaiqidexiaojiejie
Copy link
Author

Thank you for your help

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

2 participants