albumentations icon indicating copy to clipboard operation
albumentations copied to clipboard

module 'albumentations' has no attribute 'Compose

Open dugudongfangshuo opened this issue 2 years ago • 1 comments

on windows pip install albumentations I run this code

import cv2
transform = A.Compose([
    A.RandomCrop(width=256, height=256),
    A.HorizontalFlip(p=0.5),
    A.RandomBrightnessContrast(p=0.2),
])

result is module 'albumentations' has no attribute 'Compose

dugudongfangshuo avatar Feb 27 '22 05:02 dugudongfangshuo

What version of the library are you using? What shows print(A.__version__)?

Dipet avatar Feb 28 '22 10:02 Dipet

What version of the library are you using? What shows print(A.__version__)?

It shows 1.3.0 version for me

nivesha2000 avatar Jan 26 '23 15:01 nivesha2000

It looks strange. Try to trace imports by calling your test script like this:

python -v -m test.py

Dipet avatar Jan 31 '23 07:01 Dipet