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

Cannot create model eva02_enormous_patch14_clip_224.pretrain #1806

Open
Luciennnnnnn opened this issue May 15, 2023 · 2 comments
Open

Cannot create model eva02_enormous_patch14_clip_224.pretrain #1806

Luciennnnnnn opened this issue May 15, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Luciennnnnnn
Copy link

I encounter following error with timm 0.9.1

Traceback (most recent call last):
  File "download_models.py", line 63, in <module>
    model = timm.create_model('eva02_enormous_patch14_clip_224.pretrain', pretrained=True)
  File "/home/luoxin/.local/lib/python3.8/site-packages/timm/models/_factory.py", line 114, in create_model
    model = create_fn(
  File "/home/luoxin/.local/lib/python3.8/site-packages/timm/models/eva.py", line 1084, in eva02_enormous_patch14_clip_224
    model = _create_eva('eva02_enormous_patch14_clip_224', pretrained=pretrained, **dict(model_args, **kwargs))
  File "/home/luoxin/.local/lib/python3.8/site-packages/timm/models/eva.py", line 645, in _create_eva
    model = build_model_with_cfg(
  File "/home/luoxin/.local/lib/python3.8/site-packages/timm/models/_builder.py", line 393, in build_model_with_cfg
    load_pretrained(
  File "/home/luoxin/.local/lib/python3.8/site-packages/timm/models/_builder.py", line 189, in load_pretrained
    raise RuntimeError(f"No pretrained weights exist for {model_name}. Use `pretrained=False` for random init.")
RuntimeError: No pretrained weights exist for eva02_enormous_patch14_clip_224. Use `pretrained=False` for random init.
@Luciennnnnnn Luciennnnnnn added the bug Something isn't working label May 15, 2023
@Luciennnnnnn
Copy link
Author

Is this model unavaliable now?

@rwightman
Copy link
Collaborator

@LuoXin-s you can uncomment https://github.com/huggingface/pytorch-image-models/blob/main/timm/models/eva.py#L820 to download from the original source, the conversion mapping should load it... there is no information as to what that 'pretrain' is, so I've left it disabled for now, the CLIP enormous weights are there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants