Skip to content

Commit

Permalink
Merge pull request #1717 from catboxanon/fix/remove-vpred-warnings
Browse files Browse the repository at this point in the history
Remove v-pred warnings
  • Loading branch information
kohya-ss authored Oct 25, 2024
2 parents c632af8 + be14c06 commit b8ae745
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions gen_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -1495,8 +1495,6 @@ def main(args):
highres_fix = args.highres_fix_scale is not None
# assert not highres_fix or args.image_path is None, f"highres_fix doesn't work with img2img / highres_fixはimg2imgと同時に使えません"

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

Expand Down
2 changes: 0 additions & 2 deletions gen_img_diffusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2216,8 +2216,6 @@ def main(args):
highres_fix = args.highres_fix_scale is not None
# assert not highres_fix or args.image_path is None, f"highres_fix doesn't work with img2img / highres_fixはimg2imgと同時に使えません"

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

Expand Down
4 changes: 0 additions & 4 deletions library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3698,10 +3698,6 @@ def verify_training_args(args: argparse.Namespace):
global HIGH_VRAM
HIGH_VRAM = True

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

Expand Down

0 comments on commit b8ae745

Please sign in to comment.