Yolact: I cann't compile compile the DCNv2

Created on 24 Apr 2020  路  12Comments  路  Source: dbolya/yolact

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

Most helpful comment

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

All 12 comments

I also met, how do you solve it

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

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

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

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

is there any solution for use it on PyTorch 1.5?

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

Thankyou worked like a charm!

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

It works! Thank you

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

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

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

Thanks, it solved my problem!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abhigoku10 picture abhigoku10  路  6Comments

saisubramani picture saisubramani  路  8Comments

explorer359 picture explorer359  路  10Comments

pandamax picture pandamax  路  4Comments

onoderay picture onoderay  路  6Comments