kohya-ss / sd-scripts

Apache License 2.0
5.31k stars 880 forks source link

Strange behavior with --network_args parameter #1624

Open codecomputation opened 2 months ago

codecomputation commented 2 months ago

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.