CornerNet icon indicating copy to clipboard operation
CornerNet copied to clipboard

CUDA 9.0 support available?

Open whikwon opened this issue 6 years ago • 6 comments

I'm using cuda 9.0, cudnn7 and conda_packagelist.txt says i have to install cudatoolkit, pytorch according to cuda 8.0, cudnn7.

As I don't want to reinstall the cuda things, I've tried docker but got errors.

AttributeError: 'NoneType' object has no attribute 'shape'

and image

What should I do to use cuda 9.0?

whikwon avatar Jan 16 '19 06:01 whikwon

If I use cuda 9.0 and continue installing as conda_packagelist.txt, I get error during execute

cd <CornetNet dir>/models/py_utils/_cpools/
python setup.py install --user

whikwon avatar Jan 16 '19 06:01 whikwon

The first error 'Attribute Error' should have nothing to do with CUDA 9.0. You can see this post.

If you are using CUDA 9.0, you need to update PyTorch. I tried CornerNet with CUDA 9.0. The code should work fine.

heilaw avatar Jan 17 '19 18:01 heilaw

Thanks for reply!

Could you let me know which packages did you use for CUDA 9.0 instead of below?

https://conda.anaconda.org/caffe2/linux-64/caffe2-cuda8.0-cudnn7-0.8.dev-py36_2018.05.14.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/cudatoolkit-8.0-3.tar.bz2
https://conda.anaconda.org/pytorch/linux-64/pytorch-0.4.0-py36_cuda8.0.61_cudnn7.1.2_1.tar.bz2

whikwon avatar Jan 18 '19 05:01 whikwon

You can follow the instructions here to install PyTorch 0.4.1 w/ CUDA 9.0.

heilaw avatar Jan 21 '19 20:01 heilaw

Thanks for reply!

Could you let me know which packages did you use for CUDA 9.0 instead of below?

https://conda.anaconda.org/caffe2/linux-64/caffe2-cuda8.0-cudnn7-0.8.dev-py36_2018.05.14.tar.bz2
https://repo.continuum.io/pkgs/free/linux-64/cudatoolkit-8.0-3.tar.bz2
https://conda.anaconda.org/pytorch/linux-64/pytorch-0.4.0-py36_cuda8.0.61_cudnn7.1.2_1.tar.bz2

hi,do u know how to do with cuda9.0?thanks

guyubit91 avatar Mar 20 '19 07:03 guyubit91

You can follow the instructions here to install PyTorch 0.4.1 w/ CUDA 9.0.

hello, when I install it, there will be a error. Can you help me? Thank you! loading model from cache/nnet/CenterNet-104/CenterNet-104_480000.pkl locating kps: 0%| | 0/5000 [00:00<?, ?it/s]/home/travail/miniconda3/envs/CornerNet/lib/python3.6/site-packages/torch/nn/modules/upsampling.py:122: UserWarning: nn.Upsampling is deprecated. Use nn.functional.interpolate instead. warnings.warn("nn.Upsampling is deprecated. Use nn.functional.interpolate instead.") Segmentation fault (core dumped)

Kangzf1996 avatar Jan 16 '20 21:01 Kangzf1996