Skip to content

Commit 2c11242

Browse files
committed
update training code
1 parent 9ab36aa commit 2c11242

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

detect.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
from tensorflow.compat.v1 import InteractiveSession
1515

1616
flags.DEFINE_string('framework', 'tf', '(tf, tflite, trt')
17-
flags.DEFINE_string('weights', './checkpoints/yolov4-tiny-416',
17+
flags.DEFINE_string('weights', './checkpoints/yolov4-416',
1818
'path to weights file')
1919
flags.DEFINE_integer('size', 416, 'resize images to')
20-
flags.DEFINE_boolean('tiny', True, 'yolo or yolo-tiny')
20+
flags.DEFINE_boolean('tiny', False, 'yolo or yolo-tiny')
2121
flags.DEFINE_string('model', 'yolov4', 'yolov3 or yolov4')
2222
flags.DEFINE_string('image', './data/kite.jpg', 'path to input image')
2323
flags.DEFINE_string('output', 'result.png', 'path to output image')

save_model.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import core.utils as utils
66
from core.config import cfg
77

8-
flags.DEFINE_string('weights', './data/yolov4-tiny.weights', 'path to weights file')
9-
flags.DEFINE_string('output', './checkpoints/yolov4-tiny-416', 'path to output')
10-
flags.DEFINE_boolean('tiny', True, 'is yolo-tiny or not')
8+
flags.DEFINE_string('weights', './data/yolov4.weights', 'path to weights file')
9+
flags.DEFINE_string('output', './checkpoints/yolov4-416', 'path to output')
10+
flags.DEFINE_boolean('tiny', False, 'is yolo-tiny or not')
1111
flags.DEFINE_integer('input_size', 416, 'define input size of export model')
1212
flags.DEFINE_float('score_thres', 0.2, 'define score threshold')
1313
flags.DEFINE_string('framework', 'tf', 'define what framework do you want to convert (tf, trt, tflite)')

0 commit comments

Comments
 (0)