Spaces:
Running
on
Zero
Running
on
Zero
Update app_v5.py
Browse files
app_v5.py
CHANGED
|
@@ -60,10 +60,10 @@ transformer_8bit = FluxPipeline.from_pretrained(
|
|
| 60 |
)
|
| 61 |
pipe = FluxControlNetPipeline.from_pretrained(
|
| 62 |
"LPX55/FLUX.1M-8step_upscaler-cnet",
|
| 63 |
-
torch_dtype=torch.bfloat16,
|
| 64 |
-
text_encoder_2=text_encoder_2_8b,
|
| 65 |
transformer=transformer_8bit,
|
| 66 |
-
|
|
|
|
|
|
|
| 67 |
)
|
| 68 |
pipe.to("cuda")
|
| 69 |
|
|
|
|
| 60 |
)
|
| 61 |
pipe = FluxControlNetPipeline.from_pretrained(
|
| 62 |
"LPX55/FLUX.1M-8step_upscaler-cnet",
|
|
|
|
|
|
|
| 63 |
transformer=transformer_8bit,
|
| 64 |
+
text_encoder_2=text_encoder_2_8b,
|
| 65 |
+
torch_dtype=torch.float16,
|
| 66 |
+
device_map="auto",
|
| 67 |
)
|
| 68 |
pipe.to("cuda")
|
| 69 |
|