Hello,
I am trying to integrate a Hailo 8 module into an existing (windows) application, using the C library, using an existing 320x320 (yolo3) network. I need to interact with different input streams, using different input resolutions. I am currently performing a bilinear resampling in software, and this is slow.
I know I can perform input resampling within the Hailo module by adding a model script containing a resize
layer. However, from what I understand I need to add this script prior to the optimization and compilation steps. This means my .hef file is hard-coded to a specific input resolution; if I want to support multiple resolutions I would end up with multiple .HEFs, which are individually optimized. This isn’t optimal.
- Is there a way to change the input resolution of a (v)stream at runtime, using only the libhailort library? I don’t think there is, but there’s no harm in asking.
- Is there a way to separate the input resampling from the actual inference, so that I can use the same inference network (with the same quantisation!) on multiple resolutions. I feel like network groups were intended for this exact purpose, but they seem to require individual hefs for every network.
- How can I create a HEF which performs only resampling?
I’m probably asking for something obvious, but I’m not a data scientist and am getting confused by the documentation. If there is an existing example how to achieve something like this, I would appreciate it if someone pointed it out.