手机端的yolo:darkflow

mp.weixin.qq.com/s/QOUe1brR46iMaLYvte_1xw
github.com/thtrieu/darkflow 

见:/home/echo/Tensorflow_exercise/darkflow-master

Dependencies

环境先不管
以下都是在tensorflow环境里的

pip install cython

后面无论什么步骤都容易出现问题:

File "/home/echo/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/registry.py", line 62, in register
(self._name, name, function_name, filename, line_number))
KeyError: "Registering two shape functions with name 'Const' !(Previous registration was in /home/echo/anaconda2/lib/python2.7/site-packages/tensorflow/__init__.py:23)"
echo@echo-PC:~/Tensorflow_exercise/darkflow-master$

可能是环境不搭吧,Dependencies的问题

Python3,tensorflow 1.0, numpy, opencv 3.环境下

source activate python34

安装Cpython

wget https://pypi.python.org/packages/b7/67/7e2a817f9e9c773ee3995c1e15204f5d01c8da71882016cac10342ef031b/Cython-0.25.2.tar.gz

[blueelwang@pythontab ~]$ tar xzvf Cython-0.25.2.tar.gz
[blueelwang@pythontab ~]$ cd Cython-0.25.2
[blueelwang@pythontab ~]$ python setup.py install
cd /home/echo/darkflow-master
pip install .
(python34) echo@echo-PC:~/darkflow-master$ pip install .

Processing /home/echo/darkflow-master
Requirement already satisfied (use --upgrade to upgrade): darkflow==1.0.0 from file:///home/echo/darkflow-master in /home/echo/anaconda2/envs/python34/lib/python3.4/site-packages
Building wheels for collected packages: darkflow
Running setup.py bdist_wheel for darkflow ... done
Stored in directory:
/home/echo/.cache/pip/wheels/33/90/2e/a10a2f115481b3cbfd12748ca81ca917f253bae86a04b142a2
Successfully built darkflow
(python34) echo@echo-PC:~/darkflow-master$

你可能感兴趣的:(手机端的yolo:darkflow)