How does the function create_model() find the model we want? #742
Unanswered
Calvin-Pang
asked this question in
General
Replies: 1 comment 1 reply
-
https://fastai.github.io/timmdocs/tutorial_feature_extractor |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am reading the timm codes now and want to have a better understanding of this excellent tool.


And I have a question here. Can anyone tell me how does the function create_model() find the model want? For example, I run the code: model = timm.create_model(model_name='timm:resnet34',pretrained = False), and it will go to the resnet.py for the model I want. So how does it find the resnet.py? I only find the code create_fn = model_entrypoint(model_name) in factory.py, but in the function model_entrypoint(model_name), it only tell me :
and the _model_entrypoints is a empty one:
It is strange, can someone tell me how it works?
Beta Was this translation helpful? Give feedback.
All reactions