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 config for 'stabilityai/stable-diffusion-2-1-base'. 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 'stabilityai/stable-diffusion-2-1-base' is the correct path to a directory containing a model_index.json file #149

Open
lucasjinreal opened this issue Mar 30, 2023 · 2 comments

Comments

@lucasjinreal
Copy link

OSError: Can't load config for 'stabilityai/stable-diffusion-2-1-base'. 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 'stabilityai/stable-diffusion-2-1-base' is the correct path to a directory containing a model_index.json file

@HenryJaQiu
Copy link

OSError: Can't load config for 'stabilityai/stable-diffusion-2-1-base'. 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 'stabilityai/stable-diffusion-2-1-base' is the correct path to a directory containing a model_index.json file

I solve this issue by logging into Huggingface as following:

  • Use huggingface-cli login in Terminal
  • Input your token extracted from Token
  • Re-run the program

This problem is caused by the login requirement from HuggingFace. The author of the README file might already log into it before the test, hence didn't meet this problem.

This issue might happen to each user beginning from "Ready-made Core ML Models from Hugging Face Hub" directly to "Image Generation with Python". Hence, I suggest authors update the README file of this project.

@cp-cp
Copy link

cp-cp commented Nov 8, 2023

Thank u!!!!!!!

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