Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,9 @@ pipe = StableDiffusionControlNetInpaintPipeline.from_pretrained(
|
|
35 |
torch_dtype=torch.float16,
|
36 |
)
|
37 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
38 |
-
pipe.enable_model_cpu_offload()
|
39 |
-
pipe.enable_xformers_memory_efficient_attention()
|
|
|
40 |
|
41 |
|
42 |
with gr.Blocks() as demo:
|
|
|
35 |
torch_dtype=torch.float16,
|
36 |
)
|
37 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
38 |
+
#pipe.enable_model_cpu_offload()
|
39 |
+
#pipe.enable_xformers_memory_efficient_attention()
|
40 |
+
pipe = pipe.to(device)
|
41 |
|
42 |
|
43 |
with gr.Blocks() as demo:
|