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

setup.py #150

Open
H1d30nbu3h opened this issue Jul 23, 2023 · 3 comments
Open

setup.py #150

H1d30nbu3h opened this issue Jul 23, 2023 · 3 comments

Comments

@H1d30nbu3h
Copy link

我在运行 python setup.py 命令的时候报错error: command '/usr/bin/gcc' failed with exit code 1
是什么情况,希望你的回答

@elon-trump
Copy link

I am also facing the same issues in python setup.py develop

exits with following error:
mmdet/ops/nms/src/nms_cuda.cpp:4:23: error: ‘AT_CHECK’ was not declared in this scope; did you mean ‘DCHECK’? 4 | #define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ") | ^~~~~~~~ mmdet/ops/nms/src/nms_cuda.cpp:4:23: note: in definition of macro ‘CHECK_CUDA’ 4 | #define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ") | ^~~~~~~~ error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

@H1d30nbu3h
Copy link
Author

I am also facing the same issues in python setup.py develop

exits with following error: mmdet/ops/nms/src/nms_cuda.cpp:4:23: error: ‘AT_CHECK’ was not declared in this scope; did you mean ‘DCHECK’? 4 | #define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ") | ^~~~~~~~ mmdet/ops/nms/src/nms_cuda.cpp:4:23: note: in definition of macro ‘CHECK_CUDA’ 4 | #define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ") | ^~~~~~~~ error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
我的判断是版本问题,所以我就放弃了。你可以尝试用cuda9.2版本的pytorch试试

@elon-trump
Copy link

will it work if i use cuda9.2?
Actually i found 2-3 issues(resolved) related to this but couldn't follow since it was in the Chinese. (google translate also didn't work there).

My Actual requirement is to inference this pretrained model for custom dataset but since I am new at this, could get nowhere.
If you are familiar with these kind of tasks, can you help please? we can connect at [email protected]

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

2 participants