【问题标题】:Pytorch and Torchvision are compiled different CUDA versionsPytorch 和 Torchvision 编译不同的 CUDA 版本
【发布时间】:2020-11-13 16:19:47
【问题描述】:
RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=10.2 and torchvision has CUDA Version=10.1. Please reinstall the torchvision that matches your PyTorch install.

我正在尝试在我的 Google Colab 上运行 YOLACT 并发现此错误。有人可以帮忙解决这个问题吗?

【问题讨论】:

    标签: pytorch torchvision


    【解决方案1】:

    您需要将您的torchvision 升级到使用 CUDA 10.2 编译的版本:

    pip install --upgrade torchvision>=0.6.0
    

    或者,如果您使用的是 Conda:

    conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
    

    检查here您应该根据您的 PyTorch 安装的版本。

    【讨论】:

      猜你喜欢
      • 2021-04-05
      • 2020-08-01
      • 1970-01-01
      • 2015-09-26
      • 1970-01-01
      • 2021-02-06
      • 2022-12-14
      • 2021-02-27
      • 2022-07-27
      相关资源
      最近更新 更多