Shakerato

Tensorflow Object Detection Tutorial 본문

Research

Tensorflow Object Detection Tutorial

Shakeratto 2018. 3. 29. 17:51

[Code and Explain] https://github.com/tensorflow/models/tree/master/research/object_detection [Download] https://github.com/tensorflow/models [Related Youtube: sentdex] https://www.youtube.com/watch?v=COlbP62-B-U [Anaconda 3, Create Envirnment for tensorflow 1.4] 1. open 'cmd' as administrator 2. conda update -n base conda 3. conda create -n tensorflow1.4 python=3.5 anaconda 4. [tensorflow-gpu 1.4] - cuda 8.0 should be installed! pip install Iv tensorflow-gpu==1.4.0 [ > tensorflow-gpu 1.5 needs cuda 9.0], install latest version pip install tensorflow-gpu 5. conda install -c anaconda cudnn 6. conda install -c menpo opencv [Tensorflow object_detection important setting] 1. Download Protobuf (https://github.com/google/protobuf/releases/tag/v3.5.1) 2. Create 'protoc_run_yoon.bat' file to convert *.proto to *.py like below (path is up to you) ::------------------------------------------------- @echo off for %%f in (C:/Users/yoon/Desktop/models/research/object_detection/protos/*) do ( call :Sub %%~nf ) :Sub set str=%* set str=%str:(C:)=% echo C:/protoc-3.5.1-win32/bin/protoc object_detection/protos/%str%.proto --python_out=. ::pause ::------------------------------------------------ 3. Run bat file like 'protoc_run_yoon.bat > temp.txt' 4. Go to C:/Users/[Username]/Desktop/models/research/ folder, call 'cmd' and copy all commends in 'temp.txt', paste into 'cmd'

If you want to use another model, follow below link's models


https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md

Comments