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.32.tar.gz
(4.4 kB
view details)
File details
Details for the file pyimgaug3d-0.32.tar.gz.
File metadata
- Download URL: pyimgaug3d-0.32.tar.gz
- Upload date:
- Size: 4.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/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6b8c194a8bf0ada736b9492bfed0e4be568721996949ab72cc98256c9e1ad08
|
|
| MD5 |
5f85348a4313d7150fb561f7ce969a1b
|
|
| BLAKE2b-256 |
98abccbf3a698c05f8220e6573cae6e9c7ae4b3396d7349c95e2605d40d4d89d
|