# Generating augmented training data from nrrd file using random translations, rotations, and deformations

**URL:** https://discourse.slicer.org/t/generating-augmented-training-data-from-nrrd-file-using-random-translations-rotations-and-deformations/11810
**Category:** Support
**Tags:** deep-learning
**Created:** [May 31, 2020, 4:09pm UTC](https://discourse.slicer.org/t/generating-augmented-training-data-from-nrrd-file-using-random-translations-rotations-and-deformations/11810 "2020-05-31T16:09:48Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [June 3, 2020, 3:58pm UTC](https://discourse.slicer.org/t/generating-augmented-training-data-from-nrrd-file-using-random-translations-rotations-and-deformations/11810/8 "2020-06-03T15:58:46Z")

</div>

I’ve updated the volume augmentation script to apply random translations and rotations in addition to the random deformations, and to also take screenshots so that you can get a quick overview of how the augmented data looks like.

Gallery of example output:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/9/997a93c14e8d46858b371c0bb1ce5d88c278940b.jpeg)

Script that generated it:

> <https://gist.github.com/lassoan/428af5285da75dc033d32ebff65ba940>

---

_[View the full topic](https://discourse.slicer.org/t/generating-augmented-training-data-from-nrrd-file-using-random-translations-rotations-and-deformations/11810)._
