Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,12 +10,12 @@ device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
|
| 10 |
torch.cuda.max_memory_allocated(device=device)
|
| 11 |
torch.cuda.empty_cache()
|
| 12 |
pipe = DiffusionPipeline.from_pretrained("circulus/canvers-fusionXL-v1").to(device)
|
| 13 |
-
pipe.enable_xformers_memory_efficient_attention()
|
| 14 |
torch.cuda.empty_cache()
|
| 15 |
|
| 16 |
torch.cuda.max_memory_allocated(device=device)
|
| 17 |
refiner = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0").to(device)
|
| 18 |
-
refiner.enable_xformers_memory_efficient_attention()
|
| 19 |
torch.cuda.empty_cache()
|
| 20 |
|
| 21 |
|
|
|
|
| 10 |
torch.cuda.max_memory_allocated(device=device)
|
| 11 |
torch.cuda.empty_cache()
|
| 12 |
pipe = DiffusionPipeline.from_pretrained("circulus/canvers-fusionXL-v1").to(device)
|
| 13 |
+
#pipe.enable_xformers_memory_efficient_attention()
|
| 14 |
torch.cuda.empty_cache()
|
| 15 |
|
| 16 |
torch.cuda.max_memory_allocated(device=device)
|
| 17 |
refiner = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0").to(device)
|
| 18 |
+
#refiner.enable_xformers_memory_efficient_attention()
|
| 19 |
torch.cuda.empty_cache()
|
| 20 |
|
| 21 |
|