OSError: CompVis/stable-diffusion-v1-4 does not appear to have a file named config.json.

#177
by nazianafis - opened

MY CODE:

from diffusers import AutoencoderKL, UNet2DConditionModel
from transformers import CLIPFeatureExtractor, CLIPTextModel

text_encoder = CLIPTextModel.from_pretrained(model_id, subfolder="text_encoder")
vae = AutoencoderKL.from_pretrained(model_id, subfolder="vae")
unet = UNet2DConditionModel.from_pretrained(model_id, subfolder="unet")
feature_extractor = CLIPFeatureExtractor.from_pretrained("openai/clip-vit-base-patch32")

ERROR:
EntryNotFoundError: 404 Client Error: Entry Not Found for url: https://huggingface.co./CompVis/stable-diffusion-v1-4/resolve/main/config.json
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
...
OSError: CompVis/stable-diffusion-v1-4 does not appear to have a file named config.json.

oh, I have the same problem as you. When I run the code on windows, I wont meet this error. But once I run it on the server, the error will arise

Oh bro, I solved this problem. Try to upgrade your transformers package!

I had the same problem and my transformer package is already 4.35.2. Upgraded to 4.36.2 and still did not work.

I added a parameter and the problem seems to resolve. ddim = DDIMScheduler.from_pretrained(repo_id, subfolder="scheduler")

Samj008 = where did you add that?

Samj008 = where did you add that?

My use case might be different from yours.

I was running ddim = DDIMScheduler.from_pretrained(repo_id) and got similar error.

So I went to repo for CompVis/stable-diffusion-v1-4 and noticed there is a subfolder named scheduler, so I added the parameter subfolder="scheduler" to ddim = DDIMScheduler.from_pretrained(repo_id, subfolder="scheduler").

Sign up or log in to comment