Skip to content

Commit

Permalink
Bug fix: alpha_mask load
Browse files Browse the repository at this point in the history
  • Loading branch information
Maru-mee committed Sep 19, 2024
1 parent 93d9fbf commit e704066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e704066

Please sign in to comment.