Skip to main content

Voxelmentations

Python version support PyPI version Downloads

Voxelmentations is a Python library for 3d image (voxel) augmentation. Voxel augmentation is used in deep learning to increase the quality of trained models. The purpose of voxel augmentation is to create new training samples from the existing data.

Here is an example of how you can apply some augmentations from voxelmentations to create new voxel from the original one:

Table of contents

Authors

Rostislav Epifanov — Researcher in Novosibirsk

Installation

Installation from PyPI:

pip install voxelmentations

Installation from GitHub:

pip install git+https://github.com/rostepifanov/voxelmentations

A simple example

import numpy as np
import voxelmentations as V

# Declare an augmentation pipeline
transform = V.Sequential([
    V.Flip(p=0.5),
])

# Create example 3d image (height, width, depth, nchannels)
input = np.ones((32, 32, 32, 1))

# Augment exg
transformed = transform(voxel=input)
output = transformed['voxel']

List of augmentations

The list of transforms:

Citing

If you find this library useful for your research, please consider citing:

@misc{epifanov2024exgment,
  Author = {Rostislav Epifanov},
  Title = {voxelmentations},
  Year = {2024},
  Publisher = {GitHub},
  Journal = {GitHub repository},
  Howpublished = {\url{https://github.com/rostepifanov/voxelmentations}}
}

Release files for voxelmentations 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for voxelmentations 0.0.1
File Interpreter ABI Platform
voxelmentations-0.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / voxelmentations-0.0.1-py2.py3-none-any.whl

Download URL voxelmentations-0.0.1-py2.py3-none-any.whl
Size 38.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d65af928e68387c56c92870e7c343e0e761b5030f65252e42c5fec82e4fb20ae
BLAKE2b-256 checksum
How to use checksums
d64770863354dacb13bac423ed70ca0c2a1fbf295fa88bfd098251894d6560e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page