Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
11 |
-
|
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):
|