完整报错:
from batchgenerators.transforms import Compose
ImportError: cannot import name 'Compose' from 'batchgenerators.transforms' (/home/shiya.xu/anaconda3/envs/pyxsy/lib/python3.10/site-packages/batchgenerators/transforms/__init__.py)
换用0.21版本
pip uninstall batchgenerators
pip install batchgenerators==0.21
参考:周学长您好,我在配置环境中发现个小坑想提醒大家 · Issue #72 · MrGiovanni/UNetPlusPlus · GitHub