Hi Hailo team,
I’ve been trying to run inference on a Raspberry Pi 5 with the Hailo-8L using both my own .hef
and the officially provided cas_vit_s.hef
, but I consistently receive the following error:
[HailoRT] [error] Trying to write to vstream before its network group is activated
HailoRTNetworkGroupNotActivatedException
Here’s what I’ve confirmed:
My
.hef
file is compiled for HAILO8L
, verified via hailortcli parse-hef
I’m using a known-good
.hef
(cas_vit_s.hef
) from the Model Zoo
I’m calling
network_group.activate()
before creating InferVStreams
I’m passing a
uint8
, contiguous NumPy tensor of the correct size (e.g., (384, 384, 384, 3)
for cas_vit_s
)
I’ve tested using a minimal script (see below), rebooted
Still, inference fails with the same activation error
from pathlib import Path
import numpy as np
from hailo_platform import (
HEF, VDevice, ConfigureParams, HailoStreamInterface,
InputVStreamParams, OutputVStreamParams, InferVStreams
)
hef = HEF("cas_vit_s.hef")
vdev = VDevice()
config = ConfigureParams.create_from_hef(hef, interface=HailoStreamInterface.PCIe)
network_group = vdev.configure(hef, config)[0]
network_group.activate()
input_params = InputVStreamParams.make(network_group)
output_params = OutputVStreamParams.make(network_group)
input_name = list(input_params.keys())[0]
output_name = list(output_params.keys())[0]
dummy_input = np.random.randint(0, 255, size=(384, 384, 384, 3), dtype=np.uint8)
dummy_input = np.ascontiguousarray(dummy_input)
with InferVStreams(network_group, input_params, output_params) as pipeline:
output = pipeline.infer({input_name: dummy_input})
Any idea what might be causing this consistent activation error, even in a minimal test?
Thanks so much for your help — and for this great platform.