Tensorflow运行github上Faste-rcnn各种问题解决方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ssmixi/article/details/75147532

环境:

1) Tesnsforflow 1.0.1
(查看方式:
source activate tensorflow ;
python -c 'import tensorflow as tf;print(tf.__version__)'
)

2) python 3.6

3) 本文调式的faster-rcnn的源码为:
https://github.com/CharlesShang/TFFRCNN/issues/14 (本文调式源码)
https://github.com/smallcorgi/Faster-RCNN_TF (与上类似,不同人而已)
http://blog.csdn.net/linolzhang/article/details/70306003 (中文参考 )

大部分问题都是环境不同导致的,所以请先确定自己的环境,github 上faster-rcnn代码的环境为:tensorflow1.0,python 2.x.

以下问题基本都是回忆的,后悔调式时没记载各种问题。
http://lib.csdn.net/article/deeplearning/50580?knId=1753
(源码中各文件夹的意思)

各种问题及解决:

问题1
各种库安装:
cython 、yaml 、easydict等各种所需的库
问题2

# 编译代码,打开lib文件夹下的make.sh,根据提示修改,如果是 binary版本的 TensorFlow,需要关闭 D_GLIBCXX_USE_CXX11_ABI=1,改为D_GLIBCXX_USE_CXX11_ABI=0那几行;
其中-arch=sm_52 可根据自己的GPU类型更改,本人GTX1080ti改为61,具体的参考Nvidia官网。

另编译的时候可能会出现:
这里写图片描述
这个不用担心,解释:
http://blog.csdn.net/u012905422/article/details/52904853
问题3
各种模块确实,及“no module named “””
方法:主要是python语言调用导致的问题,demo.py 放到最“父”目录,相对包的导入参考;
http://www.cnblogs.com/ArsenalfanInECNU/p/5346751.html
问题4
各种语法问题,如basestring,xrange主要是这些都为python2中的,python3不一定包含,自行百度解决。
问题5
这里写图片描述
出现keyerror:b’Test’.
解决:
https://github.com/CharlesShang/TFFRCNN/issues/14

猜你喜欢

转载自blog.csdn.net/ssmixi/article/details/75147532