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

running demo error #76

Open
sevenactors opened this issue May 3, 2023 · 2 comments
Open

running demo error #76

sevenactors opened this issue May 3, 2023 · 2 comments

Comments

@sevenactors
Copy link

I was running the demo code shown in readme. But i get the error below

from PIL import Image
from clip_interrogator import Config, Interrogator
image_path = '001.png'
image = Image.open(image_path).convert('RGB')
ci = Interrogator(Config(clip_model_name="ViT-H-14/laion2b_s32b_b79k"))
print(ci.interrogate(image))

RuntimeError: The size of tensor a (8) must match the size of tensor b (64) at non-singleton dimension 0

@sfxworks
Copy link

sfxworks commented May 11, 2023

I also get this with the ViT-L-14/openai. Not sure what to think. Is it too large?

@irimsky
Copy link

irimsky commented May 12, 2023

I also get this with the ViT-L-14/openai. Not sure what to think. Is it too large?

#62

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