Skip to main content

Pyimgaug3d

A 3D GPU augmentation library. This library is work-in-progress and will be constantly updated with more augmentation methods. The current supported ones are grid warp 3D, flip 3D and identity. As all the augmentation methods are implemented in TensorFlow, a Cuda compatible GPU is required to take advantage of increases speeds.

Installation

pip install pyimgaug3d

Example Usage

from pyimgaug3d.augmentation import GridWarp, Flip, Identity
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))
aug.add_augmentation(Flip(0))
aug.add_augmentation(Identity())

aug_img, aug_seg = aug([img, seg]) # call to perform augmentation, each time an augmentation method is sampled at random.

Citation

This library is published along with the following paper

S.  Liu,  W.  Dai,  C.  Engstrom,  J.  Fripp,  P.  B.  Greer,  S.  Crozier,J. A. Dowling, 
and S. S. Chandra, “Fabric Image Representation Encoding Networks for Large-scale 3D Medical 
Image Analysis,”arXiv e-prints, p. arXiv:2006.15578, Jun. 2020.

Release files for pyimgaug3d 0.43

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

Source distribution (sdist)

Source distribution for pyimgaug3d 0.43
File Size Uploaded
pyimgaug3d-0.43.tar.gz 5.7 kB Details

Release files / pyimgaug3d-0.43.tar.gz

Download URL pyimgaug3d-0.43.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
33c617307d405b0a4dfa485eb618217319299a340d69d730e13e1bb453dae6df
BLAKE2b-256 checksum
How to use checksums
7296e6b0930b2ae87e5669c8fc4db6c84b7bb6fa78f0e5cd581739c7eaae533f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.43 This release

1 release file

0.42

1 release file

0.41

1 release file

0.40

1 release file

0.33

1 release file

0.32

1 release file

0.31

1 release file

0.4

1 release file

0.3

1 release file

0.2

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