-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: PrePostProcessor.postprocess().convert_color() #26424
Comments
Hi @hzk7287 |
[ INFO ] Loading model files: video_interprolation.xml Postprocessor: Output "output": After I add ".convert_color(ColorFormat::NV12_SINGLE_PLANE) or .convert_color(ColorFormat:BGR). I get the following error. By the way, after I delete the convert_color function, it is OK ,but I do not want an image using RGB format, while I want an image using NV12 format. Thank you very much ! |
OpenVINO Version
2024.3.0.16041-1e3b88e4e3f-releases/2024/3
Operating System
Windows System
Device used for inference
GPU
Framework
None
Model used
https://drive.google.com/drive/folders/1Na9z_qT3WC0gBUERhUK7d3EmDLGet-XB?usp=drive_link
Issue description
My model is a video interpolation model. The input of the model is two images.
My code is below:
ov::preprocess::PrePostProcessor ppp = ov::preprocess::PrePostProcessor::PrePostProcessor(model); //hzk
std::cout << "Preprocessor: " << ppp << std::endl;
setmodel = ppp.build();
It is OK now.
But there is a error when I continue using the following code
ov::preprocess::PrePostProcessor pppimage = ov::preprocess::PrePostProcessor::PrePostProcessor(setmodel); //hzk
// pppimage.output(0).tensor().set_element_type(ov::element::f32);
// pppimage.output(0).tensor().set_layout("NCHW");
// ov::preprocess::OutputModelInfo& OutputModel = pppimage.output(0).model();
// OutputModel.set_layout("NHWC");
// OutputModel.set_color_format(ov::preprocess::ColorFormat::RGB);
If I change NV12_SINGLE_PLANE to BGR, I still get a error.
Thank you !
Step-by-step reproduction
No response
Relevant log output
No response
Issue submission checklist
The text was updated successfully, but these errors were encountered: