Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"python setup.py install" have error #13

Open
houph4 opened this issue Jun 19, 2022 · 3 comments
Open

"python setup.py install" have error #13

houph4 opened this issue Jun 19, 2022 · 3 comments

Comments

@houph4
Copy link

houph4 commented Jun 19, 2022

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?

@scq6688
Copy link

scq6688 commented Jul 30, 2022

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

@xiaofeiso
Copy link

niu17

I have same problem,did you solve it?

@xinchaosong
Copy link

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: open-mmlab/OpenPCDet#284 (comment)). This works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants