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 'default_cfg' #98

Open
vladoossss opened this issue Apr 18, 2023 · 2 comments
Open

Comments

@vladoossss
Copy link

When i try to run inference with, for example, Detic_LCOCOI21k_CLIP_R5021k_640b32_4x_ft4x_max-size model i have next error:

TypeError: __init__() got an unexpected keyword argument 'default_cfg'

With Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size it works well.
What should i change to run other models?

@hulxhlx
Copy link

hulxhlx commented Apr 19, 2023

I think this is because the version of timm is wrong, you can install 0.5.4. I met the same mistake, I changed the version and it worked.

@vladoossss
Copy link
Author

I think this is because the version of timm is wrong, you can install 0.5.4. I met the same mistake, I changed the version and it worked.

Thank you! It also works for me!

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