forked from insight-platform/Savant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.yml
More file actions
76 lines (71 loc) · 2.2 KB
/
demo.yml
File metadata and controls
76 lines (71 loc) · 2.2 KB
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
76
# module name, required
name: ${oc.env:MODULE_NAME, 'demo'}
# base module parameters
parameters:
# pipeline processing frame parameters
frame:
width: 1280
height: 720
output_frame:
codec: ${oc.env:CODEC, 'jpeg'}
# PyFunc for drawing on frames (default implementation)
draw_func:
rendered_objects:
yolov8m:
person:
bbox:
border_color: 'FF0000FF' # Red
background_color: '00000000' # transparent
thickness: 5
label:
# RGBA color values for person label's font and background
font_color: '000000ff'
background_color: 'FF0000FF'
position:
position: 'TopLeftInside'
coco:
person:
bbox:
border_color: '00FF00FF' # Green
background_color: '00000000' # transparent
thickness: 5
padding:
top: 10
left: 10
bottom: 10
right: 10
label:
# RGBA color values for person label's font and background
font_color: '000000ff'
background_color: 'FF0000FF'
position:
position: 'TopLeftOutside'
# pipeline definition
pipeline:
# source definition is skipped, zeromq source is used by default to connect with source adapters
# define pipeline's main elements
elements:
# detector
- element: nvinfer@detector
name: yolov8m
model:
remote:
url: s3://savant-data/models/yolov8m_f630b10/yolov8m_f630b10.zip
checksum_url: s3://savant-data/models/yolov8m_f630b10/yolov8m_f630b10.md5
parameters:
endpoint: https://eu-central-1.linodeobjects.com
format: onnx
config_file: config_infer_primary_yoloV8.txt
# max GPU RAM used to build the engine, 6GB by default
# set lower than total GPU RAM available on your hardware
workspace_size: 6144
output:
objects:
- class_id: 0
label: person
- element: pyfunc
module: samples.source_adapter_with_json_metadata.metric
class_name: IOU
kwargs:
ground_truth: coco
element_name: yolov8m