Closed zhepherd closed 4 years ago
Traceback (most recent call last):
File "demo/demo.py", line 74, in
my cuda version is CUDA Version 10.0.130 CUDA Patch Version 10.0.130.1
Hi zhepherd, AdelaiDet supports CUDA 10.0.
Please make sure you have compiled AdelaiDet with the same cuda as your python runtime. This error typically happens when the cuda in your python environment is of a lower version.
Also, you can check official Detectron2 demos. If those work, BlendMask should also work.
which python version need??my python version is 3.7
@zhepherd same as Detectron2, python >= 3.6
my python is 3.7 why has cuda error? i try as detectron2 install.md,but also has the error! pls help
@zhepherd As I said before, it is probably because you did not compile detectron2/AdelaiDet with the same cuda as your python runtime.
Please make sure you have installed the correct precompiled detectron2 or have compiled with the right nvcc.
I also suggest you go to Detectron2's repo for help.
i am think i compile detectron2 with the same cuda as my python runtime
So how did you install pytorch?
If with conda, please try
conda list | grep torch
and make sure torch is compiled with the same version of CUDA
use pip
It seems to me the torch version you installed is not compiled to support CUDA 10.0.
The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver.
which torch and torchvision should i install ?
if you insist on using cuda 10.0, try pytorch 1.3 with cuda 10.0. Remember to specify the CUDA version when you install.
specify cuda version when install ? how to specify? not the sys default cuda 10.0?
Something like this
pip install torch==1.3.1+cu100 torchvision==0.4.2+cu100 -f https://download.pytorch.org/whl/torch_stable.html
or this
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
If you have further questions, join our discord channel here
The issues are for bug reports and feature requests. Not general QAs
i look my runtime cuda ,find is not the same as sys cuda
i solve this problem after update the nvidia driver,but has anther problem
thx very much, i solve this problem after reinstall ,thx very much for help!!! @stan-haochen