Skip to content

Commit

Permalink
fix the flip bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seanXYZ committed Jun 25, 2019
1 parent 6215075 commit e2e4b07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def __getitem__(self, index):
mask = VF.hflip(mask)
img = VF.hflip(img)

# if np.random.rand(1) > 0.5:
# mask = VF.vflip(mask)
# img = VF.vflip(img)
if np.random.rand(1) > 0.5:
mask = VF.vflip(mask)
img = VF.vflip(img)

img = self.transform(img)
mask = self.maskTransform(mask)
Expand Down

0 comments on commit e2e4b07

Please sign in to comment.