JoPmt commited on
Commit
835b98f
1 Parent(s): 04495d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from accelerate import Accelerator
6
  from diffusers import StableDiffusionXLPipeline, EulerDiscreteScheduler
7
  accelerator = Accelerator(cpu=True)
8
 
9
- pipe = accelerator.prepare(StableDiffusionXLPipeline.from_pretrained("imagepipeline/Zavy-Chroma-XL-v3", torch_dtype=torch.bfloat16, use_safetensors=True, variant="fp16", safety_checker=False))
10
  pipe.scheduler = accelerator.prepare(EulerDiscreteScheduler.from_config(pipe.scheduler.config))
11
  ##pipe.unet.to(memory_format=torch.channels_last)
12
  pipe.to("cpu")
 
6
  from diffusers import StableDiffusionXLPipeline, EulerDiscreteScheduler
7
  accelerator = Accelerator(cpu=True)
8
 
9
+ pipe = accelerator.prepare(StableDiffusionXLPipeline.from_pretrained("imagepipeline/Zavy-Chroma-XL-v3", torch_dtype=torch.bfloat16, use_safetensors=True, variant="fp16", safety_checker=None))
10
  pipe.scheduler = accelerator.prepare(EulerDiscreteScheduler.from_config(pipe.scheduler.config))
11
  ##pipe.unet.to(memory_format=torch.channels_last)
12
  pipe.to("cpu")