Hailo Raspberry Pi 5 Examples 25.7.0 Failing with vstream_info missing

Hey all,

I’ve got my PI up and running with AI HAT+ using the following guide: https://www.raspberrypi.com/documentation/computers/ai.html

I then went to install the examples from GitHub - hailo-ai/hailo-rpi5-examples

Using the setup_env script, everything goes smoothly until compiling. Then errors start:

../cpp/yolov8pose_postprocess.cpp:326:109: error: ‘using std::__shared_ptr_access<HailoTensor, __gnu_cxx::_S_atomic, false, false>::element_type = class HailoTensor’ {aka ‘class HailoTensor’} has no member named ‘vstream_info’
  326 |         auto dequantized_output_s = common::dequantize(common::get_xtensor(tensors[i + 1]), tensors[i + 1]->vstream_info().quant_info.qp_scale, tensors[i + 1]->vstream_info().quant_info.qp_zp);
      |                                                                                                             ^~~~~~~~~~~~
../cpp/yolov8pose_postprocess.cpp:326:161: error: ‘using std::__shared_ptr_access<HailoTensor, __gnu_cxx::_S_atomic, false, false>::element_type = class HailoTensor’ {aka ‘class HailoTensor’} has no member named ‘vstream_info’
  326 |         auto dequantized_output_s = common::dequantize(common::get_xtensor(tensors[i + 1]), tensors[i + 1]->vstream_info().quant_info.qp_scale, tensors[i + 1]->vstream_info().quant_info.qp_zp);
      |                                                                                                                                                                 ^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
ERROR:hailo_apps.hailo_app_python.core.installation.compile_cpp:C++ postprocess build failed (exit 1)

Doing a little research I understand:

The issue is an API change in HailoRT 4.23.0. The vstream_info() method has been removed or changed. In newer versions of HailoRT, you typically need to access quantization parameters differently.

I tried going back to the previous tag in git but it required downgrading hailo tappas core to 3.30. That failed as it’s referred to by another package.

Any idea what might be wrong and how to fix? I’d prefer to run the latest examples!

Thanks

Hey @Adam_Spence,

Welcome to the Hailo Community!

Going forward, please use this repo: GitHub - hailo-ai/hailo-apps-infra — this will be our officially supported one. The repo you mentioned is being moved into our community projects and will be open for contributions via PRs.

The one I linked will eventually be renamed to hailo-apps. You should be able to run the examples on version 4.23 without any issues, but if you do run into anything, feel free to reach out—happy to help!