yolact
yolact copied to clipboard
Setup yolact++ in google colab
I'm trying to run yolact++ on google colab, but I'm always getting the following error when trying to build DCNv2:
/content/yolact/external/DCNv2/src/cuda/dcn_v2_cuda.cu:7:10: fatal error: THC/THC.h: No such file or directory
7 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1
I'm following these steps:
!git clone https://github.com/dbolya/yolact.git
!cd yolact
!pip install cython
!pip install opencv-python pillow pycocotools matplotlib
!pip install torchvision==0.12.0
!pip install torch==2.0.1
cd /content/yolact/external/DCNv2
!python setup.py build develop
I'm having the exactly same issue!
Did you solved this issue?
unfortunately not ;(
i encountered the same issue, how did u solve it
still not resolved?
same issue
I'm trying to run yolact++ on google colab, but I'm always getting the following error when trying to build DCNv2:
/content/yolact/external/DCNv2/src/cuda/dcn_v2_cuda.cu:7:10: fatal error: THC/THC.h: No such file or directory 7 | #include <THC/THC.h> | ^~~~~~~~~~~ compilation terminated. error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1
I'm following these steps:
!git clone https://github.com/dbolya/yolact.git !cd yolact !pip install cython !pip install opencv-python pillow pycocotools matplotlib !pip install torchvision==0.12.0 !pip install torch==2.0.1 cd /content/yolact/external/DCNv2 !python setup.py build develop
I think it's a torch version mismatch.
I'm trying to run yolact++ on google colab, but I'm always getting the following error when trying to build DCNv2:
/content/yolact/external/DCNv2/src/cuda/dcn_v2_cuda.cu:7:10: fatal error: THC/THC.h: No such file or directory 7 | #include <THC/THC.h> | ^~~~~~~~~~~ compilation terminated. error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1
I'm following these steps:
!git clone https://github.com/dbolya/yolact.git !cd yolact !pip install cython !pip install opencv-python pillow pycocotools matplotlib !pip install torchvision==0.12.0 !pip install torch==2.0.1 cd /content/yolact/external/DCNv2 !python setup.py build develop
I think it's a torch version mismatch.
torch version: 1.11.0+cu113 torchvision version: 0.12.0+cu113 python version: Python 3.7.13 In this case I have stable versions of torch and torchvision on my system, as mentioned in -> [(https://github.com/pytorch/vision#installation)]
For anyone else facing this issue, try downgrading your packages
pip install torch==1.4.0
pip install torchvision==0.5.0
For anyone else facing this issue, try downgrading your packages
pip install torch==1.4.0 pip install torchvision==0.5.0
It's useful for me! thank you very much!
For anyone else facing this issue, try downgrading your packages
pip install torch==1.4.0 pip install torchvision==0.5.0
I tried this and got this error:
And the error 'command '/usr/local/cuda/bin/nvcc' failed with exit code 1' continues
Did anyone solve it?