-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tianqi-li
committed
Feb 8, 2017
1 parent
8c35ba8
commit 58090bb
Showing
3 changed files
with
51 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# YOLOv2の訓練済みモデル実行手順 | ||
darknetオリジナルの重みパラメータファイルをchainerで読み込んで実行するための手順です。<a href="http://qiita.com/ashitani/items/566cf9234682cb5f2d60">こちら</a>を参考にさせて頂きました。 | ||
|
||
1、yolov2学習済みweightsファイルをダウンロードする。 | ||
|
||
|
||
``` | ||
wget http://pjreddie.com/media/files/yolo.weights | ||
``` | ||
|
||
2、以下のコマンドでweightsファイルをchainer用にパースする。 | ||
|
||
``` | ||
python yolov2_darknet_parser.py yolo.weights | ||
``` | ||
|
||
3、以下のコマンドで好きな画像ファイルを指定して物体検出を行う。 | ||
検出結果は`yolov2_result.jpg`に保存される。 | ||
|
||
``` | ||
python yolov2_darknet_predict.py data/people.png | ||
``` | ||
|
||
|
||
4、以下のコマンドで、カメラを起動しリアルタイム物体検出を行う。 | ||
|
||
``` | ||
python yolov2_darknet_camera.py | ||
``` |