zengarden / light_head_rcnn

Light-Head R-CNN
834 stars 222 forks source link

light_head_rcnn/lib/lib_kernel/lib_fast_nms/fast_nms.so: undefined symbol: #18

Closed geonseoks closed 6 years ago

geonseoks commented 6 years ago

Hello. I'm try to run your test.py. but I have a problem below, I don't know what wrong..

gt@gt:~/light_head_rcnn/experiments/lizeming/light_head_rcnn.ori_res101.coco.ps_roialign$ python3 test.py -d 0 -se 26 Traceback (most recent call last): File "test.py", line 16, in import network_desp File "/home/gt/light_head_rcnn/experiments/lizeming/light_head_rcnn.ori_res101.coco.ps_roialign/network_desp.py", line 26, in from detection_opr.rpn_batched.proposal_opr import proposal_opr File "/home/gt/light_head_rcnn/lib/detection_opr/rpn_batched/proposal_opr.py", line 9, in from lib_kernel.lib_fast_nms import nms_op File "/home/gt/light_head_rcnn/lib/lib_kernel/lib_fast_nms/nms_op.py", line 10, in _nms_module = tf.load_op_library(filename) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename, status) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/errors_impl.py", line 473, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: /home/gt/light_head_rcnn/lib/lib_kernel/lib_fast_nms/fast_nms.so: undefined symbol: _Z15launch_gen_maskifPKfiPyRKN5Eigen9GpuDeviceE

I also finish Compiling step below.

gt@gt:~/light_head_rcnn/lib$ bash make.sh ~/light_head_rcnn/lib/utils/py_faster_rcnn_utils ~/light_head_rcnn/lib python3 setup.py build_ext --inplace running build_ext skipping 'bbox.c' Cython extension (up-to-date) skipping 'nms.c' Cython extension (up-to-date) rm -rf build ~/light_head_rcnn/lib ~/light_head_rcnn/lib/lib_kernel/lib_fast_nms ~/light_head_rcnn/lib ~/light_head_rcnn/lib ~/light_head_rcnn/lib/lib_kernel/lib_psroi_pooling ~/light_head_rcnn/lib ~/light_head_rcnn/lib ~/light_head_rcnn/lib/lib_kernel/lib_roi_pooling ~/light_head_rcnn/lib ~/light_head_rcnn/lib ~/light_head_rcnn/lib/lib_kernel/lib_roi_align ~/light_head_rcnn/lib ~/light_head_rcnn/lib ~/light_head_rcnn/lib/lib_kernel/lib_psalign_pooling ~/light_head_rcnn/lib ~/light_head_rcnn/lib ~/light_head_rcnn/lib/lib_kernel/lib_nms_dev ~/light_head_rcnn/lib ~/light_head_rcnn/lib ~/light_head_rcnn/lib/datasets_odgt/lib_coco/PythonAPI ~/light_head_rcnn/lib install pycocotools to the Python site-packages python3 setup.py build_ext install --user running build_ext building 'pycocotools._mask' extension creating build creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/pycocotools creating build/common x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.5/dist-packages/numpy/core/include -I../common -I/usr/include/python3.5m -c pycocotools/_mask.c -o build/temp.linux-x86_64-3.5/pycocotools/_mask.o -Wno-cpp -Wno-unused-function -std=c99 x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.5/dist-packages/numpy/core/include -I../common -I/usr/include/python3.5m -c ../common/maskApi.c -o build/temp.linux-x86_64-3.5/../common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99 creating build/lib.linux-x86_64-3.5 creating build/lib.linux-x86_64-3.5/pycocotools x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/pycocotools/_mask.o build/temp.linux-x86_64-3.5/../common/maskApi.o -o build/lib.linux-x86_64-3.5/pycocotools/_mask.cpython-35m-x86_64-linux-gnu.so running install running build running build_py copying pycocotools/mask.py -> build/lib.linux-x86_64-3.5/pycocotools copying pycocotools/coco.py -> build/lib.linux-x86_64-3.5/pycocotools copying pycocotools/init.py -> build/lib.linux-x86_64-3.5/pycocotools copying pycocotools/cocoeval.py -> build/lib.linux-x86_64-3.5/pycocotools running install_lib copying build/lib.linux-x86_64-3.5/pycocotools/_mask.cpython-35m-x86_64-linux-gnu.so -> /home/gt/.local/lib/python3.5/site-packages/pycocotools running install_egg_info Removing /home/gt/.local/lib/python3.5/site-packages/pycocotools-2.0.egg-info Writing /home/gt/.local/lib/python3.5/site-packages/pycocotools-2.0.egg-info rm -rf build ~/light_head_rcnn/lib

The error is occur at fast_nms.so file, but I can't read it because it is a file created by compilation.. I also change my gcc, g++ version( 5.4->4.8), but nothing change.. Can you help me with this error?

wsycl commented 6 years ago

I also have the same error, have you solved this problem?