Update Samples
This commit is contained in:
parent
bf264d0ff0
commit
31dd4f6433
|
@ -998,7 +998,7 @@ def main():
|
||||||
scheduler=PNDMScheduler.from_pretrained(args.model, subfolder="scheduler", use_auth_token=args.hf_token)
|
scheduler=PNDMScheduler.from_pretrained(args.model, subfolder="scheduler", use_auth_token=args.hf_token)
|
||||||
|
|
||||||
pipeline = StableDiffusionPipeline(
|
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,
|
vae=vae,
|
||||||
unet=unet.module,
|
unet=unet.module,
|
||||||
tokenizer=tokenizer,
|
tokenizer=tokenizer,
|
||||||
|
|
Loading…
Reference in New Issue