Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ pipe = FluxControlNetInpaintingPipeline.from_pretrained(
|
|
| 72 |
|
| 73 |
token=HF_TOKEN
|
| 74 |
)
|
| 75 |
-
pipe.text_encoder_2 = text_encoder_2_4bit
|
| 76 |
# pipe.transformer = transformer_4bit
|
| 77 |
|
| 78 |
|
|
@@ -81,8 +81,8 @@ pipe.controlnet.to(torch.bfloat16)
|
|
| 81 |
|
| 82 |
pipe.to("cuda")
|
| 83 |
pipe.load_lora_weights("alimama-creative/FLUX.1-Turbo-Alpha", adapter_name="turbo")
|
| 84 |
-
pipe.set_adapters(["turbo"], adapter_weights=[0.
|
| 85 |
-
pipe.fuse_lora(lora_scale=
|
| 86 |
pipe.unload_lora_weights()
|
| 87 |
|
| 88 |
# We can utilize the enable_group_offload method for Diffusers model implementations
|
|
|
|
| 72 |
|
| 73 |
token=HF_TOKEN
|
| 74 |
)
|
| 75 |
+
# pipe.text_encoder_2 = text_encoder_2_4bit
|
| 76 |
# pipe.transformer = transformer_4bit
|
| 77 |
|
| 78 |
|
|
|
|
| 81 |
|
| 82 |
pipe.to("cuda")
|
| 83 |
pipe.load_lora_weights("alimama-creative/FLUX.1-Turbo-Alpha", adapter_name="turbo")
|
| 84 |
+
pipe.set_adapters(["turbo"], adapter_weights=[0.95])
|
| 85 |
+
pipe.fuse_lora(lora_scale=1)
|
| 86 |
pipe.unload_lora_weights()
|
| 87 |
|
| 88 |
# We can utilize the enable_group_offload method for Diffusers model implementations
|