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

Not able to test on an image #27

Open
Vinayak-VG opened this issue Feb 2, 2024 · 3 comments
Open

Not able to test on an image #27

Vinayak-VG opened this issue Feb 2, 2024 · 3 comments

Comments

@Vinayak-VG
Copy link

I get this error when I run the code given in the readme file for testing on an image

Traceback (most recent call last):
File "run.py", line 6, in
model, preprocess = open_clip.create_model_from_pretrained('daclip_ViT-B-32', pretrained=checkpoint)
File "/home/vinayak/.local/lib/python3.8/site-packages/open_clip/factory.py", line 437, in create_model_from_pretrained
model = create_model(
File "/home/vinayak/.local/lib/python3.8/site-packages/open_clip/factory.py", line 215, in create_model
raise RuntimeError(f'Model config for {model_name} not found.')
RuntimeError: Model config for daclip_ViT-B-32 not found.

Please let us know what has to be done?

@Algolzw
Copy link
Owner

Algolzw commented Feb 2, 2024

Hi, which code are you running? I've tried the app.py and it runs very well.

@Algolzw
Copy link
Owner

Algolzw commented Feb 2, 2024

Moreover, our project hasn't been merged into the official open_clip repo. Thus you probably should use our open_clip that contains the modified code for our DA-CLIP.

@lwtgithublwt
Copy link

RuntimeError: Model config for daclip_ViT-B-32 not found.
I'm not sure if you have solved this problem. Can you answer it

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

3 participants