deepsense-ai / roi-pooling

460 stars 127 forks source link

Undefined symbol on tensorflow 1.8 #22

Open JiteshPshah opened 6 years ago

JiteshPshah commented 6 years ago

I am getting an error on roi_pooling.so: undefined symbol. on tensorflow 1.8 Which version is best suitable for roi pooling ?

patzm commented 6 years ago

is it by coincidence the following?

File "<input>", line 1, in <module>
    from roi_pooling.roi_pooling_ops import roi_pooling
  File "/usr/local/lib/python2.7/dist-packages/roi_pooling/roi_pooling_ops.py", line 8, in <module>
    roi_pooling_module = tf.load_op_library(lib_path)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
NotFoundError: /usr/local/lib/python2.7/dist-packages/roi_pooling/roi_pooling.so: undefined symbol: _ZTIN10tensorflow8OpKernelE
offbye commented 6 years ago

same error, any ideas?

lib_handle = py_tf.TF_LoadLibrary(library_filename) tensorflow.python.framework.errors_impl.NotFoundError: /data5/zxt/downloads/roi-pooling-master/roi_pooling/roi_pooling.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

JiteshPshah commented 6 years ago

I solved this error by following this link: http://windstop.tistory.com/155

trikim commented 5 years ago

@JiteshPshah Thanks! By changing the './roi_pooling/Makefile' file according to http://windstop.tistory.com/155, it works.

TF_INC = $(shell python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
TF_LIB = $(shell python -c 'import tensorflow; print(tensorflow.sysconfig.get_lib())')
CUDA_LIB = /usr/local/cuda-8.0/targets/x86_64-linux/lib/

all: clean build test

build: roi_pooling.so

roi_pooling.cu.o: roi_pooling.cu.cc
    nvcc -std=c++11 -c -o $@ $? -I $(TF_INC) -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -D _GLIBCXX_USE_CXX11_ABI=0 -L$(TF_LIB) -ltensorflow_framework

roi_pooling.so: roi_pooling.cc roi_pooling.cu.o
    g++ -std=c++11 -shared -o $@ $? -I $(TF_INC) -fPIC -lcudart -L$(CUDA_LIB) -D _GLIBCXX_USE_CXX11_ABI=0 -L$(TF_LIB) -ltensorflow_framework
djongpo commented 5 years ago

@JiteshPshah @trikim I also faced a similar issue . Can you help me out? I can't understand from the previous comments what needs to be done.

The link to the issue is here https://github.com/deepsense-ai/roi-pooling-MOVED/issues/28#issue-462397313