mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-18 01:30:02 +00:00
Add network_args to meta if using another network
This commit is contained in:
@@ -427,9 +427,9 @@ def train(args):
|
|||||||
"ss_bucket_info": json.dumps(dataset.bucket_info),
|
"ss_bucket_info": json.dumps(dataset.bucket_info),
|
||||||
}
|
}
|
||||||
|
|
||||||
# uncomment if another network is added
|
if args.network_args:
|
||||||
# for key, value in net_kwargs.items():
|
for key, value in net_kwargs.items():
|
||||||
# metadata["ss_arg_" + key] = value
|
metadata["ss_arg_" + key] = value
|
||||||
|
|
||||||
if args.pretrained_model_name_or_path is not None:
|
if args.pretrained_model_name_or_path is not None:
|
||||||
sd_model_name = args.pretrained_model_name_or_path
|
sd_model_name = args.pretrained_model_name_or_path
|
||||||
|
|||||||
Reference in New Issue
Block a user