forked from insight-platform/Savant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.yml
More file actions
85 lines (78 loc) · 2.61 KB
/
Copy pathmodule.yml
File metadata and controls
85 lines (78 loc) · 2.61 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
77
78
79
80
81
82
83
84
85
# module name, required
name: ${oc.env:MODULE_NAME, 'file_processing'}
# base module parameters
parameters:
# pipeline processing frame parameters
output_frame:
codec: ${oc.env:CODEC, 'raw-rgba'}
# PyFunc for drawing on frames (default implementation)
draw_func:
module: savant.deepstream.drawfunc
class_name: NvDsDrawFunc
rendered_objects:
detector:
person:
bbox:
border_color: 'FFFFFFFF' # Green
background_color: '00000077' # semi-transparent black
thickness: 2
label:
format: [ '{label}' ]
font_color: 'FFFFFFFF' # White
background_color: '000000AA' # semi-transparent black
border_width: 2
border_color: 'FFFFFFFF' # white
padding: [10, 0, 10, 0] # left, top, right, bottom
position:
position: TopLeftOutside
margin_x: 0
margin_y: -10
detected_object:
id: 0
label: person
default_yolo_converter:
module: savant.converter.yolo
class_name: TensorToBBoxConverter
kwargs:
confidence_threshold: 0.25
nms_iou_threshold: 0.45
top_k: 300
default_yolo_selector:
module: savant.selector.detector
class_name: MinMaxSizeBBoxSelector
kwargs:
min_width: 30
min_height: 30
batch_size: 1
# pipeline definition
pipeline:
# source definition is skipped, zeromq source is used by default to connect with source adapters
# define pipeline's main elements
elements:
# primary detector element, inference is provided by the nvinfer Deepstream element
# model type is detector (other available types are: classifier, custom)
- element: nvinfer@detector
name: detector
model:
remote:
url: s3://savant-data/models/yolo11n/yolo11n.zip
checksum_url: s3://savant-data/models/yolo11n/yolo11n.md5
parameters:
endpoint: https://eu-central-1.linodeobjects.com
format: onnx
model_file: yolo11n.onnx
batch_size: ${parameters.batch_size}
workspace_size: 6144
input:
shape: [3, 640, 640]
scale_factor: 0.0039215697906911373
maintain_aspect_ratio: true
symmetric_padding: true
output:
layer_names: [output0]
num_detected_classes: 80 # required for YOLOv11
converter: ${parameters.default_yolo_converter}
objects:
- class_id: ${parameters.detected_object.id}
label: ${parameters.detected_object.label}
selector: ${parameters.default_yolo_selector}