Error when testing webcam on the local server

Im trying to test my model with webcam and local server. this is the error that popped up. please help

ERROR:inference:{“event”: “Could not send prediction and/or frame to sink due to error: ‘int’ object has no attribute ‘numpy_image’.”, “timestamp”: “2025-01-25 19:22.34”, “filename”: “sinks.py”, “func_name”: “multi_sink”, “lineno”: 364}

Hi @Hai_Nguyen ,

Thank you for reporting this issue.

Can you share what is the inference version you use?

Also with regards to your workflow - can you share configuration of your workflow outputs?

Thanks,
Grzegorz

Hi Grzergorz the workflow is


i can’t check the version of inference, i use “pip3 install inference-cli” and when i type “inference --version” it showed this “/Users/nguyenhohai88/Library/Python/3.9/lib/python/site-packages/urllib3/init.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the ‘ssl’ module is compiled with ‘LibreSSL 2.8.3’. See: urllib3>=2.0 does not work with system Python on macOS · Issue #3020 · urllib3/urllib3 · GitHub

Thanks @Hai_Nguyen ,

In your outputs you can reorder them - the first output is what inference will try to send back to the viewer. I suspect your image output is not the first one in the list of outputs.

You can reorder outputs by using arrow buttons like the one in the screenshot below

Hope this helps,
Grzegorz

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.