lllyasviel / ControlNet

Let us control diffusion models!
Apache License 2.0
30.34k stars 2.73k forks source link

Load CLIPTokenizer error #674

Open Wei-1989 opened 6 months ago

Wei-1989 commented 6 months ago

my linux can't access huggingface so when i run the project, this error occurred. OSError: Can't load config 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 config.json file

How can I fix it? Should I download model from huggingface, and upload to my linux service? But I don't know what model should I download and where should I upload

If you can help me . I will be very appreciate~~!

AAKillua commented 6 months ago

You can download clip-vit-large-patch14 from huggingface.co, upload it to the server, and then modify the path of the modules.py file to load the model ("./ControlNet-main/ldm/modules/encoders/modules.py" ) Download clip-vit-large-patch14 at https://huggingface.co/openai/clip-vit-large-patch14/tree/main