server icon indicating copy to clipboard operation
server copied to clipboard

Ensemble retrieve the input from the incorrect memory address

Open edwardpwtsoi opened this issue 6 months ago • 0 comments

Description The ensemble model could not retrieve the correct input from the output

Screenshot 2024-08-08 at 3 34 30 PM

Triton Information NGC docker image nvcr.io/nvidia/tritonserver:24.07-py3

Ensemble Config

# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#  * Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#  * Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#  * Neither the name of NVIDIA CORPORATION nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

name: "ensemble_model"
platform: "ensemble"
max_batch_size: 0
input [
  {
    name: "input_image"
    data_type: TYPE_UINT8
    dims: [ 1, -1 ]
  }
]
output [
  {
    name: "recognition_output"
    data_type: TYPE_FP32
    dims: [ -1, 6625 ]
  },
  {
    name: "boxes"
    data_type: TYPE_FP32
    dims: [ -1, 5 ]
  }
]

ensemble_scheduling {
  step [
    {
      model_name: "detection_preprocessing"
      model_version: -1
      input_map {
        key: "detection_preprocessing_input"
        value: "input_image"
      }
      output_map {
        key: "detection_preprocessing_output_1"
        value: "preprocessed_image"
      }
      output_map {
        key: "detection_preprocessing_output_2"
        value: "image_shape"
      }
    },
    {
      model_name: "text_detection"
      model_version: -1
      input_map {
        key: "x"
        value: "preprocessed_image"
      }
      output_map {
        key: "sigmoid_0.tmp_0"
        value: "score_map"
      }
    },
    {
      model_name: "detection_postprocessing"
      model_version: -1
      input_map {
        key: "detection_postprocessing_input_1"
        value: "score_map"
      }
      input_map {
        key: "detection_postprocessing_input_2"
        value: "preprocessed_image"
      }
      input_map {
        key: "detection_postprocessing_input_3"
        value: "image_shape"
      }
      output_map {
        key: "detection_postprocessing_output_1"
        value: "cropped_images"
      }
      output_map {
        key: "detection_postprocessing_output_2"
        value: "boxes"
      }
    },
    {
      model_name: "text_recognition"
      model_version: -1
      input_map {
        key: "x"
        value: "cropped_images"
      }
      output_map {
        key: "softmax_5.tmp_0"
        value: "recognition_output"
      }
    }
  ]
}


edwardpwtsoi avatar Aug 08 '24 07:08 edwardpwtsoi