开源软件名称(OpenSource Name): aleju/imgaug开源软件地址(OpenSource Url): https://github.com/aleju/imgaug开源编程语言(OpenSource Language):
Python
100.0%
开源软件介绍(OpenSource Introduction): imgaug
This python library helps you with augmenting images for your machine learning projects.
It converts a set of input images into a new, much larger set of slightly altered images.
Image
Heatmaps
Seg. Maps
Keypoints
Bounding Boxes, Polygons
Original Input
Gauss. Noise + Contrast + Sharpen
Affine
Crop + Pad
Fliplr + Perspective
More (strong) example augmentations of one input image:
Table of Contents
Features
Installation
Documentation
Recent Changes
Example Images
Code Examples
Citation
Features
Many augmentation techniques
E.g. affine transformations, perspective transformations, contrast changes, gaussian noise, dropout of regions, hue/saturation changes, cropping/padding, blurring, ...
Optimized for high performance
Easy to apply augmentations only to some images
Easy to apply augmentations in random order
Support for
Images (full support for uint8, for other dtypes see documentation )
Heatmaps (float32), Segmentation Maps (int), Masks (bool)
May be smaller/larger than their corresponding images. No extra lines of code needed for e.g. crop.
Keypoints/Landmarks (int/float coordinates)
Bounding Boxes (int/float coordinates)
Polygons (int/float coordinates)
Line Strings (int/float coordinates)
Automatic alignment of sampled random values
Example: Rotate image and segmentation map on it by the same value sampled from uniform(-10°, 45°)
. (0 extra lines of code.)
Probability distributions as parameters
Example: Rotate images by values sampled from uniform(-10°, 45°)
.
Example: Rotate images by values sampled from ABS(N(0, 20.0))*(1+B(1.0, 1.0))
", where ABS(.)
is the absolute function, N(.)
the gaussian distribution and B(.)
the beta distribution.
Many helper functions
Example: Draw heatmaps, segmentation maps, keypoints, bounding boxes, ...
Example: Scale segmentation maps, average/max pool of images/maps, pad images to aspect
ratios (e.g. to square them)
Example: Convert keypoints to distance maps, extract pixels within bounding boxes from images, clip polygon to the image plane, ...
Support for augmentation on multiple CPU cores
Installation
The library supports python 2.7 and 3.4+.
Installation: Anaconda
To install the library in anaconda, perform the following commands:
conda config --add channels conda-forge
conda install imgaug
You can deinstall the library again via conda remove imgaug
.
Installation: pip
Then install imgaug either via pypi (can lag behind the github version):
or install the latest version directly from github:
pip install git+https://github.com/aleju/imgaug.git
For more details, see the install guide
To deinstall the library, just execute pip uninstall imgaug
.
Documentation
Example jupyter notebooks:
More notebooks: imgaug-doc/notebooks .
Example ReadTheDocs pages:
More RTD documentation: imgaug.readthedocs.io .
All documentation related files of this project are hosted in the
repository imgaug-doc .
Recent Changes
0.4.0 : Added new augmenters, changed backend to batchwise augmentation,
support for numpy 1.18 and python 3.8.
0.3.0 : Reworked segmentation map augmentation, adapted to numpy 1.17+
random number sampling API, several new augmenters.
0.2.9 : Added polygon augmentation, added line string augmentation,
simplified augmentation interface.
0.2.8 : Improved performance, dtype support and multicore augmentation.
See changelogs/ for more details.
Example Images
The images below show examples for most augmentation techniques.
Values written in the form (a, b)
denote a uniform distribution,
i.e. the value is randomly picked from the interval [a, b]
.
Line strings are supported by (almost) all augmenters, but are not explicitly
visualized here.
meta
Identity
ChannelShuffle
See also: Sequential , SomeOf , OneOf , Sometimes , WithChannels , Lambda , AssertLambda , AssertShape , RemoveCBAsByOutOfImageFraction , ClipCBAsToImagePlanes
arithmetic
Add
Add (per_channel=True)
AdditiveGaussianNoise
AdditiveGaussianNoise (per_channel=True)
Multiply
Cutout
Dropout
CoarseDropout (p=0.2)
CoarseDropout (p=0.2, per_channel=True)
Dropout2d
SaltAndPepper
CoarseSaltAndPepper (p=0.2)
Invert
Solarize
JpegCompression
See also: AddElementwise , AdditiveLaplaceNoise , AdditivePoissonNoise , MultiplyElementwise , TotalDropout , ReplaceElementwise , ImpulseNoise , Salt , Pepper , CoarseSalt , CoarsePepper , Solarize
artistic
Cartoon
blend
BlendAlpha with EdgeDetect(1.0)
BlendAlphaSimplexNoise with EdgeDetect(1.0)
BlendAlphaFrequencyNoise with EdgeDetect(1.0)
BlendAlphaSomeColors with RemoveSaturation(1.0)
BlendAlphaRegularGrid with Multiply((0.0, 0.5))
See also: BlendAlphaMask , BlendAlphaElementwise , BlendAlphaVerticalLinearGradient , BlendAlphaHorizontalLinearGradient , BlendAlphaSegMapClassIds , BlendAlphaBoundingBoxes , BlendAlphaCheckerboard , SomeColorsMaskGen , HorizontalLinearGradientMaskGen , VerticalLinearGradientMaskGen , RegularGridMaskGen , CheckerboardMaskGen , SegMapClassIdsMaskGen , BoundingBoxesMaskGen , InvertMaskGen
blur
GaussianBlur
AverageBlur
MedianBlur
BilateralBlur (sigma_color=250, sigma_space=250)
MotionBlur (angle=0)
MotionBlur (k=5)
MeanShiftBlur
collections
RandAugment
color
MultiplyAndAddToBrightness
MultiplyHueAndSaturation
MultiplyHue
MultiplySaturation
AddToHueAndSaturation
Grayscale
RemoveSaturation
ChangeColorTemperature
KMeansColorQuantization (to_colorspace=RGB)
UniformColorQuantization (to_colorspace=RGB)
See also: WithColorspace , WithBrightnessChannels , MultiplyBrightness , AddToBrightness , WithHueAndSaturation , AddToHue , AddToSaturation , ChangeColorspace , Posterize
contrast
GammaContrast
GammaContrast (per_channel=True)
SigmoidContrast (cutoff=0.5)
SigmoidContrast (gain=10)
LogContrast
LinearContrast
AllChannels- HistogramEqualization
HistogramEqualization
AllChannelsCLAHE
CLAHE
See also: Equalize
convolutional
Sharpen (alpha=1)
Emboss (alpha=1)
EdgeDetect
DirectedEdgeDetect (alpha=1)
See also: Convolve
debug
See also: SaveDebugImageEveryNBatches
edges
Canny
flip
Fliplr
Flipud
See also: HorizontalFlip , VerticalFlip
geometric
Affine
Affine: Modes
Affine: cval
PiecewiseAffine
PerspectiveTransform
ElasticTransformation (sigma=1.0)
ElasticTransformation (sigma=4.0)
Rot90
WithPolarWarping +Affine
Jigsaw (5x5 grid)
See also: ScaleX , ScaleY , TranslateX , TranslateY ,
六六分期app的软件客服如何联系?不知道吗?加qq群【895510560】即可!标题:六六分期
阅读:19135| 2023-10-27
今天小编告诉大家如何处理win10系统火狐flash插件总是崩溃的问题,可能很多用户都不知
阅读:9973| 2022-11-06
今天小编告诉大家如何对win10系统删除桌面回收站图标进行设置,可能很多用户都不知道
阅读:8317| 2022-11-06
今天小编告诉大家如何对win10系统电脑设置节能降温的设置方法,想必大家都遇到过需要
阅读:8686| 2022-11-06
我们在使用xp系统的过程中,经常需要对xp系统无线网络安装向导设置进行设置,可能很多
阅读:8627| 2022-11-06
今天小编告诉大家如何处理win7系统玩cf老是与主机连接不稳定的问题,可能很多用户都不
阅读:9643| 2022-11-06
电脑对日常生活的重要性小编就不多说了,可是一旦碰到win7系统设置cf烟雾头的问题,很
阅读:8611| 2022-11-06
我们在日常使用电脑的时候,有的小伙伴们可能在打开应用的时候会遇见提示应用程序无法
阅读:7991| 2022-11-06
今天小编告诉大家如何对win7系统打开vcf文件进行设置,可能很多用户都不知道怎么对win
阅读:8642| 2022-11-06
今天小编告诉大家如何对win10系统s4开启USB调试模式进行设置,可能很多用户都不知道怎
阅读:7527| 2022-11-06
请发表评论