kohya-ss / kohya-ss/sd-scripts

Strange behavior with --network_args parameter

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

Adding --network_args to Additional Parameters, even without arguments, sets certain settings to their default or unknown values. It's not clear what these settings are.

For example, with --network_args and --cache_text_encoder_outputs added to Additional Parameters and Train T5-XXL is checked, training works. But, if you remove --network_args, the CLI will throw an error saying that --cache_text_encoder_outputs can't be set if the text encoder is trained. If you remove --cache_text_encoder_outputs and start training, the CLI will throw an OOM error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the behavior using Additional Parameters with --network_args, --cache_text_encoder_outputs, and Train T5-XXL enabled, comparing runs with and without --network_args. Trace where these CLI arguments are parsed and applied, then verify that the resulting settings and validation or OOM behavior are explicit and consistent.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.