diff options
author | Volpeon <git@volpeon.ink> | 2023-06-22 07:34:04 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-06-22 07:34:04 +0200 |
commit | 11b7740deeef7903e81ba4c65a45853323a5fd5e (patch) | |
tree | 0d5eec0e574447afe80538252884e0093742e3cb /train_lora.py | |
parent | Remove convnext (diff) | |
download | textual-inversion-diff-11b7740deeef7903e81ba4c65a45853323a5fd5e.tar.gz textual-inversion-diff-11b7740deeef7903e81ba4c65a45853323a5fd5e.tar.bz2 textual-inversion-diff-11b7740deeef7903e81ba4c65a45853323a5fd5e.zip |
Remove training guidance_scale
Diffstat (limited to 'train_lora.py')
-rw-r--r-- | train_lora.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/train_lora.py b/train_lora.py index b7ee2d6..51dc827 100644 --- a/train_lora.py +++ b/train_lora.py | |||
@@ -207,11 +207,6 @@ def parse_args(): | |||
207 | help="Shuffle tags.", | 207 | help="Shuffle tags.", |
208 | ) | 208 | ) |
209 | parser.add_argument( | 209 | parser.add_argument( |
210 | "--guidance_scale", | ||
211 | type=float, | ||
212 | default=0, | ||
213 | ) | ||
214 | parser.add_argument( | ||
215 | "--num_class_images", | 210 | "--num_class_images", |
216 | type=int, | 211 | type=int, |
217 | default=0, | 212 | default=0, |
@@ -998,7 +993,6 @@ def main(): | |||
998 | dtype=weight_dtype, | 993 | dtype=weight_dtype, |
999 | seed=args.seed, | 994 | seed=args.seed, |
1000 | compile_unet=args.compile_unet, | 995 | compile_unet=args.compile_unet, |
1001 | guidance_scale=args.guidance_scale, | ||
1002 | prior_loss_weight=args.prior_loss_weight if args.num_class_images != 0 else 0, | 996 | prior_loss_weight=args.prior_loss_weight if args.num_class_images != 0 else 0, |
1003 | sample_scheduler=sample_scheduler, | 997 | sample_scheduler=sample_scheduler, |
1004 | sample_batch_size=args.sample_batch_size, | 998 | sample_batch_size=args.sample_batch_size, |
@@ -1022,7 +1016,6 @@ def main(): | |||
1022 | tokenizer=tokenizer, | 1016 | tokenizer=tokenizer, |
1023 | constant_prompt_length=args.compile_unet, | 1017 | constant_prompt_length=args.compile_unet, |
1024 | class_subdir=args.class_image_dir, | 1018 | class_subdir=args.class_image_dir, |
1025 | with_guidance=args.guidance_scale != 0, | ||
1026 | num_class_images=args.num_class_images, | 1019 | num_class_images=args.num_class_images, |
1027 | size=args.resolution, | 1020 | size=args.resolution, |
1028 | num_buckets=args.num_buckets, | 1021 | num_buckets=args.num_buckets, |