Merge pull request #1615 from Maru-mee/patch-1

Bug fix: alpha_mask load
This commit is contained in:
Kohya S.
2024-09-19 21:49:49 +09:00
committed by GitHub

View File

@@ -2207,7 +2207,7 @@ def is_disk_cached_latents_is_expected(reso, npz_path: str, flip_aug: bool, alph
if alpha_mask:
if "alpha_mask" not in npz:
return False
if npz["alpha_mask"].shape[0:2] != reso: # HxW
if (npz["alpha_mask"].shape[1], npz["alpha_mask"].shape[0]) != reso: # HxW => WxH != reso
return False
else:
if "alpha_mask" in npz: