Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup yolact++ in google colab #823

Open
MatThHeuss opened this issue Jul 13, 2023 · 11 comments
Open

Setup yolact++ in google colab #823

MatThHeuss opened this issue Jul 13, 2023 · 11 comments

Comments

@MatThHeuss
Copy link

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
@murilogds
Copy link

I'm having the exactly same issue!

@jjongdals
Copy link

Did you solved this issue?

@MatThHeuss
Copy link
Author

unfortunately not ;(

@ShSi1001
Copy link

i encountered the same issue, how did u solve it

@BismaMutiargo
Copy link

still not resolved?

@nesi73
Copy link

nesi73 commented Sep 20, 2023

same issue

@xqh-code
Copy link

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.

@nesi73
Copy link

nesi73 commented Sep 22, 2023

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

@timothyckl
Copy link

For anyone else facing this issue, try downgrading your packages

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

@Grace-yafei
Copy link

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!

@letessarini
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants