I cannot load DDPMScheduler in runwayml/stable-diffusion-v1-5 #37
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OSError: Error no file named scheduler_config.json found in directory runwayml/stable-diffusion-v1-5.
The following pieces of code cannot load the corresponding models:
# Load scheduler and models
noise_scheduler = DDPMScheduler.from_pretrained(args.pretrained_model_name_or_path, subfolder="scheduler")
text_encoder = CLIPTextModel.from_pretrained(
args.pretrained_model_name_or_path, subfolder="text_encoder", revision=args.revision
)
vae = AutoencoderKL.from_pretrained(args.pretrained_model_name_or_path, subfolder="vae", revision=args.revision)
unet = UNet2DConditionModel.from_pretrained(
args.pretrained_model_name_or_path, subfolder="unet", revision=args.revision
)
it might be due to the update of the diffuser library. Could you check the specific version we use here: https://github.com/guochengqian/Magic123/blob/main/requirements-torch201-cuda117.txt
Okey, thank you very much! I've fixed the problem, it's due to a network issue.