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

AttributeError: module 'timm.models._registry' has no attribute 'get_pretrained_cfgs_for_arch' #196

Open
ElyasYassin opened this issue Oct 15, 2024 · 4 comments
Assignees

Comments

@ElyasYassin
Copy link

from robustbench.utils import clean_accuracy
from robustbench.utils import load_model

AttributeError: module 'timm.models._registry' has no attribute 'get_pretrained_cfgs_for_arch'

@ElyasYassin ElyasYassin changed the title Error AttributeError: module 'timm.models._registry' has no attribute 'get_pretrained_cfgs_for_arch' Oct 15, 2024
@mjzohr
Copy link

mjzohr commented Oct 15, 2024

I think the issue is because of the timm library. I solved this using by downgrading the library using this to a previous version: timm releases, I used:
pip install timm==1.0.9

@ramosv
Copy link

ramosv commented Oct 15, 2024

This fixed it, thank you.

@rwightman
Copy link

usages of from timm.models.registry import register_model that exist in this lib should be changed to from timm.models import register_model it was deprecated 2 years ago

@dedeswim dedeswim self-assigned this Oct 16, 2024
@dedeswim
Copy link
Member

Thanks @ElyasYassin for raising the issue and thanks @rwightman for letting us know how to fix it. I will change this as soon as possible!

@fra31 fra31 mentioned this issue Oct 21, 2024
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

5 participants