Skip to main content

Implementation of RandAugment in 3D

Project description

RandAugment-3D

Implementation of RandAugment in 3D

Original paper: arXiv:1909.13719

Original implementations (in tensorflow):

Most functions used here are implemented by MONAI.

Installation

pip install RandAugment3d

How to use

Args:

  • n: number of augmentations to apply
  • magnitude: magnitude of augmentations to apply, on a scale where 10 is full level (this scale is used to be as similar as possible to the original implementation). Values > 10 result in more distortion, values < 10 in less.
  • excluded_operations: list of names of the excluded operations. Valid names are listed above.

operations names: ['identity', 'rotate_x', 'rotate_y', 'rotate_z', 'translate', 'scale', 'shear_x', 'shear_y', 'shear_z', 'shiftIntensity', 'equalize', 'solarize', 'histogramShift', 'sharpen', 'adjustContrast']

augment = RandAugment3D(n=2, magnitude=10)

Geometric Augmentations only

augment = RandAugment3D(n=2, magnitude=10, excluded_operations=['shiftIntensity',
                                                  'equalize',
                                                  'solarize',
                                                  'histogramShift',
                                                  'sharpen',
                                                  'adjustContrast'])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RandAugment3d-0.0.4.1.dev0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

RandAugment3d-0.0.4.1.dev0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page