Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from diffusers import StableDiffusion3Pipeline
|
|
9 |
device = 'cuda' #if torch.cuda.is_available() else 'cpu'
|
10 |
torch.cuda.max_memory_allocated(device=device)
|
11 |
torch.cuda.empty_cache()
|
12 |
-
SD3 =
|
13 |
SD3.enable_xformers_memory_efficient_attention()
|
14 |
SD3 = SD3.to(device)
|
15 |
|
|
|
9 |
device = 'cuda' #if torch.cuda.is_available() else 'cpu'
|
10 |
torch.cuda.max_memory_allocated(device=device)
|
11 |
torch.cuda.empty_cache()
|
12 |
+
SD3 = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16)
|
13 |
SD3.enable_xformers_memory_efficient_attention()
|
14 |
SD3 = SD3.to(device)
|
15 |
|