################################################################################ # Copyright (c) 2020 NVIDIA Corporation. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. ################################################################################ infer_config { unique_id: 1 gpu_ids: [0] max_batch_size: 1 backend { inputs: [ { name: "data" }] outputs: [ {name: "prob"} ] trt_is { model_name: "retinaface" version: -1 model_repo { root: "/yolo/sec-models" log_level: 1 strict_model_config: true } } } preprocess { network_format: IMAGE_FORMAT_BGR tensor_order: TENSOR_ORDER_LINEAR tensor_name: "data" maintain_aspect_ratio: 1 frame_scaling_hw: FRAME_SCALING_HW_DEFAULT frame_scaling_filter: 1 normalize { scale_factor: 1.0 channel_offsets: [104.0, 117.0, 123.0] } } postprocess { labelfile_path: "/yolo/yolov4_deepstream/deepstream_yolov4/labels_retina.txt" detection { num_detected_classes: 1 custom_parse_bbox_func: "NvDsInferParseCustomRetinaFace" #nms { #confidence_threshold: 0.3 #iou_threshold: 0.3 #} } } extra { copy_input_to_host_buffers: false } custom_lib { path: "/yolo/yolov4_deepstream/deepstream_yolov4/nvdsinfer_custom_impl_retina/libnvdsinfer_custom_impl_retina.so" } } input_control { process_mode: PROCESS_MODE_FULL_FRAME interval: 0 } output_control { detect_control { default_filter { bbox_filter { min_width: 32, min_height: 32 } } } }