Skip to content

Commit

Permalink
modify yolo_video usage description(qqwweee#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
b02902131 authored and qqwweee committed Jun 12, 2018
1 parent 998d70d commit 1cf9ec8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A Keras implementation of YOLOv3 (Tensorflow backend) inspired by [allanzelener/
```
wget https://pjreddie.com/media/files/yolov3.weights
python convert.py yolov3.cfg yolov3.weights model_data/yolo.h5
python yolo.py OR python yolo_video.py
python yolo.py OR python yolo_video.py [video_path] [output_path(optional)]
```

For Tiny YOLOv3, just do in a similar way. And modify model path and anchor path in yolo.py.
Expand Down
6 changes: 4 additions & 2 deletions yolo_video.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys

if len(sys.argv) < 2:
print("Usage: $ python {0} [video_path, [, output_path]]", sys.argv[0])
print("Usage: $ python {0} [video_path] [output_path(optional)]", sys.argv[0])
exit()

from yolo import YOLO
Expand All @@ -11,4 +11,6 @@
video_path = sys.argv[1]
if len(sys.argv) > 2:
output_path = sys.argv[2]
detect_video(YOLO(), video_path, output_path)
detect_video(YOLO(), video_path, output_path)
else:
detect_video(YOLO(), video_path)

0 comments on commit 1cf9ec8

Please sign in to comment.