yolact icon indicating copy to clipboard operation
yolact copied to clipboard

I cann't compile compile the DCNv2

Open nonlinear1 opened this issue 5 years ago • 15 comments
trafficstars

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

nonlinear1 avatar Apr 24 '20 08:04 nonlinear1

I also met, how do you solve it

starfish55555 avatar May 01 '20 16:05 starfish55555

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

moganesyan avatar May 02 '20 01:05 moganesyan

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

abhigoku10 avatar May 02 '20 02:05 abhigoku10

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

moganesyan avatar May 02 '20 02:05 moganesyan

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

khodabakhshih avatar May 02 '20 23:05 khodabakhshih

is there any solution for use it on PyTorch 1.5?

ahkarami avatar May 29 '20 11:05 ahkarami

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

linkboyx avatar Jun 19 '20 02:06 linkboyx

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

Thankyou worked like a charm!

areebsyed avatar Sep 23 '20 07:09 areebsyed

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

It works! Thank you

hi-one-gg avatar Oct 27 '20 02:10 hi-one-gg

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

lidar-nevermore avatar Mar 20 '21 05:03 lidar-nevermore

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

JiaWang0704 avatar Mar 30 '21 14:03 JiaWang0704

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

Thanks, it solved my problem!

dungdo123 avatar Apr 20 '21 01:04 dungdo123

I also met, how do you solve it

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

UnderTheMangoTree avatar Sep 17 '21 02:09 UnderTheMangoTree

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

DaBasile avatar Nov 08 '21 11:11 DaBasile

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...

Robotatron avatar Jul 28 '22 11:07 Robotatron