Skip to content

Commit

Permalink
Merge branch 'f/Fix_augmentation_setup' into 'main'
Browse files Browse the repository at this point in the history
Uncomment self.augmentations in image classifier

See merge request es/ai/hannah/hannah!372
  • Loading branch information
cgerum committed Feb 27, 2024
2 parents ebebd62 + cf7159c commit a043851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hannah/modules/vision/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,11 @@ def setup_augmentations(self, pipeline_configs):

self.default_augmentation = torch.nn.Sequential(*default_augment)
augmentations = {k: torch.nn.Sequential(*v) for k, v in augmentations.items()}

self.augmentations = torch.nn.ModuleDict(augmentations)

return augmentations

# self.augmentations = torch.nn.ModuleDict(augmentations)

def _get_dataloader(self, dataset, unlabeled_data=None, shuffle=False):
batch_size = self.hparams["batch_size"]
Expand Down

0 comments on commit a043851

Please sign in to comment.