grasp_det_seg_cnn
grasp_det_seg_cnn copied to clipboard
"python setup.py install" have error
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?
请问您跑通这个代码了吗?
niu17
I have same problem,did you solve it?
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.