Hi Michael,
this is my code:
from hailo_inference import HailoInfer
net = “/home/armin/hailo_compile/testadd.hef”
#the parameter input_type cause an error
#hailo_inference = HailoInfer(hef_path = net,batch_size=1, input_type=“FLOAT32”, output_type=“FLOAT32”)
hailo_inference = HailoInfer(hef_path = net,batch_size=1, output_type=“FLOAT32”)
#here I get the shape only from one input
dest_hh, dest_ww, _ = hailo_inference.get_input_shape()
random_input1 = np.random.rand([256,256,3]).astype(np.float32)
random_input2 = np.random.rand([256,256,3]).astype(np.float32)
input_batch = [
{
“testadd/input_layer1”: random_input1,
“testadd/input_layer2”: random_input2
}
]
output_queue = queue.Queue(10)
inference_callback_fn = partial(
inference_callback,
input_batch=input_batch,
output_queue=output_queue
)
#here I get another error
job = hailo_inference.run(input_batch, inference_callback_fn)
regards
Armin