Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,11 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 10 |
|
| 11 |
if torch.cuda.is_available():
|
| 12 |
torch.cuda.max_memory_allocated(device=device)
|
| 13 |
-
pipe = Transformer2DModelOutput("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16, variant="fp16"
|
| 14 |
pipe.enable_xformers_memory_efficient_attention()
|
| 15 |
pipe = pipe.to(device)
|
| 16 |
else:
|
| 17 |
-
pipe = Transformer2DModelOutput("stabilityai/stable-diffusion-3-medium-diffusers"
|
| 18 |
pipe = pipe.to(device)
|
| 19 |
|
| 20 |
MAX_SEED = np.iinfo(np.int32).max
|
|
|
|
| 10 |
|
| 11 |
if torch.cuda.is_available():
|
| 12 |
torch.cuda.max_memory_allocated(device=device)
|
| 13 |
+
pipe = Transformer2DModelOutput("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16, variant="fp16")
|
| 14 |
pipe.enable_xformers_memory_efficient_attention()
|
| 15 |
pipe = pipe.to(device)
|
| 16 |
else:
|
| 17 |
+
pipe = Transformer2DModelOutput("stabilityai/stable-diffusion-3-medium-diffusers")
|
| 18 |
pipe = pipe.to(device)
|
| 19 |
|
| 20 |
MAX_SEED = np.iinfo(np.int32).max
|