Merge pull request #255 from Isotr0py/dev

Add network_args to metadata if using another network
This commit is contained in:
Kohya S
2023-03-06 17:46:45 +09:00
committed by GitHub

View File

@@ -427,9 +427,9 @@ def train(args):
"ss_bucket_info": json.dumps(dataset.bucket_info),
}
# uncomment if another network is added
# for key, value in net_kwargs.items():
# metadata["ss_arg_" + key] = value
if args.network_args:
for key, value in net_kwargs.items():
metadata["ss_arg_" + key] = value
if args.pretrained_model_name_or_path is not None:
sd_model_name = args.pretrained_model_name_or_path