Coder Social home page Coder Social logo

compile error with cpu_nms.c about m2det HOT 7 CLOSED

vdigpku avatar vdigpku commented on July 21, 2024
compile error with cpu_nms.c

from m2det.

Comments (7)

convolutionROC avatar convolutionROC commented on July 21, 2024

the envirement is ubuntu16.04, cuda9.0, cudnn7, pytorch0.4

from m2det.

convolutionROC avatar convolutionROC commented on July 21, 2024

I replace NMS with it of mmdetection and compile successfully. However, pycocotools fails to compile:
pycocotools/_mask.c: In function ‘__Pyx_PyCFunction_FastCall’:
pycocotools/_mask.c:12772:12: error: too many arguments to function ‘(PyObject * ()(PyObject , PyObject * const, Py_ssize_t))meth’
return (
((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
^
pycocotools/_mask.c: In function ‘__Pyx__ExceptionSave’:
pycocotools/_mask.c:14254:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
*type = tstate->exc_type;
^
pycocotools/_mask.c:14255:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
*value = tstate->exc_value;
^
pycocotools/_mask.c:14256:17: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
*tb = tstate->exc_traceback;
^
pycocotools/_mask.c: In function ‘__Pyx__ExceptionReset’:
pycocotools/_mask.c:14263:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
tmp_type = tstate->exc_type;
^
pycocotools/_mask.c:14264:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
tmp_value = tstate->exc_value;
^
pycocotools/_mask.c:14265:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
tmp_tb = tstate->exc_traceback;
^
pycocotools/_mask.c:14266:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
tstate->exc_type = type;
^
pycocotools/_mask.c:14267:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
tstate->exc_value = value;
^
pycocotools/_mask.c:14268:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
tstate->exc_traceback = tb;
^
pycocotools/_mask.c: In function ‘__Pyx__GetException’:
pycocotools/_mask.c:14323:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
tmp_type = tstate->exc_type;
^
pycocotools/_mask.c:14324:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
tmp_value = tstate->exc_value;
^
pycocotools/_mask.c:14325:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
tmp_tb = tstate->exc_traceback;
^
pycocotools/_mask.c:14326:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
tstate->exc_type = local_type;
^
pycocotools/_mask.c:14327:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
tstate->exc_value = local_value;
^
pycocotools/_mask.c:14328:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
tstate->exc_traceback = local_tb;
^
error: command 'gcc' failed with exit status 1

from m2det.

qijiezhao avatar qijiezhao commented on July 21, 2024

export PATH=/usr/local/cuda/bin:$PATH 试一试?

from m2det.

convolutionROC avatar convolutionROC commented on July 21, 2024

还是不行,NMS同样编译不过去

from m2det.

qijiezhao avatar qijiezhao commented on July 21, 2024

You can refer rfbnet.nms to find the problem.

from m2det.

convolutionROC avatar convolutionROC commented on July 21, 2024

@qijiezhao It succeds on cuda 9.2. Thanks!

from m2det.

ximitiejiang avatar ximitiejiang commented on July 21, 2024

@qijiezhao i deleted the unnecessary .c/.cpp files in nms/pycocotools files, then i can run build.py sucessfully, these files should be generated after the compile.

from m2det.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.