ubuntu16.04 系统
使用Tensorflow Object Detection API 将VOC转化到tfrecord
1. 准备
pip install tensorflow # 1.7
2. 下载 tensoflow下的model模块
https://github.com/tensorflow/models
3. 安装models中需要的一些环境
参考 https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md
3.1 配置probuf
# From tensorflow/models/research/
wget -O protobuf.zip https://github.com/google/protobuf/releases/download/v3.0.0/protoc-3.0.0-linux-x86_64.zip
unzip protobuf.zip
./bin/protoc object_detection/protos/*.proto --python_out=.
3.2 Add Libraries to PYTHONPATH
# From tensorflow/models/research/
export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim