grasp_det_seg_cnn icon indicating copy to clipboard operation
grasp_det_seg_cnn copied to clipboard

"python setup.py install" have error

Open houph4 opened this issue 3 years ago • 3 comments

Hello,I have a question.

When I run "python setup.py install", a lot of codes appear in the terminal. And the final error is as follows:

src/roi_sampling/roi_sampling_cpu.cpp:115:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’ AT_DISPATCH_ALL_TYPES(dy.scalar_type(), "roi_sampling_backward_cpu", ([&] { ^ src/roi_sampling/roi_sampling_cpu.cpp:124:5: note: in expansion of macro ‘DISPATCH_INTERPOLATION_PADDING_MODES’ DISPATCH_INTERPOLATION_PADDING_MODES(interpolation, padding, ([&] { ^ error: command 'gcc' failed with exit status 1

And there are "GraspDetSeg_CNN.egg-info" folder in my directory, but no "GraspDetSeg_CNN" folder, so I can't find the weights_pretrained folder. Do you encounter such a problem, is it caused by version inconsistency? what should i do?

houph4 avatar Jun 19 '22 11:06 houph4

请问您跑通这个代码了吗?

scq6688 avatar Jul 30 '22 15:07 scq6688

niu17

I have same problem,did you solve it?

xiaofeiso avatar Oct 03 '22 13:10 xiaofeiso

You can try to find the real error message in the output. If you see this:

include/roi_sampling.h:219:5: error: ‘AT_CHECK’ was not declared in this scope
     AT_CHECK(!std::is_integral<scalar_t>::value,                                 \
     ^

you may try to replace every AT_CHECK in the code with TORCH_CHECK (source: https://github.com/open-mmlab/OpenPCDet/issues/284#issuecomment-874171209). This works for me.

xinchaosong avatar Dec 21 '22 08:12 xinchaosong