Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ repo_id = "stabilityai/stable-diffusion-2"
|
|
| 31 |
scheduler = EulerDiscreteScheduler.from_pretrained(repo_id, subfolder="scheduler", prediction_type="v_prediction")
|
| 32 |
pipe = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.float16, revision="fp16", scheduler=scheduler)
|
| 33 |
pipe = pipe.to(device)
|
| 34 |
-
pipe.enable_xformers_memory_efficient_attention()
|
| 35 |
|
| 36 |
#If you have duplicated this Space or is running locally, you can remove this snippet
|
| 37 |
if "HUGGING_FACE_HUB_TOKEN" in os.environ:
|
|
|
|
| 31 |
scheduler = EulerDiscreteScheduler.from_pretrained(repo_id, subfolder="scheduler", prediction_type="v_prediction")
|
| 32 |
pipe = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.float16, revision="fp16", scheduler=scheduler)
|
| 33 |
pipe = pipe.to(device)
|
| 34 |
+
#pipe.enable_xformers_memory_efficient_attention()
|
| 35 |
|
| 36 |
#If you have duplicated this Space or is running locally, you can remove this snippet
|
| 37 |
if "HUGGING_FACE_HUB_TOKEN" in os.environ:
|