bhimrazy commited on
Commit
159c02d
·
1 Parent(s): 3df7bb0

updates the dataset file

Browse files
Files changed (1) hide show
  1. src/dataset.py +2 -2
src/dataset.py CHANGED
@@ -78,7 +78,7 @@ class DRDataModule(L.LightningDataModule):
78
  # Define the transformations
79
  self.train_transform = T.Compose(
80
  [
81
- T.Resize((512, 512), antialias=True),
82
  T.RandomAffine(degrees=10, translate=(0.01, 0.01), scale=(0.99, 1.01)),
83
  T.ColorJitter(brightness=0.4, contrast=0.4, saturation=0.2, hue=0.01),
84
  T.RandomHorizontalFlip(p=0.5),
@@ -89,7 +89,7 @@ class DRDataModule(L.LightningDataModule):
89
 
90
  self.val_transform = T.Compose(
91
  [
92
- T.Resize((512, 512), antialias=True),
93
  T.ToDtype(torch.float32, scale=True),
94
  T.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
95
  ]
 
78
  # Define the transformations
79
  self.train_transform = T.Compose(
80
  [
81
+ T.Resize((224, 224), antialias=True),
82
  T.RandomAffine(degrees=10, translate=(0.01, 0.01), scale=(0.99, 1.01)),
83
  T.ColorJitter(brightness=0.4, contrast=0.4, saturation=0.2, hue=0.01),
84
  T.RandomHorizontalFlip(p=0.5),
 
89
 
90
  self.val_transform = T.Compose(
91
  [
92
+ T.Resize((224, 224), antialias=True),
93
  T.ToDtype(torch.float32, scale=True),
94
  T.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
95
  ]