yolov5_nvinferserver_config.txt 2.05 KB
Newer Older
wufan3's avatar
wufan3 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
################################################################################
# SPDX-FileCopyrightText: Copyright (c) 2018-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
#
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related
# documentation and any modifications thereto. Any use, reproduction,
# disclosure or distribution of this material and related documentation
# without an express license agreement from NVIDIA CORPORATION or
# its affiliates is strictly prohibited.
################################################################################

infer_config {
  unique_id: 1
  gpu_ids: [0]
16
  max_batch_size: 1
wufan3's avatar
wufan3 committed
17
18
  backend {
    inputs: [ {
19
      name: "images"
wufan3's avatar
wufan3 committed
20
21
    }]
    outputs: [
22
      {name: "output0"}
wufan3's avatar
wufan3 committed
23
24
    ]
    triton {
25
      model_name: "YOLOV5_FP16"
wufan3's avatar
wufan3 committed
26
27
      version: 1
      model_repo {
wufan3's avatar
wufan3 committed
28
        root: "../../../sugon_samples/triton_model_repo"
wufan3's avatar
wufan3 committed
29
        strict_model_config: true
30
        backend_dir: "/opt/deepstream/third_party/backends"
31
        log_level: 1
wufan3's avatar
wufan3 committed
32
33
34
35
36
      }
    }
  }

  preprocess {
37
    network_format: IMAGE_FORMAT_RGB
wufan3's avatar
wufan3 committed
38
39
40
41
42
    tensor_order: TENSOR_ORDER_LINEAR
    maintain_aspect_ratio: 0
    frame_scaling_hw: FRAME_SCALING_HW_DEFAULT
    frame_scaling_filter: 1
    normalize {
43
      scale_factor: 0.00392157
wufan3's avatar
wufan3 committed
44
45
46
47
48
      channel_offsets: [0, 0, 0]
    }
  }

  postprocess {
49
    labelfile_path: "../../../sugon_samples/labels/YOLOV5/labels.txt"
wufan3's avatar
wufan3 committed
50
    detection {
51
      num_detected_classes: 80
wufan3's avatar
wufan3 committed
52
53
54
55
56
57
58
59
60
      per_class_params {
        key: 0
        value { pre_threshold: 0.4 }
      }
      nms {
        confidence_threshold:0.2
        topk:20
        iou_threshold:0.5
      }
61
      custom_parse_bbox_func: "parseYolov5OutputBoundingBoxFP32"
wufan3's avatar
wufan3 committed
62
63
64
65
66
67
68
    }
  }

  extra {
    copy_input_to_host_buffers: false
    output_buffer_pool_size: 2
  }
69
70
71
72

  custom_lib {
    path: "/opt/deepstream/lib/libnvdsinferserver__customparser_sugon.so"
  }
wufan3's avatar
wufan3 committed
73
74
75
76
77
78
}
input_control {
  process_mode: PROCESS_MODE_FULL_FRAME
  operate_on_gie_id: -1
  interval: 0
}