You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on line 67 there is this statement layer_from_shape: dict = {infer_results[key].shape:key for key in infer_results.keys()}
This throws an error because the data type of infer_results[key] is a list (not a numpy array).
Actually, I dont get what this is supposed to do.
It is going to return a dictionary where they keys are the tensor shape, and the values are the model name (in this case "yolox_s_leaky/yolox_nms_postprocess"). It iterates over all the keys, but there is only one key in infer_results
Given that there is only one key in infer_results, I dont see how the code
As written in the example's README, this code is only guaranteed to work on HailoRT v4.16.0. If you are using a newer HailoRT version, this may explain the issue, as we've had many changes since that HailoRT version.
in this code here
https://github.com/hailo-ai/Hailo-Application-Code-Examples/blob/main/runtime/python/streaming/yolox_stream_inference.py
on line 67 there is this statement
layer_from_shape: dict = {infer_results[key].shape:key for key in infer_results.keys()}
This throws an error because the data type of
infer_results[key]
is a list (not a numpy array).Actually, I dont get what this is supposed to do.
It is going to return a dictionary where they keys are the tensor shape, and the values are the model name (in this case "yolox_s_leaky/yolox_nms_postprocess"). It iterates over all the keys, but there is only one key in
infer_results
Given that there is only one key in
infer_results
, I dont see how the codeis supposed to work.
Maybe the .hef file has been changes since this code was written (???). I am using the .hef file specified in the get_resource.sh file
("https://hailo-model-zoo.s3.eu-west-2.amazonaws.com/ModelZoo/Compiled/v2.6.1/yolox_s_leaky.hef")
@nina-vilela : Do you have any idea what's wrong here?
The text was updated successfully, but these errors were encountered: