Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

albumentations #51

Open
leonard-cooper opened this issue Apr 29, 2022 · 4 comments
Open

albumentations #51

leonard-cooper opened this issue Apr 29, 2022 · 4 comments

Comments

@leonard-cooper
Copy link

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!

@marrylin2019
Copy link

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
Copy link

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.

@mornedev
Copy link

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

@figcommon
Copy link

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(),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants