ReDet icon indicating copy to clipboard operation
ReDet copied to clipboard

Running code for cuda11.0/pytorch>1.3

Open hphuongdhsp opened this issue 4 years ago • 13 comments

Hi,

I tried your code with the 30xx GPU series which only works for Cuda toolkit >=11.0 (using the mvcc library adapted with Cuda 11.0). Unfortunately, your code can't work with Cuda 11.0. I think the reason is from the "compile.sh" file. Can you have some guides to deal with the Cuda 11.0.

Thanks.

hphuongdhsp avatar Mar 18 '21 09:03 hphuongdhsp

I guess the reason is: cuda11.0 requires higher version pytorch (>1.3), while some ops in our code are designed for pytorch<1.5.

If so, to fix this, you need to replace all AT_CHECK with TORCH_CHECK in the source code (.cpp and .cu). See https://github.com/pytorch/pytorch/issues/36581

csuhan avatar Mar 18 '21 10:03 csuhan

Thanks for your suggestion. I will try it and inform the result.

hphuongdhsp avatar Mar 18 '21 13:03 hphuongdhsp

Thanks for your suggestion. I will try it and inform the result. hello, have you worked it out? I still meet with the problems in 30** GPU

dylan110 avatar Apr 26 '21 06:04 dylan110

Have you tested successfully on CUDA11.0 ?@hphuongdhsp

why228430 avatar Jul 25 '21 04:07 why228430

Hi,

I tried your code with the 30xx GPU series which only works for Cuda toolkit >=11.0 (using the mvcc library adapted with Cuda 11.0). Unfortunately, your code can't work with Cuda 11.0. I think the reason is from the "compile.sh" file. Can you have some guides to deal with the Cuda 11.0.

Thanks.

Have you tested successfully on CUDA11.0 ?@hphuongdhsp

Hi, I am also trying it on CUDA11.0. I want to know if you success? Because 11.0 need higher torch version that causes many problems. I have tried for almost 1 week.

colsona avatar Jul 25 '21 11:07 colsona

find . -type f -exec sed -i 's/AT_CHECK/TORCH_CHECK/g' {} +

elyar-adil avatar Aug 30 '21 02:08 elyar-adil

I guess the reason is: cuda11.0 requires higher version pytorch (>1.3), while some ops in our code are designed for pytorch<1.5.

If so, to fix this, you need to replace all AT_CHECK with TORCH_CHECK in the source code (.cpp and .cu). See pytorch/pytorch#36581

Thanks, it works with cuda 10.2 and pytorch1.7 !

chongkuiqi avatar Oct 14 '21 11:10 chongkuiqi

I guess the reason is: cuda11.0 requires higher version pytorch (>1.3), while some ops in our code are designed for pytorch<1.5. If so, to fix this, you need to replace all AT_CHECK with TORCH_CHECK in the source code (.cpp and .cu). See pytorch/pytorch#36581

Thanks, it works with cuda 10.2 and pytorch1.7 !

@chongkuiqi is the ReDet code compatible with cuda 10.2 and pytorch1.7?

chandlerbing65nm avatar Nov 16 '21 14:11 chandlerbing65nm

I guess the reason is: cuda11.0 requires higher version pytorch (>1.3), while some ops in our code are designed for pytorch<1.5. If so, to fix this, you need to replace all AT_CHECK with TORCH_CHECK in the source code (.cpp and .cu). See pytorch/pytorch#36581

Thanks, it works with cuda 10.2 and pytorch1.7 !

@chongkuiqi is the ReDet code compatible with cuda 10.2 and pytorch1.7?

Oh! I'm sorry that i had this issue when using the S2ANet code, and this solution works with cuda 10.2 and pytorch1.7, and i'm not sure if the ReDet code is compatible with cuda 10.2 and pytorch1.7.

chongkuiqi avatar Nov 16 '21 14:11 chongkuiqi

I guess the reason is: cuda11.0 requires higher version pytorch (>1.3), while some ops in our code are designed for pytorch<1.5.

If so, to fix this, you need to replace all AT_CHECK with TORCH_CHECK in the source code (.cpp and .cu). See pytorch/pytorch#36581

能请问一下这个cuda ops在哪吗 工程里面没有这个文件呀

colorfully-ybf avatar Nov 23 '21 08:11 colorfully-ybf

@colorfully-ybf See mmdet/ops

csuhan avatar Nov 27 '21 02:11 csuhan

@colorfully-ybf See mmdet/ops

ok,I will try it.

colorfully-ybf avatar Nov 27 '21 02:11 colorfully-ybf

@colorfully-ybf See mmdet/ops

@csuhan @colorfully-ybf I tried changing it in the ops folder, still, many errors exists. But please share your results @colorfully-ybf maybe in your implementation, it will work. Thanks!

chandlerbing65nm avatar Nov 27 '21 03:11 chandlerbing65nm