Spaces:
Runtime error
Runtime error
lionelgarnier
commited on
Commit
·
0d131d4
1
Parent(s):
e6ef8b4
back to flux schnell
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ def get_image_gen_pipeline():
|
|
27 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
28 |
dtype = torch.bfloat16
|
29 |
_image_gen_pipeline = DiffusionPipeline.from_pretrained(
|
30 |
-
|
31 |
-
"black-forest-labs/FLUX.1-dev",
|
32 |
torch_dtype=dtype,
|
33 |
).to(device)
|
34 |
_image_gen_pipeline.enable_model_cpu_offload()
|
@@ -175,6 +175,7 @@ def preload_models():
|
|
175 |
dtype = torch.bfloat16
|
176 |
_image_gen_pipeline = DiffusionPipeline.from_pretrained(
|
177 |
"black-forest-labs/FLUX.1-schnell",
|
|
|
178 |
torch_dtype=dtype
|
179 |
).to(device)
|
180 |
|
|
|
27 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
28 |
dtype = torch.bfloat16
|
29 |
_image_gen_pipeline = DiffusionPipeline.from_pretrained(
|
30 |
+
"black-forest-labs/FLUX.1-schnell",
|
31 |
+
# "black-forest-labs/FLUX.1-dev",
|
32 |
torch_dtype=dtype,
|
33 |
).to(device)
|
34 |
_image_gen_pipeline.enable_model_cpu_offload()
|
|
|
175 |
dtype = torch.bfloat16
|
176 |
_image_gen_pipeline = DiffusionPipeline.from_pretrained(
|
177 |
"black-forest-labs/FLUX.1-schnell",
|
178 |
+
# "black-forest-labs/FLUX.1-dev",
|
179 |
torch_dtype=dtype
|
180 |
).to(device)
|
181 |
|