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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file RandAugment3d-0.0.4.1.dev0.tar.gz.

File metadata

  • Download URL: RandAugment3d-0.0.4.1.dev0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for RandAugment3d-0.0.4.1.dev0.tar.gz
Algorithm Hash digest
SHA256 15ff143515b3b906fd4d768c0020fb8cc99ef5864d46438500d846545e6a997e
MD5 97b5113948126fd9da0a52e08c8660fa
BLAKE2b-256 72c3f2e86dfb0ae10eee014d189521b9492b7eb21e16babeadf52d941007a63b

See more details on using hashes here.

File details

Details for the file RandAugment3d-0.0.4.1.dev0-py3-none-any.whl.

File metadata

  • Download URL: RandAugment3d-0.0.4.1.dev0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for RandAugment3d-0.0.4.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ee1164d5fde176a964efbe869a23e8f6c0e3007e22e1add92918653f5fa729b
MD5 d4a9d6154e9b2571cab794777f57c977
BLAKE2b-256 ee156cff801b93de027eeeef9a12ce8bf6152a5aea4eb5375026aa57b40bc236

See more details on using hashes here.

Supported by

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