changed from cuda to balanced in Flux2Pipeline
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ try:
|
|
| 44 |
repo_id,
|
| 45 |
text_encoder=None,
|
| 46 |
torch_dtype=torch_dtype,
|
| 47 |
-
device_map="
|
| 48 |
)
|
| 49 |
if not torch.cuda.is_available():
|
| 50 |
pipe = pipe.to(device)
|
|
|
|
| 44 |
repo_id,
|
| 45 |
text_encoder=None,
|
| 46 |
torch_dtype=torch_dtype,
|
| 47 |
+
device_map="balanced"
|
| 48 |
)
|
| 49 |
if not torch.cuda.is_available():
|
| 50 |
pipe = pipe.to(device)
|