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

OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14' #34

Closed
putuoka opened this issue Aug 23, 2022 · 2 comments
Closed

OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14' #34

putuoka opened this issue Aug 23, 2022 · 2 comments

Comments

@putuoka
Copy link

putuoka commented Aug 23, 2022

OSError: Can't load tokenizer 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 all relevant files for a CLIPTokenizer tokenizer.

@lstein
Copy link
Collaborator

lstein commented Aug 23, 2022

After conda activating the "ldm" environment, and changing to the stable-diffusion directory run:

python scripts\preload_models.py

This only needs to be done once. The reason for this is that the original source code downloads these models on a just-in-time basis. However, my university's GPU systems are firewalled and so this step fails. To make it easier for everyone, I decided to have a mandatory preload which caches the required files locally. (It also has the effect of removing about two pages worth of warnings when the CLIP tokenizer is loaded!)

Let me know if this solution does or doesn't work for you. I'll keep the issue open until then.

@VictorJulianiR
Copy link

if I have installed using the win installation, i don't have this script to run, what should i do?

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