Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from diffusers import StableDiffusionXLPipeline
|
|
7 |
accelerator = Accelerator(cpu=True)
|
8 |
|
9 |
pipe = accelerator.prepare(StableDiffusionXLPipeline.from_pretrained("segmind/SSD-1B", torch_dtype=torch.bfloat16, use_safetensors=True, variant="fp16"))
|
|
|
10 |
pipe.to("cpu")
|
11 |
|
12 |
def plex(prompt,neg_prompt,stips):
|
|
|
7 |
accelerator = Accelerator(cpu=True)
|
8 |
|
9 |
pipe = accelerator.prepare(StableDiffusionXLPipeline.from_pretrained("segmind/SSD-1B", torch_dtype=torch.bfloat16, use_safetensors=True, variant="fp16"))
|
10 |
+
pipe.unet.to(memory_format=torch.channels_last)
|
11 |
pipe.to("cpu")
|
12 |
|
13 |
def plex(prompt,neg_prompt,stips):
|