Skip to content

Commit

Permalink
Disable ghosting augmentation to check motion in isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Dec 14, 2021
1 parent 494ca43 commit 61ceb84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miqa/learning/nn_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def create_train_and_test_data_loaders(df, count_train):
ghosting = CustomGhosting(p=0.3, intensity=(0.2, 0.8))
motion = CustomMotion(p=0.2, degrees=5.0, translation=5.0, num_transforms=1)
# transforms = torchio.Compose([rescale, ghosting, motion])
transforms = torchio.Compose([rescale, ghosting])
transforms = torchio.Compose([rescale, motion])

# create a training data loader
train_ds = torchio.SubjectsDataset(train_files, transform=transforms)
Expand Down

0 comments on commit 61ceb84

Please sign in to comment.