kohya-ss / kohya-ss/sd-scripts

how to use flux loras with text encoder keys with diffusers?

Open
#1,803 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.2k
Forks
1.2k
Avg merge
11m
Merged PRs (30d)
2

Description

resulting lora weights from setting train text encoder to true is incompatible with diffusers load_lora_weights. the script networks/convert_flux_lora.py does not convert the text encoder keys either.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with networks/convert_flux_lora.py and trace how it handles LoRA keys when the text encoder is trained. Compare the resulting keys with the format expected by diffusers load_lora_weights. Done means converted weights that include compatible text encoder keys and can be loaded successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.