Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ pipeline = AutoPipelineForImage2Image.from_pretrained(
|
|
7 |
)
|
8 |
pipeline.enable_model_cpu_offload()
|
9 |
# remove following line if xFormers is not installed or you have PyTorch 2.0 or higher installed
|
10 |
-
pipeline.enable_xformers_memory_efficient_attention()
|
11 |
|
12 |
# prepare image
|
13 |
url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/img2img-init.png"
|
|
|
7 |
)
|
8 |
pipeline.enable_model_cpu_offload()
|
9 |
# remove following line if xFormers is not installed or you have PyTorch 2.0 or higher installed
|
10 |
+
# pipeline.enable_xformers_memory_efficient_attention()
|
11 |
|
12 |
# prepare image
|
13 |
url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/img2img-init.png"
|