Bug fix: alpha_mask load

This commit is contained in:
Maru-mee
2024-09-19 15:47:06 +09:00
committed by GitHub
parent 93d9fbf607
commit e7040669bc

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:
if "alpha_mask" not in npz: if "alpha_mask" not in npz:
return False 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 return False
else: else:
if "alpha_mask" in npz: if "alpha_mask" in npz: