Skip to content

Commit b8ae745

Browse files
authored
Merge pull request kohya-ss#1717 from catboxanon/fix/remove-vpred-warnings
Remove v-pred warnings
2 parents c632af8 + be14c06 commit b8ae745

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

gen_img.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,8 +1495,6 @@ def main(args):
14951495
highres_fix = args.highres_fix_scale is not None
14961496
# assert not highres_fix or args.image_path is None, f"highres_fix doesn't work with img2img / highres_fixはimg2imgと同時に使えません"
14971497

1498-
if args.v_parameterization and not args.v2:
1499-
logger.warning("v_parameterization should be with v2 / v1でv_parameterizationを使用することは想定されていません")
15001498
if args.v2 and args.clip_skip is not None:
15011499
logger.warning("v2 with clip_skip will be unexpected / v2でclip_skipを使用することは想定されていません")
15021500

gen_img_diffusers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,8 +2216,6 @@ def main(args):
22162216
highres_fix = args.highres_fix_scale is not None
22172217
# assert not highres_fix or args.image_path is None, f"highres_fix doesn't work with img2img / highres_fixはimg2imgと同時に使えません"
22182218

2219-
if args.v_parameterization and not args.v2:
2220-
logger.warning("v_parameterization should be with v2 / v1でv_parameterizationを使用することは想定されていません")
22212219
if args.v2 and args.clip_skip is not None:
22222220
logger.warning("v2 with clip_skip will be unexpected / v2でclip_skipを使用することは想定されていません")
22232221

library/train_util.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3698,10 +3698,6 @@ def verify_training_args(args: argparse.Namespace):
36983698
global HIGH_VRAM
36993699
HIGH_VRAM = True
37003700

3701-
if args.v_parameterization and not args.v2:
3702-
logger.warning(
3703-
"v_parameterization should be with v2 not v1 or sdxl / v1やsdxlでv_parameterizationを使用することは想定されていません"
3704-
)
37053701
if args.v2 and args.clip_skip is not None:
37063702
logger.warning("v2 with clip_skip will be unexpected / v2でclip_skipを使用することは想定されていません")
37073703

0 commit comments

Comments
 (0)