Skip to main content

Point augmentations library as hard-fork of albu-team/albumentations

Project description

Tests Codecov PyPI Documentation Status Code Style: Black Downloads CodeFactor Maintainability

logo Volumentations

augmented_teapot

Python library for 3d data augmentaiton. Hard fork from alumentations.

For more information on available augmentations check documentation.

Or, check simple example in colab: Open In Colab

Setup

pip install volumentations

Usage example

import volumentations as V
import numpy as np

augmentation = V.Compose(
    [
        V.Scale3d(scale_limit=(0.2, 0.2, 0.1), p=0.75),
        V.OneOrOther(
            V.Compose(
                [
                    V.RotateAroundAxis3d(
                        rotation_limit=np.pi, axis=(0, 0, 1), always_apply=True
                    ),
                    V.RotateAroundAxis3d(
                        rotation_limit=np.pi / 3, axis=(0, 1, 0), always_apply=True
                    ),
                    V.RotateAroundAxis3d(
                        rotation_limit=np.pi / 3, axis=(1, 0, 0), always_apply=True
                    ),
                ],
                p=1,
            ),
            V.Flip3d(axis=(0, 0, 1)),
        ),
        V.OneOf(
            [
                V.RandomDropout3d(dropout_ratio=0.2, p=0.75),
                V.RandomDropout3d(dropout_ratio=0.3, p=0.5),
            ]
        ),
    ]
)

augmented_teapot = augmentation(points=teapot.copy())["points"]
show_augmentation(teapot, augmented_teapot)

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

volumentations-0.1.8.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

volumentations-0.1.8-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file volumentations-0.1.8.tar.gz.

File metadata

  • Download URL: volumentations-0.1.8.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.7 Linux/5.4.0-1036-azure

File hashes

Hashes for volumentations-0.1.8.tar.gz
Algorithm Hash digest
SHA256 829c763d941ee0383f34f8e9a675e44e4b7e579c6881fbac222d0e2d97efbef6
MD5 24a84677e82346b307628dd011674411
BLAKE2b-256 202753b43416ee3527ea3e3541d91deb8c545470f9906af7aa653768c85482de

See more details on using hashes here.

File details

Details for the file volumentations-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: volumentations-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.7 Linux/5.4.0-1036-azure

File hashes

Hashes for volumentations-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6fe97767e4672418ad6e32a644f8242caaefe31f857cc2feafa00e7f416a236f
MD5 0dd6c2a320f13be2d58d8fd55deec871
BLAKE2b-256 5186e7bec098d5fb02f7e041ecbea06992028324bd1a67c9e18c210e42ff6664

See more details on using hashes here.

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