Mih*_*aya 7 pytorch torchvision
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.
Run Code Online (Sandbox Code Playgroud)
我尝试在我的 Google Colab 上运行 YOLACT 并发现此错误。有人可以帮助解决这个问题吗?
您需要升级torchvision
到使用 CUDA 10.2 编译的版本:
pip install --upgrade torchvision>=0.6.0
Run Code Online (Sandbox Code Playgroud)
或者,如果您使用 Conda:
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
Run Code Online (Sandbox Code Playgroud)
在此处检查您应根据您的 PyTorch 安装的版本。
归档时间: |
|
查看次数: |
25910 次 |
最近记录: |