forked from VIAME/VIAME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyolo_v2_detector.pipe
68 lines (51 loc) · 1.75 KB
/
yolo_v2_detector.pipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Multi-Detector CNN Pipeline
#
# Runs pre-trained YOLO v2 object detector
# ===================== GLOBAL PROPERTIES ========================
# global pipeline config
#
config _pipeline:_edge
:capacity 5
# ====================== INPUT FRAME LIST ========================
process input
:: frame_list_input
:image_list_file input_list.txt
:frame_time .03333
:image_reader:type ocv
# =========================== YOLO v2 ============================
process yolo_v2
:: image_object_detector
:detector:type darknet
# Network config, weights, and names
:detector:darknet:net_config models/model2.cfg
:detector:darknet:weight_file models/model2.weights
:detector:darknet:class_names models/yolo_ids.lbl
# Detector parameters
:detector:darknet:thresh 0.001
:detector:darknet:hier_thresh 0.001
:detector:darknet:gpu_index 0
process yolo_v2_kw18_writer
:: detected_object_output
# Type of file to output
:file_name output/yolo_v2_detections.kw18
:writer:type kw18
# Write out FSO classifications alongside tracks
:writer:kw18:write_tot true
:writer:kw18:tot_field1_ids fish
:writer:kw18:tot_field2_ids scallop
process yolo_v2_csv_writer
:: detected_object_output
# Type of file to output
:file_name output/yolo_v2_detections.csv
:writer:type csv
connect from input.image
to yolo_v2.image
connect from yolo_v2.detected_object_set
to yolo_v2_kw18_writer.detected_object_set
connect from input.image_file_name
to yolo_v2_kw18_writer.image_file_name
connect from yolo_v2.detected_object_set
to yolo_v2_csv_writer.detected_object_set
connect from input.image_file_name
to yolo_v2_csv_writer.image_file_name
# -- end of file --