Faster-RCNN_TF icon indicating copy to clipboard operation
Faster-RCNN_TF copied to clipboard

Failed to run demo

Open cloudtoro opened this issue 8 years ago • 10 comments

Tried running demo.py and hit the following error:

aise errors._make_specific_exception(None, None, error_msg, error_code) tensorflow.python.framework.errors.NotFoundError: ~/Faster-RCNN_TF/tools/../lib/roi_pooling_layer/roi_pooling.so: undefined symbol: _ZN10tensorflow7strings6StrCatB5cxx11ERKNS0_8AlphaNumE

My system had Tensorflow v0.11.0 installed, and I was Python 2.7.

Thanks! cloud

cloudtoro avatar Nov 18 '16 18:11 cloudtoro

maybe you should install tensorflow from source code

minbinL avatar Nov 19 '16 19:11 minbinL

do U solve this problem? @cloudtoro

jiangyuguang avatar Dec 02 '16 07:12 jiangyuguang

I have the same problem, any one solve it?

Lan1991Xu avatar Dec 09 '16 09:12 Lan1991Xu

I see this error when I try to run the implementation in the environment with TensorFlow CPU-only installed.

soupault avatar Dec 12 '16 15:12 soupault

@cloudtoro have you sovle this problem? I hava the same problem.

bitwangdan avatar Dec 14 '16 13:12 bitwangdan

adding -D_GLIBCXX_USE_CXX11_ABI=0 in g++ complie line in make.sh file and re-run make

civilman628 avatar Dec 19 '16 21:12 civilman628

I had resolved the problem by modifying the make.sh as follows

`` nvcc -std=c++11 -c -o roi_pooling_op.cu.o roi_pooling_op_gpu.cu.cc
-I $TF_INC -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -arch=sm_52

#if you install tf using already-built binary, or gcc version 4.x, uncomment the two lines below g++ -std=c++11 -shared -D_GLIBCXX_USE_CXX11_ABI=0 -o roi_pooling.so roi_pooling_op.cc
roi_pooling_op.cu.o -I $TF_INC -fPIC -lcudart -L $CUDA_PATH/lib64

#for gcc5-built tf #g++ -std=c++11 -shared -D_GLIBCXX_USE_CXX11_ABI=1 -o roi_pooling.so roi_pooling_op.cc
#roi_pooling_op.cu.o -I $TF_INC -fPIC -lcudart -L $CUDA_PATH/lib64 cd ..

#add building psroi_pooling layer cd psroi_pooling_layer nvcc -std=c++11 -c -o psroi_pooling_op.cu.o psroi_pooling_op_gpu.cu.cc
-I $TF_INC -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -arch=sm_52

#g++ -std=c++11 -shared -o psroi_pooling.so psroi_pooling_op.cc
#psroi_pooling_op.cu.o -I $TF_INC -fPIC -lcudart -L $CUDA_PATH/lib64

#if you install tf using already-built binary, or gcc version 4.x, uncomment the two lines below g++ -std=c++11 -shared -D_GLIBCXX_USE_CXX11_ABI=0 -o psroi_pooling.so psroi_pooling_op.cc
psroi_pooling_op.cu.o -I $TF_INC -fPIC -lcudart -L $CUDA_PATH/lib64

yasserabbass avatar Feb 04 '17 01:02 yasserabbass

@civilman628 thanks, your answer helped me!

xylcbd avatar Mar 20 '17 07:03 xylcbd

I am still seeing this error even though it seems like a fix has been pushed

lawrencelm avatar Jun 03 '17 01:06 lawrencelm

adding -D_GLIBCXX_USE_CXX11_ABI=0 in g++ complie line in make.sh file and re-run make

but how?

Jackbrocp avatar Oct 08 '19 08:10 Jackbrocp