write a random seed to metadata

This commit is contained in:
ddPn08
2023-03-30 16:49:03 +09:00
parent 45381b188c
commit a7d302e196

View File

@@ -57,8 +57,9 @@ def train(args):
use_dreambooth_method = args.in_json is None use_dreambooth_method = args.in_json is None
use_user_config = args.dataset_config is not None use_user_config = args.dataset_config is not None
if args.seed is not None: if args.seed is None:
set_seed(args.seed) args.seed = random.randint(0, 2**32)
set_seed(args.seed)
tokenizer = train_util.load_tokenizer(args) tokenizer = train_util.load_tokenizer(args)