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

OpenVino crashes Frigate Add-on in HAOS #213

Open
iparout opened this issue Feb 22, 2025 · 4 comments
Open

OpenVino crashes Frigate Add-on in HAOS #213

iparout opened this issue Feb 22, 2025 · 4 comments

Comments

@iparout
Copy link

iparout commented Feb 22, 2025

Hi.

I am a total noob i this but I have managed to install HA in a Proxmox VM about a week ago. I want to add Frigate. After hours of trying and by following this video, I finally managed to make the HA Frigate add-on work. It now shows my feeds, however the CPU utilization is high (I am using an N100 Firebat T8 Pro Plus miniPC).

I wanted to try OpenVino. After many hours and by using ChatGPT (!) I have managed to pass the GPU to HA.

I added the following lines to frigate.yaml

Image

The GPU is accessible from Frigate's Container

Image

And this is the Ovenvivo info

Image

Still, when STARTING the Frigate addon, it stops, giving me the following error in the log

**[GPU] Can't get OPTIMIZATION_CAPABILITIES property as no supported devices found or an error happened during devices query.

[GPU] Please check OpenVINO documentation for GPU drivers setup guide.**

Any help ? I am about to give up !

@NickM-27
Copy link
Contributor

Your config is entirely wrong, see the docs https://docs.frigate.video/configuration/object_detectors/#ssdlite-mobilenet-v2

@iparout
Copy link
Author

iparout commented Feb 22, 2025

Your config is entirely wrong, see the docs https://docs.frigate.video/configuration/object_detectors/#ssdlite-mobilenet-v2

Thanks for helping out. After 30 years as a Windows user, this last month has been a huge road uphill.

I inserted the following in frigate.yaml as per your recommendation

Image

I still get the following error and Frigate add-on stops

2025-02-22 16:29:32.418417340 File "/usr/local/lib/python3.9/dist-packages/openvino/runtime/ie_api.py", line 543, in compile_model
2025-02-22 16:29:32.418418356 super().compile_model(model, device_name, {} if config is None else config),
2025-02-22 16:29:32.418419338 RuntimeError: Exception from src/inference/src/cpp/core.cpp:121:
2025-02-22 16:29:32.418420254 Check '!m_device_map.empty()' failed at src/plugins/intel_gpu/src/plugin/plugin.cpp:379:
2025-02-22 16:29:32.418430781 [GPU] Can't get OPTIMIZATION_CAPABILITIES property as no supported devices found or an error happened during devices query.
2025-02-22 16:29:32.418431864 [GPU] Please check OpenVINO documentation for GPU drivers setup guide.

Everything runs completely fine if I dont input the detectors : part in the yaml. I just get a huge CPU load !!

@NickM-27
Copy link
Contributor

Looks like the GPU is not passed through to Frigate

Does HA OS have access to the GPU?

@iparout
Copy link
Author

iparout commented Feb 24, 2025

Looks like the GPU is not passed through to Frigate

Does HA OS have access to the GPU?

Yeah. The GPU is passed though to the HA VM in Proxmox successfully and, as you can see in the 2nd screenshot of the OP, running ls /dev/dri from within HA terminal shows the graphic card is there. After spending 2 days trying to figure it out, I gave up.

I installed Frigate as an LXC container using ttek's script. After disabling GPU passthrough to the HA VM, Frigate's LCX container successfully used Openvino GPU. If I didn't disable GPU passthrough to the HA VM, Frigate LCX container couldn't access card0 and gave the same error as Frigate's HA add-on.

I honestly don't understand why the Frigate HA add-on had such a weird behavior. Things just work now though, so I'll leave them as they are.

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