Skip to content

Commit

Permalink
Fix rotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tibuch authored Oct 5, 2022
1 parent 847d9bf commit 92d2c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cryocare/internals/CryoCAREDataModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def augment(self, x, y):
rot_k = np.random.randint(0, 4, x.shape[0])

for i in range(x.shape[0]):
x[i] = np.rot90(x[i], k=rot_k[i], axes=self.rot_axes)
y[i] = np.rot90(y[i], k=rot_k[i], axes=self.rot_axes)
x[i,...,0] = np.rot90(x[i,...,0], k=rot_k[i], axes=self.rot_axes)
y[i,...,0] = np.rot90(y[i,...,0], k=rot_k[i], axes=self.rot_axes)


if np.random.rand() > 0.5:
Expand Down

0 comments on commit 92d2c5f

Please sign in to comment.