在使用albumentations提示有一些功能没法用,查看官方网文档时发现新版的一些功能的名字有所变化。官网链接:link
AttributeError: module 'albumentations' has no attribute 'IAAAdditiveGaussianNoise'
一些函数名的替换
-
JpegCompression. Use ImageCompression instead.
-
RandomBrightness. Use RandomBrigtnessContrast instead.
-
RandomContrast. Use RandomBrigtnessContrast instead.
-
Cutout. Use CoarseDropout instead.
-
ToTensor. Use ToTensorV2 instead.
-
IAAAdditiveGaussianNoise. Use GaussNoise instead.
-
IAAAffine. Use Affine instead.
-
IAACropAndPad. Use CropAndPad instead.
-
IAAEmboss. Use Emboss instead.
-
IAAFliplr. Use HorizontalFlip instead.
-
IAAFlipud. Use VerticalFlip instead.
-
IAAPerspective. Use Perspective instead.
-
IAAPiecewiseAffine. Use PiecewiseAffine instead.
-
IAASharpen. Use Sharpen instead.
-
IAASuperpixels. Use Superpixels instead.
其他的一些替换:
- Removed eps parameter in RandomGamma
- Removed lambda_transformsin serialization.from_dict function.