-
Notifications
You must be signed in to change notification settings - Fork 0
/
sentinel.yaml
75 lines (72 loc) · 2.28 KB
/
sentinel.yaml
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
69
70
71
72
73
74
75
%YAML 1.0
---
# Settings file sentinel.yaml
control_port: 5566
logging_port: 5565
default_pump: tcp://data1:5556
socket_dir: /home/pi/sentinel/sockets
# For ring buffer allocations, any potential image size must
# be known in advance. Each of the task_engines need a set of
# ring buffers. Parameters are ((width, height), buffer_length)
ring_buffer_models:
default:
vga: ((640, 480), 5)
sd: ((640, 360), 5)
# Probably no more than three of these on a Raspberry Pi 4B?
# Ideally, one would have a dedicated co-processor for real-time
# response, and others for background maintenance tasks requiring
# only low to moderate CPU resources. Scheduling batch workloads
# into idle time periods is helpful.
task_engines:
Alpha:
classes: [1]
ring_buffers: default
accelerator: ncs2 # [cpu, ncs2, coral]
Bravo1:
classes: [2,3]
ring_buffers: default
accelerator: cpu
Bravo2:
classes: [2,3]
ring_buffers: default
accelerator: cpu
# The list of currently available tasks. These can be configured
# by job class to have an affinity with a particular task engine.
# Each task must have a matching class definition in the TaskFactory
# or include an alias reference to the underlying task.
task_list:
MobileNetSSD_allFrames:
config: /home/pi/sentinel/tasks/MobileNetSSD_allFrames.yaml
chain: GetFaces # optional, next task when this completes
class: 1
GetFaces:
config: /home/pi/sentinel/tasks/GetFaces.yaml
chain: FaceRecon
class: 1
trk_type: obj # desired tracking feed, default = trk
ringctrl: full # [full, trk] default = full
FaceRecon:
config: /home/pi/sentinel/tasks/FaceRecon.yaml
class: 2
trk_type: fd1 # desired tracking feed, default = trk
ringctrl: trk # [full, trk] default = full
FaceSweep:
config: /home/pi/sentinel/tasks/FaceSweep.yaml
class: 2
FaceDataUpdate:
config: /home/pi/sentinel/tasks/FaceDataUpdate.yaml
class: 2
GetFaces2:
alias: GetFaces
config: /home/pi/sentinel/tasks/GetFaces.yaml
chain: FaceRecon
class: 1
DailyCleanup:
config: /home/pi/sentinel/tasks/DailyCleanup.yaml
class: 3
CollectImageSizes:
config: None
class: 2
MeasureRingLatency:
config: /home/pi/sentinel/tasks/MeasureRingLatency.yaml
class: 1