pytorch-nested-unet icon indicating copy to clipboard operation
pytorch-nested-unet copied to clipboard

albumentations

Open leonard-cooper opened this issue 2 years ago • 4 comments

Hello, may I ask which version of albumentations did you use in your code? Now some features of this library have changed, so I do not know which version to use. Thank you very much!

leonard-cooper avatar Apr 29 '22 07:04 leonard-cooper

Have you got a correct version, or any way to solve? I meet this error either. Error prompt looks like: Traceback (most recent call last): File "PATH\pytorch-nested-unet\train.py", line 354, in <module> main() File "PATH\pytorch-nested-unet\train.py", line 253, in main transforms.RandomRotate90(), AttributeError: module 'albumentations.augmentations.transforms' has no attribute 'RandomRotate90'

marrylin2019 avatar Feb 13 '23 06:02 marrylin2019

Ok, I find the correct version via try each released version in the albumentations' git repository😂. Use pip install albumentations==0.5.2 under conda environment or pip3 install albumentations==0.5.2 via pure pip.

marrylin2019 avatar Feb 13 '23 07:02 marrylin2019

I can confirm, version 0.5.2 works for me. Thanks @marrylin2019 !

mornedev avatar Jun 28 '23 10:06 mornedev

I solved the same problem by this way, may be it seems so rude.hhhh

import albumentations as A ,
# transforms.RandomRotate90(),
A.RandomRotate90(),
# transforms.Flip(),
A.Flip(),

figcommon avatar Dec 14 '23 08:12 figcommon