Skip to content
Advertisement

OpenVINO API 2.0 output tensor cannot convert to image

This is the follow-up question from here.

I try to use YOLOv4 model to do the inference with OpenVINO API 2.0.

JavaScript

Afterwards, I want to convert the output_tensor to image.

I have referenced Single Image Super Resolution and Super Resolution with PaddleGAN on OpenVINO docs but in vain.

And I also try to use Image.fromarray to convert it.

The error always happens below.

JavaScript

How can I deal with openvino.pyopenvino.Tensor propertly?

My environment is Windows 11 with openvino_2022.1.0.643 version.

Advertisement

Answer

Use the data attribute of the Tensor object to access the output tensor data.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement