dbolya / yolact

A simple, fully convolutional model for real-time instance segmentation.
MIT License
5.02k stars 1.32k forks source link

I cann't compile compile the DCNv2 #431

Open nonlinear1 opened 4 years ago

nonlinear1 commented 4 years ago

I want to test the yolact++, but I cann't compile DCNv2. My enviroment is as follow: OS: ubuntu18.04 cuda: 10.1 pytorch:1.5 When I compiled the DCNv2 I found the following errors: /home/manifold/Dense_RGBD_VIO_Fusion/yolact/external/DCNv2/src/cuda/dcn_v2_cuda.cu(107): error: identifier "THCState_getCurrentStream" is undefined

/home/manifold/Dense_RGBD_VIO_Fusion/yolact/external/DCNv2/src/cuda/dcn_v2_cuda.cu(279): error: identifier "THCState_getCurrentStream" is undefined

2 errors detected in the compilation of "/tmp/tmpxft_00007b49_00000000-6_dcn_v2_cuda.cpp1.ii". Could someone know how to solve this errors? Thank you very much

starfish55555 commented 4 years ago

I also met, how do you solve it

moganesyan commented 4 years ago

I rolled back to torch 1.4.0 and torchvision 0.5.0 and solved the issue

abhigoku10 commented 4 years ago

@moganesyan thanks for the solution will try it , same thing is happening in google colab

moganesyan commented 4 years ago

@abhigoku10 You're welcome. I was working on Colab as well, so should work for you too hopefully!

khodabakhshih commented 4 years ago

@moganesyan Thank you very much. It solved my issue in the google colab too.

ahkarami commented 4 years ago

is there any solution for use it on PyTorch 1.5?

linkboyx commented 4 years ago

This helps on Pytorch1.5. https://github.com/CharlesShang/DCNv2/pull/58

areebsyed commented 4 years ago

I rolled back to torch 1.4.0 and torchvision 0.5.0 and solved the issue

Thankyou worked like a charm!

blackCmd commented 4 years ago

I rolled back to torch 1.4.0 and torchvision 0.5.0 and solved the issue

It works! Thank you

lidar-nevermore commented 3 years ago

this issuse can be solved by adding the following function: cudaStream_t THCState_getCurrentStream(THCState *state) { return at::cuda::getCurrentCUDAStream().stream(); } reference: https://github.com/pytorch/pytorch/pull/33376

JiaWang0704 commented 3 years ago

this issuse can be solved by adding the following function: cudaStream_t THCState_getCurrentStream(THCState *state) { return at::cuda::getCurrentCUDAStream().stream(); } reference: https://github.com/pytorch/pytorch/pull/33376

hello,this resolve two errors but there still are three errors.as the following:(do you know the rearon?if you know, please tell me. thank u!) V3{@@KF98AMUS8G$KW6%@ 8

dungdo123 commented 3 years ago

I rolled back to torch 1.4.0 and torchvision 0.5.0 and solved the issue

Thanks, it solved my problem!

UnderTheMangoTree commented 3 years ago

I also met, how do you solve it

I raw back to pytorch 1.0.1, and the problem is resolved.

DaBasile commented 2 years ago

Hi guys I solved this problem with this issue https://github.com/CharlesShang/DCNv2/issues/57 replacing DCNv2 folder with the fork of the solution my setup is pytorch 1.10 cuda toolkit 11.4 cuda version 11.4

Robotatron commented 2 years ago

Hi guys I solved this problem with this issue https://github.com/CharlesShang/DCNv2/issues/57 replacing DCNv2 folder with the fork of the solution my setup is pytorch 1.10 cuda toolkit 11.4 cuda version 11.4

Your link does not work...