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