Skip to main content

Python image augmentation

Project description

Pyimgaug3d

A 3D GPU augmentation library.

Installation

pip install pyimgaug3d

Example Usage

from pyimgaug3d.augmentation import GridWarp
from pyimgaug3d.augmenters import ImageSegmentationAugmenter

img = load_img... # shape=(H,W,D,C)
seg = load_seg... # shape=(H,W,D,C)(one hot encoded)

# This augmenter automatically rounds the segmentation mask
aug = ImageSegmentationAugmenter()
aug.add_augmentation(GridWarp(grid=(4, 5, 5), max_shift=10))

warpped_img, warpped_seg = aug([img, seg])

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

pyimgaug3d-0.3.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file pyimgaug3d-0.3.tar.gz.

File metadata

  • Download URL: pyimgaug3d-0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for pyimgaug3d-0.3.tar.gz
Algorithm Hash digest
SHA256 36174e26eb7d3ef5149516374625bbea24335ae3eab2396066c4690677449120
MD5 3b51e56c09da51372e2e85e5a2d723a8
BLAKE2b-256 f81320553fcc07924a2ecad1016719f5c7239081eb079606e0cdf63d204bbbb5

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