Skip to content

Commit

Permalink
add .pt and .pth for available extension
Browse files Browse the repository at this point in the history
  • Loading branch information
kohya-ss committed Sep 24, 2023
1 parent 33e90cc commit 55886a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions networks/resize_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ def resize_lora_model(lora_sd, new_rank, save_dtype, device, dynamic_method, dyn


def resize(args):
if args.save_to is None or not (args.save_to.endswith('.ckpt') or args.save_to.endswith('.safetensors')):
raise Exception("The --save_to argument must be specified and must be a .ckpt or .safetensors file.")
if args.save_to is None or not (args.save_to.endswith('.ckpt') or args.save_to.endswith('.pt') or args.save_to.endswith('.pth') or args.save_to.endswith('.safetensors')):
raise Exception("The --save_to argument must be specified and must be a .ckpt , .pt, .pth or .safetensors file.")


def str_to_dtype(p):
Expand Down

0 comments on commit 55886a0

Please sign in to comment.