Key already registered with the same priority: GroupSpatialSoftmax
原因:
没有卸载原来的pytorch,就下载了新的,所以会有冲突
解决方法:
- 将两个版本的torch全部卸载,否则可以成功Import torch,但实际上无法运行
conda uninstall pytorch
pip uninstall torch
pip uninstall torch # 需要跑两次pip uninstall - 重新安装所需要的版本
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

浙公网安备 33010602011771号