Format for each model's output

Hi,

Is there any document or material explain the format for each model’s output?
For example, I would like to know the format of pvstream_output_data when I use yolov8s.hef or resnet_v1_50.hef.

hailo_vstream_read_raw_buffer(m_output_vstreams[0], pvstream_output_data.data(), 
                                            pvstream_output_data.size());

Thx
Yen

Hey @yenchao,

The format of the output for each model can be determined using HailoRT functions:

  • Use hailo_get_output_vstream_info() to get shape and details
  • Use hailo_get_output_vstream_user_format() to determine NHWC/NCHW format
  • Use hailo_get_output_vstream_frame_size() to allocate buffers

For your specific models:

  • YOLOv8s outputs bounding boxes (NMS format)
  • ResNet_v1_50 outputs a classification vector (1,1000)

Check the HailoRT User Guide pages 130-131 for virtual stream info, format, buffer reading, and NMS handling.