yolact icon indicating copy to clipboard operation
yolact copied to clipboard

Setup yolact++ in google colab

Open MatThHeuss opened this issue 1 year ago • 11 comments

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

MatThHeuss avatar Jul 13 '23 17:07 MatThHeuss

I'm having the exactly same issue!

murilogds avatar Jul 16 '23 15:07 murilogds

Did you solved this issue?

jjongdals avatar Aug 12 '23 15:08 jjongdals

unfortunately not ;(

MatThHeuss avatar Aug 16 '23 02:08 MatThHeuss

i encountered the same issue, how did u solve it

ShSi1001 avatar Aug 30 '23 12:08 ShSi1001

still not resolved?

BismaMutiargo avatar Sep 18 '23 18:09 BismaMutiargo

same issue

nesi73 avatar Sep 20 '23 13:09 nesi73

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.

xqh-code avatar Sep 22 '23 02:09 xqh-code

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)]

nesi73 avatar Sep 22 '23 08:09 nesi73

For anyone else facing this issue, try downgrading your packages

pip install torch==1.4.0
pip install  torchvision==0.5.0 

timothyckl avatar Oct 27 '23 04:10 timothyckl

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!

Grace-yafei avatar Nov 30 '23 02:11 Grace-yafei

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: Error

And the error 'command '/usr/local/cuda/bin/nvcc' failed with exit code 1' continues

Did anyone solve it?

letessarini avatar Dec 05 '23 11:12 letessarini