stevewongv / InstanceShadowDetection

Instance Shadow Detection (CVPR 2020)
Apache License 2.0
161 stars 24 forks source link

Error Running setup.py #4

Closed qyangaa closed 2 years ago

qyangaa commented 4 years ago

Hi,

I encountered error when running setup.py in InstanceShadowDetection/. The error message I saw was: error: command 'gcc' failed with exit status 1 In traceback I saw /InstanceShadowDetection/detectron2/layers/csrc/deformable/deform_conv.h:339:5: error: ‘AT_CHECK’ was not declared in this scope AT_CHECK(input.type().is_cuda(), "input tensor is not on GPU!");

and a note: /home/arky/files/background_switch/InstanceShadowDetection/detectron2/layers/csrc/deformable/deform_conv.h:339:5: note: suggested alternative: ‘DCHECK’ AT_CHECK(input.type().is_cuda(), "input tensor is not on GPU!"); ^~~~~~~~ DCHECK It seems that it is from the detectron package but the detectron2 package has updated them to TORCH_CHECK. Not sure what the problem was.

Thank you for sharing this work!

stevewongv commented 4 years ago

Do you solve the problem? if not, you can try virtual environment.