Update Samples

This commit is contained in:
cafeai 2022-12-03 20:49:53 +09:00
parent bf264d0ff0
commit 31dd4f6433
1 changed files with 1 additions and 1 deletions

View File

@ -998,7 +998,7 @@ def main():
scheduler=PNDMScheduler.from_pretrained(args.model, subfolder="scheduler", use_auth_token=args.hf_token)
pipeline = StableDiffusionPipeline(
text_encoder=text_encoder,
text_encoder=text_encoder if type(text_encoder) is not torch.nn.parallel.DistributedDataParallel else text_encoder.module,
vae=vae,
unet=unet.module,
tokenizer=tokenizer,