from albumentations.pytorch.transforms import ToTensorV2我使用了上面的代码,但它不起作用。
发布于 2020-07-13 12:40:43
只需添加一行代码块即可。
! pip install albumentations==0.4.6在您进行导入的块之上。我试着在没有特定版本的情况下安装它,结果失败了。
当我没有在pip中指定版本号时,就安装了不包含ToTensorV2的0.1.12版本。
发布于 2021-03-18 23:19:23
确保您有最新版本
!pip install --upgrade --force-reinstall --no-deps albumentations发布于 2020-11-03 08:04:46
从吉特布那里得到消息。Colab示例的用法
!pip install -U git+https://github.com/albu/albumentations > /dev/null https://stackoverflow.com/questions/62872413
复制相似问题