openvinotoolkit/openvino

[Good First Issue]: Implement PostProcess "mean/scale" operators method

Open

#23,004 创建于 2024年2月22日

在 GitHub 查看
 (17 评论) (0 反应) (1 负责人)C++ (3,229 fork)auto 404
good first issueno_stale

仓库指标

Star
 (10,286 star)
PR 合并指标
 (平均合并 14天 3小时) (30 天内合并 305 个 PR)

描述

Context

Some customer need run super-resolution models, which need convert original NV12 video data to RGB format with scale/mean before inference and do reversed operations (RGB->NV12 and scale/mean) after inference. Current ov::preprocess::PostProcessSteps doesn't support RGB->NV12 and scale/mean, this ticket is used to implement "scale/mean" operator support.

What needs to be done?

PostProcess supports mean/scale operators:

ov::preprocess::PostProcessSteps &ov::preprocess::PreProcessSteps::mean(const float values);
ov::preprocess::PostProcessSteps &ov::preprocess::PreProcessSteps::mean(const std::vector<float> &values);
ov::preprocess::PostProcessSteps &ov::preprocess::PreProcessSteps::scale(const float values);
ov::preprocess::PostProcessSteps &ov::preprocess::PreProcessSteps::scale(const std::vector<float> &values);
  1. Implement above 4 APIs in posprocess
  2. Add test cases

Example Pull Requests

No response

Resources

target source code: https://github.com/openvinotoolkit/openvino/tree/master/src/core/include/openvino/core/preprocess https://github.com/openvinotoolkit/openvino/tree/master/src/core/src/preprocess

Contact points

@ilya-lavrenov @riverlijunjie

Ticket

No response

贡献者指南