[decoder] Support scaled-output model for yolov5 bounding box decoder
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Fri, 16 Dec 2022 07:12:58 +0000 (16:12 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 23 Dec 2022 09:23:21 +0000 (18:23 +0900)
commit7e023961ff3be3c9def324971205f32278a1a822
treea9984479b12ad86f69ca9faec3c4fa6941089386
parent3aef0341b7bd8f34d7d6a4c0a1ea49a1b1f5c4c4
[decoder] Support scaled-output model for yolov5 bounding box decoder

- The yolov5 models released by github.com/ultralytics/yolov5 have
  different output semantics:
   - the output of tfliteand tf models should be scaled to input image
     size.
   - torchscript and others return scaled output value.
- This patch support those two semantics by add option3:
  - option1=yolov5 ...  option3=0 ... (default) for tflite models
  - option1=yolov5 ...  option3=1 ... for other models

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
ext/nnstreamer/tensor_decoder/tensordec-boundingbox.c