Skip to content

Commit

Permalink
Merge pull request #8 from geoaigroup/aghand0ur-patch-1
Browse files Browse the repository at this point in the history
Reverting to intial TorchRandomRotate as in NasaHarvest
  • Loading branch information
MhmdDimassi authored Dec 18, 2023
2 parents 2887fb2 + 219826e commit d911639
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions data_processing/augmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ def get_params(degrees) -> float:
@torch.no_grad()
def __call__(self,img,mask=None):

# batch_size = img.shape[0]
batch_size=img.width
print(batch_size)
batch_size = img.shape[0]

for i in range(batch_size):

if random.random() > self.proba:
Expand Down

0 comments on commit d911639

Please sign in to comment.