DCNv2_latest icon indicating copy to clipboard operation
DCNv2_latest copied to clipboard

RuntimeError: Not compiled with GPU support

Open pvti opened this issue 1 year ago • 3 comments

I tried both conda, pip with many combinations of torch (1.11+) and cuda (10.2, 11.3, 11.6) but have not managed to make it work.

pvti avatar May 16 '23 13:05 pvti

I tried both conda, pip with many combinations of torch (1.11+) and cuda (10.2, 11.3, 11.6) but have not managed to make it work.

Hi, I met the same problem, have you solved it?

ChenSiyi1 avatar May 24 '23 14:05 ChenSiyi1

I had a similar issue and solved it by adding the path to cuda to the environment variable CUDA_HOME before installation:

# first set the cuda path
export CUDA_HOME="/usr/local/cuda-X.X"

# install
python3 setup.py build develop

Note that X.X specifies the cuda version, e.g. cuda-11.3

shekshaa avatar Jul 26 '23 16:07 shekshaa

For future reference, I found this repo: https://github.com/inspiros/tvdcn/tree/master is fantastic for deformable convolution.

pvti avatar Jul 26 '23 17:07 pvti