Merge branch 'kohya-ss:main' into feature/stratified_lr

This commit is contained in:
u-haru
2023-03-31 12:47:56 +09:00
committed by GitHub
3 changed files with 21 additions and 11 deletions

View File

@@ -841,7 +841,7 @@ def load_checkpoint_with_text_encoder_conversion(ckpt_path, device="cpu"):
if is_safetensors(ckpt_path):
checkpoint = None
state_dict = load_file(ckpt_path, device)
state_dict = load_file(ckpt_path) # , device) # may causes error
else:
checkpoint = torch.load(ckpt_path, map_location=device)
if "state_dict" in checkpoint: