In-Context generation: allow lora composition
This commit is contained in:
parent
bf977e80a0
commit
8b828ced27
@ -85,7 +85,7 @@ class FluxInitializer:
|
||||
lora_weights = WeightHandlerLoRA.load_lora_weights(
|
||||
transformer=flux_model.transformer,
|
||||
lora_files=lora_paths + hf_lora_paths,
|
||||
lora_scales=lora_scales,
|
||||
lora_scales=lora_scales + [1.0] * len(hf_lora_paths),
|
||||
)
|
||||
WeightHandlerLoRA.set_lora_weights(
|
||||
transformer=flux_model.transformer,
|
||||
|
||||
@ -25,7 +25,7 @@ def main():
|
||||
quantize=args.quantize,
|
||||
lora_names=[get_lora_filename(args.lora_style)] if args.lora_style else None,
|
||||
lora_repo_id=LORA_REPO_ID if args.lora_style else None,
|
||||
lora_paths=args.lora_paths if not args.lora_style else None,
|
||||
lora_paths=args.lora_paths,
|
||||
lora_scales=args.lora_scales,
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user