diff options
author | Volpeon <git@volpeon.ink> | 2023-02-16 09:16:05 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-02-16 09:16:05 +0100 |
commit | d673760fc671d665aadae3b032f8e99f21ab986d (patch) | |
tree | 7c14a998742b19ddecac6ee25a669892b41c305e /train_dreambooth.py | |
parent | Update (diff) | |
download | textual-inversion-diff-d673760fc671d665aadae3b032f8e99f21ab986d.tar.gz textual-inversion-diff-d673760fc671d665aadae3b032f8e99f21ab986d.tar.bz2 textual-inversion-diff-d673760fc671d665aadae3b032f8e99f21ab986d.zip |
Integrated WIP UniPC scheduler
Diffstat (limited to 'train_dreambooth.py')
-rw-r--r-- | train_dreambooth.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/train_dreambooth.py b/train_dreambooth.py index 4c1ec31..5a7911c 100644 --- a/train_dreambooth.py +++ b/train_dreambooth.py | |||
@@ -375,7 +375,7 @@ def parse_args(): | |||
375 | parser.add_argument( | 375 | parser.add_argument( |
376 | "--sample_steps", | 376 | "--sample_steps", |
377 | type=int, | 377 | type=int, |
378 | default=20, | 378 | default=10, |
379 | help="Number of steps for sample generation. Higher values will result in more detailed samples, but longer runtimes.", | 379 | help="Number of steps for sample generation. Higher values will result in more detailed samples, but longer runtimes.", |
380 | ) | 380 | ) |
381 | parser.add_argument( | 381 | parser.add_argument( |
@@ -511,6 +511,7 @@ def main(): | |||
511 | dtype=weight_dtype, | 511 | dtype=weight_dtype, |
512 | with_prior_preservation=args.num_class_images != 0, | 512 | with_prior_preservation=args.num_class_images != 0, |
513 | prior_loss_weight=args.prior_loss_weight, | 513 | prior_loss_weight=args.prior_loss_weight, |
514 | no_val=args.valid_set_size == 0, | ||
514 | ) | 515 | ) |
515 | 516 | ||
516 | checkpoint_output_dir = output_dir / "model" | 517 | checkpoint_output_dir = output_dir / "model" |