Run this model with HF Jobs

Run CompVis/stable-diffusion-v1-4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/CompVis/stable-diffusion-v1-4. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/CompVis/stable-diffusion-v1-4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

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