Skip to content

[BUG] AttributeError: module 'timm.models._registry' has no attribute 'get_pretrained_cfgs_for_arch' (deprecated import paths) #2306

Closed Answered by rwightman
Benjamin-Tan asked this question in Q&A
Discussion options

You must be logged in to vote

@Benjamin-Tan hmm, there is a small problem in the _all_ for the registry, but it's being triggered by using a deprecated import path, timm.models.registry was deprecated as of two years ago https://github.com/huggingface/pytorch-image-models/blob/main/timm/models/registry.py

it should be from timm.models import register_model

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Benjamin-Tan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2303 on October 16, 2024 23:10.