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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ 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")
13
  apol=[]
14
  def plex(prompt,neg_prompt,stips,nut):
 
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 = EulerDiscreteScheduler.from_config(pipe.scheduler.config)
11
+ pipe.unet.to(memory_format=torch.channels_last)
12
  pipe.to("cpu")
13
  apol=[]
14
  def plex(prompt,neg_prompt,stips,nut):