[Good First Issue] PostProcess supports RGB->NV12 color convert function
#22,985 opened on Feb 21, 2024
Repository metrics
- Stars
- (10,286 stars)
- PR merge metrics
- (Avg merge 14d 3h) (305 merged PRs in 30d)
Description
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 RGB->NV12 support.
What needs to be done?
PostProcess support RGB->NV12:
ov::preprocess::PostProcessSteps &ov::preprocess::PostProcessSteps::convert_color(const ov::preprocess::ColorFormat &dst_format);
- Implement above API, maybe can implement
op::v8::RGBtoNV12to do color convert, similar toop::v8::NV12toRGBfor preprocess. - Support
ColorFormat::NV12_SINGLE_PLANE - Support
ColorFormat::NV12_TWO_PLANES, can set subname forYandUVplane tensors - Add test cases
Example Pull Requests
No response
Resources
-
Intel DevHub Discord channel - engage in discussions, ask questions and talk to OpenVINO developers
-
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