kohya-ss / kohya-ss/sd-scripts

lora is merged to model in inference, but the model weight is unchanged

Open
#1,831 0 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

Hi@kohya-ss, sorry to interrupt you, I am very confused that in `flux_minimal_inference.py` how lora weight is merged into the original unet. The `def generate_image` does not include lora weight, whereas the output image is indeed different from the original dev output. I am a beginner to flux model and lora, could you please give me some hint? many thanks !!!!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with flux_minimal_inference.py and trace how the LoRA weight is loaded or merged in relation to generate_image. Compare that path with the unchanged model weight described in the issue; done means explaining why the output differs and whether the reported behavior is expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.