-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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: CompVis/stable-diffusion-v1-4 does not appear to have a file named config.json. #302
Comments
Faced this issue myself. Your version of |
+1 Im using transformers from pip... so.... its waiting till they release a new version? |
already fixed at least in 4.22.1 |
You're right! |
so what should we do if we face this error? |
Say not today and upgrade transformers. For me the case was that I had the environment already setup and transformers was pinned to 4.19 in the requirements.txt So I just edited the requirements.txt and set transformers to at least 4.22.1 then run pip install -r requirements.txt, that did the trick for me |
fwiw im getting this error with transformers 4.27.1 |
Also having issues on the latest version |
Still happening as of 27 May with latest transformers version. |
Also having the same issues on transformers==4.36.0 cuda==11.6 pytorch==1.12.0. Does anyone have a solution? |
meet in 4.37.1 |
meet too! 4.37.1 do you solve this problem? |
me too in 4.31. |
same for 4.39.1 |
This can be internet issues, the below solved for me, run this in command line: Then run the code to cache the model(change the model card name to what you need)
|
I met this error when I use "stabilityai/stablelm-2-1_6b", because I build a folder with the path "stabilityai/stablelm-2-1_6b", which will guide transformers package to load model from the local folder. After removing the folder, the error disappears. |
In my case, upgrading the transformers version did not resolve the issue, so I focused on the 'subfolder="unet"' parameter. |
For me, I updated:
and
This worked for me. |
When using SD Diffusers, I got errors when running this line
text_encoder = CLIPTextModel.from_pretrained( 'CompVis/stable-diffusion-v1-4', subfolder="text_encoder", use_auth_token=True )
,where the error is
OSError: CompVis/stable-diffusion-v1-4 does not appear to have a file named config.json.
Any idea on why this happens?
The text was updated successfully, but these errors were encountered: