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

failed in CLIPModel.from_pretrained(model_name, cache_dir=annotator_ckpts_path) #9

Open
FelixZhang7 opened this issue Jun 5, 2023 · 2 comments

Comments

@FelixZhang7
Copy link

OSError: Can't load the model for 'openai/clip-vit-large-patch14'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'openai/clip-vit-large-patch14' is the correct path to a directory containing a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.

@YaPengJi1
Copy link

Same error

@Leo-student
Copy link

  1. download the clip-vit-large-patch14.tar.gz and unzip it in your own path as /path/to/clip-vit-large-patch14
  2. vim annotator/content/__init__.py and change the path to /path/to/clip-vit-large-patch14
  3. vim ldm/modules/encoders/modules.py and change the path in 95 and 198 lines in the class FrozenCLIPEmbedder and FrozenCLIPT5Encoder to path/to/clip-vit-large-patch14

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