MIC-DKFZ / nnUNet

Apache License 2.0
5.57k stars 1.7k forks source link

Data Augmentation Export? #2360

Closed sjanko2-vt closed 3 weeks ago

sjanko2-vt commented 1 month ago

Hello all,

I am so excited to be using this tool and was super impressed from the results of my first model!

I am working with a small dataset, so I believe getting an understanding of data augmentation and modifications I can make will be useful for fine tuning my models. I have read quite a bit about data augmentation through custom trainer classes via the documentation and other user's questions. I'd like to try modifying data augmentation settings, but I am new to this space and don't understand the parameters yet.

Thanks so much for your time!

sten2lu commented 1 month ago

Hi @sjanko2-vt ,

we are happy that you enjoy using nnU-Net.

Generally, the transformations used during training by nnU-Net are defined in the nnUNetTrainer.get_training_transforms.

To answer your questions concretely:

  1. nnU-Net does not have a inbuilt tool to export augmented data, but you can check the data obtained from the dataloader by saving and plotting them.
  2. The total number and kind of data augmentations can also be read out in the trainer. They are applied during training stochastically based on rng.
  3. There is no such functionality at the moment. The data augmentations used by nnU-Net are defined in the trainer, so you will be able to see them there.

Best regards,

Carsten