Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running onnx runtime #146

Open
arunbpf opened this issue Jun 13, 2024 · 1 comment
Open

Error while running onnx runtime #146

arunbpf opened this issue Jun 13, 2024 · 1 comment

Comments

@arunbpf
Copy link

arunbpf commented Jun 13, 2024

Hi,

I am trying to run onnx-yolo example using miguelaeh/pipeless docker image. Stage is created successfully, but when adding a stream and running the pipeline, I am getting the below error.

ERROR pipeless_ai::stages::languages::python] Error executing hook: AttributeError: 'numpy.ndarray' object has no attribute 'get'
[2024-06-13T06:40:27Z WARN  pipeless_ai::pipeline] No frame returned from path execution, skipping frame forwarding to the output (if any)

Looks like there is no output frame coming from the runtime, not sure why. I was able to use the same input video with the yolo example (pytorch) successfully and get the output video. I am using file input and output. Would really appreciate any help regarding this issue.

@miguelaeh
Copy link
Collaborator

Hello @arunbpf ,

I guess there is some error in the post-processing code. Maybe we have some typo I the example. Taking a quick look it could be happening in this line:

boxes, scores, class_ids = postprocess_yolo(frame.shape, yolo_input_shape, model_output.get("output0", []))
in the model_output.get.

Could you try adding a print before that line to see the actual content of model_output? It seems like it is directly a numpy array and not a dict. You should have the stage locally in a folder so you can directly modify the code there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants