Spaces:
Running
on
Zero
Running
on
Zero
patrickvonplaten
commited on
Commit
•
9fd248b
1
Parent(s):
be6eaee
Update app.py
Browse files
app.py
CHANGED
@@ -44,9 +44,9 @@ sd_pipe = StableDiffusionPipeline.from_pretrained(
|
|
44 |
torch_dtype=torch.float16,
|
45 |
safety_checker=None,
|
46 |
)
|
|
|
47 |
sd_pipe.scheduler = DPMSolverMultistepScheduler.from_config(sd_pipe.scheduler.config)
|
48 |
sd_pipe.enable_xformers_memory_efficient_attention()
|
49 |
-
sd_pipe.enable_model_cpu_offload()
|
50 |
|
51 |
|
52 |
def resize_for_condition_image(input_image: Image.Image, resolution: int):
|
|
|
44 |
torch_dtype=torch.float16,
|
45 |
safety_checker=None,
|
46 |
)
|
47 |
+
sd_pipe.to("cuda")
|
48 |
sd_pipe.scheduler = DPMSolverMultistepScheduler.from_config(sd_pipe.scheduler.config)
|
49 |
sd_pipe.enable_xformers_memory_efficient_attention()
|
|
|
50 |
|
51 |
|
52 |
def resize_for_condition_image(input_image: Image.Image, resolution: int):
|