I cannot load DDPMScheduler in runwayml/stable-diffusion-v1-5 #37

Closed
opened 2023-10-06 10:53:30 +08:00 by TimenoLong · 3 comments
TimenoLong commented 2023-10-06 10:53:30 +08:00 (Migrated from github.com)

OSError: Error no file named scheduler_config.json found in directory runwayml/stable-diffusion-v1-5.

OSError: Error no file named scheduler_config.json found in directory runwayml/stable-diffusion-v1-5.
TimenoLong commented 2023-10-06 10:55:19 +08:00 (Migrated from github.com)

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
)

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 )
guochengqian commented 2023-10-13 16:43:23 +08:00 (Migrated from github.com)

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

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
TimenoLong commented 2023-10-14 20:28:46 +08:00 (Migrated from github.com)

Okey, thank you very much! I've fixed the problem, it's due to a network issue.

Okey, thank you very much! I've fixed the problem, it's due to a network issue.
Sign in to join this conversation.