albumentationsのRandomResizedCropのみインポートできない
albumentationsをインポートしようとしたのですが下記のエラーで実行できませんでした。
ImportError: cannot import name 'RandomResizedCrop' from 'albumentations' (/usr/local/lib/python3.7/dist-packages/albumentations/__init__.py)
結論としては下記サイトのアンサーの指示通り実行できました。
!pip install albumentations==0.4.5- ランタイムを再起動
from albumentations import RandomResizedCrop
パッケージのバージョンの問題でした。



コメント