LPX55 commited on
Commit
67dc795
Β·
verified Β·
1 Parent(s): a894105

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.5])
85
- pipe.fuse_lora(lora_scale=0.5)
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