Skip to content

Commit d6484b1

Browse files
committed
Fix alpha mask flipping logic
1 parent f33e733 commit d6484b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/train_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ def __getitem__(self, index):
11651165

11661166
if subset.alpha_mask and alpha_mask is not None:
11671167
if flipped:
1168-
alpha_mask = alpha_mask[:, ::-1, :].copy()
1168+
alpha_mask = alpha_mask[:, ::-1].copy()
11691169
alpha_mask = cv2.resize(
11701170
alpha_mask, target_size, interpolation=cv2.INTER_AREA
11711171
)

0 commit comments

Comments
 (0)