Spaces:
Runtime error
Runtime error
Commit
·
300c3be
1
Parent(s):
991a27b
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5",
|
|
24 |
custom_pipeline="stable_diffusion_controlnet_img2img",
|
25 |
controlnet=controlnet,
|
26 |
torch_dtype=torch.float16).to(device)
|
27 |
-
pipe.enable_xformers_memory_efficient_attention()
|
28 |
|
29 |
def super_esr(source_image,prompt,negative_prompt,strength,seed,num_inference_steps):
|
30 |
condition_image = resize_for_condition_image(source_image, 1024)
|
|
|
24 |
custom_pipeline="stable_diffusion_controlnet_img2img",
|
25 |
controlnet=controlnet,
|
26 |
torch_dtype=torch.float16).to(device)
|
27 |
+
#pipe.enable_xformers_memory_efficient_attention()
|
28 |
|
29 |
def super_esr(source_image,prompt,negative_prompt,strength,seed,num_inference_steps):
|
30 |
condition_image = resize_for_condition_image(source_image, 1024)
|