################################################################################
# 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: 2
  gpu_ids: [0]
  max_batch_size: 16
  backend {
    triton {
      model_name: "Secondary_VehicleMake"
      version: 1
      model_repo {
        root: "/workspace/shared_docker/packages/opt/nvidia/deepstream/deepstream-7.1/sugon_samples/triton_model_repo_NV"
        strict_model_config: true
        backend_dir: "/workspace/shared_docker/packages/opt/nvidia/deepstream/deepstream-7.1/sugon_samples/backends"
      }
    }
  }

  preprocess {
    network_format: IMAGE_FORMAT_BGR
    tensor_order: TENSOR_ORDER_LINEAR
    maintain_aspect_ratio: 0
    frame_scaling_hw: FRAME_SCALING_HW_DEFAULT
    frame_scaling_filter: 1
    normalize {
      scale_factor: 1
    }
  }

  postprocess {
    labelfile_path: "/workspace/shared_docker/packages/opt/nvidia/deepstream/deepstream-7.1/sugon_samples/models/Secondary_VehicleMake/labels.txt"
    classification {
      threshold: 0.51
    }
  }

}
input_control {
  process_mode: PROCESS_MODE_FULL_FRAME
  operate_on_gie_id: -1
  interval: 0
  
  #process_mode: PROCESS_MODE_CLIP_OBJECTS
  #operate_on_gie_id: 1
  #operate_on_class_ids: [0]
  #secondary_reinfer_interval: 90
  #async_mode: true
  #object_control {
  #  bbox_filter {
  #    min_width: 64
  #    min_height: 64
  #  }
  #}
}
