Examples from https://github.com/hailo-ai/hailo-rpi5-examples do not build

I tried to build the examples in GitHub - hailo-ai/hailo-rpi5-examples as shown in the doc, but it failed with

../cpp/depth_estimation.cpp:29:136: 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’
   29 |     xt::xarray<float> logits_dequantized = common::dequantize(tensor_data, tensor_ptr->vstream_info().quant_info.qp_scale, tensor_ptr->vstream_info().quant_info.qp_zp);
      |                                                                                                                                        ^~~~~~~~~~~~

Do I need to downgrade some libraries?

@Christophe_Bernard , I faced a similar issue when trying to build the same examples. I switched to GitHub - hailo-ai/hailo-apps-infra , built it, and was able to run the same kind of examples from here.

Thank you for sharing this. I’ll attempt this approach.

I was having the same issue as OP.

I swear I’ve never come across a product (Pi AI Hat+) with so many roadblocks. Literally every path I’ve tried, over nearly 6 months, has failed for one reason or another. All compounded by contradictory or incomplete documentation, having to hunt for resources, examples lacking explanations, critical changes to yolov models from version 1 to 2, but no reference to the different versions in the Model Zoo, and the frustrations continue…

Hey @Christophe_Bernard, @user337, @Naveenkumar_K,

Sorry for any confusion here!
Just wanted to give you all a heads up - we recently announced that GitHub - hailo-ai/hailo-rpi5-examples will be our community projects repo where everyone can contribute, while GitHub - hailo-ai/hailo-apps-infra is our main apps repo (which will be renamed to hailo-apps). We’re consolidating all our official apps, Gen-AI projects, and direct API apps under hailo-apps-infra, so we recommend using that going forward.

As for the bug in the RPi5 examples repo - thanks for flagging it! We’re on it and should have a fix pushed either today or tomorrow.

Thanks for your patience!

1 Like

Thank you. Please let me know when those are online and I’ll try those out.