kohya-ss / kohya-ss/sd-scripts

The results of flux_minimal_inference are much worse than webui forge

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

Description

When I fixed the seed, there was a big gap between the image obtained using flux_minimal_inference.py inference and the image obtained using webui forge. The quality of the image obtained by flux_minimal_inference.py was lower than that of forge. What is the reason? I am training flux. When lora is used, the image obtained by sample may also be of low quality. The machine used both times is the same

This is the script I run. In flux_minimal_inference.py I set both target_height and target_width to 512
`python ./flux_minimal_inference.py \
--ckpt_path=$pretrained_model_name_or_path \
--clip_l=$clip_l \
--t5xxl=$t5xxl \
--ae=$ae \
--prompt="coffee table,pendant lamp,l-shaped sofa,lazy sofa" \
--output_dir=$output_dir \
--flux_dtype=fp8 \
--seed=1 \
--steps=20 \
--guidance=3.5 \
--cfg_scale=1.0 \
--offload`

The results obtained are as follows
image

Below is the result I got in forge
image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with flux_minimal_inference.py and reproduce the reported command using the fixed seed, 512x512 dimensions, and listed model inputs. Compare its settings and output against the webui forge run, then trace the inference differences. Done means identifying the cause of the quality gap and documenting a reproducible correction or limitation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.