Key already registered with the same priority: GroupSpatialSoftmax

原因:
没有卸载原来的pytorch,就下载了新的,所以会有冲突
解决方法:

  1. 将两个版本的torch全部卸载,否则可以成功Import torch,但实际上无法运行
    conda uninstall pytorch
    pip uninstall torch
    pip uninstall torch # 需要跑两次pip uninstall
  2. 重新安装所需要的版本
    conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

https://www.jianshu.com/p/66e33e65577d![image]

posted @ 2022-05-29 11:12  Trouvaille_fighting  阅读(536)  评论(0)    收藏  举报