Skip to content

Commit e2e4b07

Browse files
committed
fix the flip bug
1 parent 6215075 commit e2e4b07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dataset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def __getitem__(self, index):
5050
mask = VF.hflip(mask)
5151
img = VF.hflip(img)
5252

53-
# if np.random.rand(1) > 0.5:
54-
# mask = VF.vflip(mask)
55-
# img = VF.vflip(img)
53+
if np.random.rand(1) > 0.5:
54+
mask = VF.vflip(mask)
55+
img = VF.vflip(img)
5656

5757
img = self.transform(img)
5858
mask = self.maskTransform(mask)

0 commit comments

Comments
 (0)