yongyong-e
[Tensorflow Object Detection API] How to install 본문
[Tensorflow Object Detection API] How to install
Yonghan Kim 2017. 7. 28. 17:24▶ Preparations
git을 통해 tensorflow models을 다운로드
$ git clone https://github.com/tensorflow/models
▶ Dependencies
# For CPU pip install tensorflow # For GPU pip install tensorflow-gpu
Using apt-get
sudo apt-get install protobuf-compiler python-pil python-lxml pip install jupyter pip install matplotlib
Using pip
pip install pillow pip install lxml pip install jupyter pip install matplotlib
▶ Protobuf Compilation
# models/
protoc object_detection/protos/*.proto --python_out=.
▶ Add Libraries to PYTHONPATH
# models/
export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim
▶ Testing the install
# models/
python object_detection/builders/model_builder_test.py
.......
----------------------------------------------------------------------
Ran 7 tests in 0.026s
OK
▶ Install object_detection
마지막으로, models디렉토리 에서 다음 스크립트를 실행하여 object_dection 라이브러리를 설치 할 수 있다.
sudo python setup.py install
설치도중 이와 같은 에러가 날 경우
python-setuptools 설치를 통해 해결 할 수 있다.
sudo apt-get install python-setuptools
'머신러닝 > Tensorflow - Models' 카테고리의 다른 글
[Tensorflow Object Detection API] 2. Training your own dataset (11) | 2017.08.30 |
---|---|
[Tensorflow Object Detection API] 1. Creating your own dataset (25) | 2017.08.29 |
[Tensorflow-Slim] Convert to TFRecord file (0) | 2017.08.16 |
[Tensorflow-Slim] Tutorial (0) | 2017.08.14 |
[Tensorflow Object Detection API] Training a pet detector (0) | 2017.08.03 |