Skip to content

Commit e203462

Browse files
committed
Fix alpha_mask transformation
1 parent aee2525 commit e203462

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
@@ -1169,7 +1169,7 @@ def __getitem__(self, index):
11691169
alpha_mask = cv2.resize(
11701170
alpha_mask, target_size, interpolation=cv2.INTER_AREA
11711171
)
1172-
alpha_mask = self.image_transforms(alpha_mask)
1172+
alpha_mask = transforms.ToTensor()(alpha_mask)
11731173
alpha_mask_list.append(alpha_mask)
11741174

11751175
if not flipped:

0 commit comments

Comments
 (0)