Choix type installation Frigate

Bonjour,

Après avoir écumer le forum et le groupe Fb, je demande vos avis concernant ce que je dois faire pour mon installation Frigate de 3 caméras.
Je viens de passer sous Proxmox avec une VM où tourne HAOS.
Pour l’instant j’ai l’addon Frigate avec OpenVino mais il semble y avoir des problèmes de lenteurs (message « Ov is slow »).
J’ai vu qu’il y a des clés Coral mais avant cela se pose la question du type d’installation dans un container LXC via les helper scripts de tteck ou via docker.
J’ai lu que l’accélération matériel pour le LXC pourrait suffire.
Qu’en pensez vous ? Que dois je faire pour optimiser mon installation Frigate ?

Merci à vous!

Il « semble » ou il y en a ?
Je ne sais pas comment tu utilises frigate, mais, en supposant que tu utilises les alertes sur détections de personne ou autre. Est-ce que ces alertes ne marchent pas ? Est-ce qu’elles arrivent trop tard ?

Est-ce que le CPU du PC Proxmox est à plus de 50% tout le temps ?

Selon le principe « when ain’t break, don’t fix it », je préfère agir quand il y a un vrai problème ou au moins quand ça marche mais vraiment mal.

Sur Proxmox, frigate est moins consommateur de ressource en LXC qu’en VM. Pourquoi, je ne sais pas.
Mais, si c’est pour utiliser les scripts (de tteck ou d’autre) qui transforment tout en boite noire, je ne le ferai pas.

Je n’ai pas de soucis sur les alertes mais j’ai toujours le message en bas à droite donc pour moi c’est qu’il y a un problème à régler concernant la charge. Je cherche donc à savoir si passer en LXC serait bénéfique ou si la galère assurée.
Sur Frigate j’ai cela :

Merci pour ton retour

Il doit y avoir un seuil ou openvino considère que c’est lent. Lequel, aucune idée.
Dans mon installation, j’ai une cle coral usb avec Frigate en docker dans LXC, et l’inférence est de 8ms.
Donc, c’est « mieux ».

Après, sortir Frigate de la VM, le mettre en LXC, sans carte Coral, tu baisseras peut-être à 20ms 30ms ? ça dépend de PC ou tourne proxmox.
Ca plaira (peut-être) à openvino et donc, il n’y aura plus le message.

Est-ce que ça changera réellement ton usage de Frigate ? je dirais non.

Quand à savoir si c’est une galère à installer, ce n’est pas le plus simple à faire, avec le passthrough d’une éventuelle carte coral, c’est encore moins simple.

Est-ce que tout cela sera compensé par le « plaisir » d’un openvino pas orange, chacun est juge :wink:

Que dit proxmox de l’état de la VM ?
Rajouter de la mémoire ou du CPU virtuel à la VM, si tu as les ressources ça suffira peut-être à abaisser l’inférence.

Je ne sais pas mais j’espère juste que j’ai bien OpenVino qui fonctionne correctement car cela me semble haut.
Sur ma VM HA j’ai ça :

C’est effectivement un usage de CPU un tantinet haut, mais, rien de dramatique pour moi. Possibilité d’ajouter plus de processeurs ? Quelle est la configuration physique du serveur proxmox ?
Vu que HA est pour le moment presque tout seul sur proxmox, ça peut valoir le coup de lui donner accès à plus de ressources si le PC en a encore sous le pied.

Le test pour voir si ça marche, c’est de tester une/plusieurs détection(s) et de voir si tu reçois toutes les alertes et avec quels délais.

J’ai un I5 6500 4 coeurs dont 2 affectés à HA. 1 coeur pour AdGuard.
8 Go dont 4 pour HA.
Je debute sous Proxmox, je dois faire quoi? Où ?
Encore merci pour ton aide

Salut,

A mon avis, tu utilise le décodage OpenVimo avec le CPU au lieu du GPU.


Je dis ça car j’ai à peu près la même config HW (i5 6500T):

Ne fais pas attention à la consommation de ram, c’est à cause de Debian, c’est le fonctionnement normal à priori, il alloue tout ce qui est disponible, mais en réalité, tout n’est pas utilisé.

Je ne sais pas comment ça fonctionne en LXC, moi il tourne sur une VM debian dans un conteneur docker, mais il m’a fallu partager le GPU avec la VM pour que ça fonctionne.

Fais un screen de tes log après avoir redémarrer frigate

Bonjour a tous,
Je lis vos échanges , et du coup je me pose des questions sur la pertinence de mon installation :
Mini PC GK3+ Intel Alder Lake- N97
8Go
Promox
Ha en VM
Frigate directement dans HA

Ça peut aller ? Ou je dois amélioré ?

En mettant « GPU » j’ai cela :

2025-02-13 12:53:00.489275958  [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
s6-rc: info: service nginx-log successfully stopped
2025-02-13 12:53:00.739653122  [2025-02-13 13:53:00] frigate.app                    INFO    : Stopping...
2025-02-13 12:53:00.745197754  [2025-02-13 13:53:00] frigate.stats.emitter          INFO    : Exiting stats emitter...
2025-02-13 12:53:00.746142287  [2025-02-13 13:53:00] frigate.ptz.autotrack          INFO    : Exiting autotracker...
2025-02-13 12:53:00.749351217  [2025-02-13 13:53:00] frigate.events.cleanup         INFO    : Exiting event cleanup...
2025-02-13 12:53:00.749354972  [2025-02-13 13:53:00] frigate.record.cleanup         INFO    : Exiting recording cleanup...
2025-02-13 12:53:00.749356730  [2025-02-13 13:53:00] frigate.watchdog               INFO    : Exiting watchdog...
2025-02-13 12:53:00.870645403  [2025-02-13 13:53:00] frigate.storage                INFO    : Exiting storage maintainer...
2025-02-13 12:53:00.873029317  [2025-02-13 13:53:00] frigate.app                    INFO    : Waiting for capture process for entree to stop
2025-02-13 12:53:00.879902546  [2025-02-13 13:53:00] watchdog.entree                INFO    : Terminating the existing ffmpeg process...
2025-02-13 12:53:00.880242037  [2025-02-13 13:53:00] watchdog.entree                INFO    : Waiting for ffmpeg to exit gracefully...
2025-02-13 12:53:00.923946792  [2025-02-13 13:53:00] frigate.object_processing      INFO    : Exiting object processor...
2025-02-13 12:53:01.059795144  [2025-02-13 13:53:01] frigate.events.maintainer      INFO    : Exiting event processor...
2025-02-13 12:53:01.544229782  [2025-02-13 13:53:01] watchdog.entree                INFO    : Terminating the existing ffmpeg process...
2025-02-13 12:53:01.544233711  [2025-02-13 13:53:01] watchdog.entree                INFO    : Waiting for ffmpeg to exit gracefully...
2025-02-13 12:53:02.171265324  [2025-02-13 13:53:02] frigate.app                    INFO    : Waiting for capture process for terrasse to stop
2025-02-13 12:53:02.176974170  [2025-02-13 13:53:02] watchdog.terrasse              INFO    : Terminating the existing ffmpeg process...
2025-02-13 12:53:02.177014445  [2025-02-13 13:53:02] watchdog.terrasse              INFO    : Waiting for ffmpeg to exit gracefully...
2025-02-13 12:53:02.531408770  [2025-02-13 13:53:02] watchdog.terrasse              INFO    : Terminating the existing ffmpeg process...
2025-02-13 12:53:02.531412312  [2025-02-13 13:53:02] watchdog.terrasse              INFO    : Waiting for ffmpeg to exit gracefully...
2025-02-13 12:53:03.157720428  [2025-02-13 13:53:03] frigate.app                    INFO    : Waiting for capture process for chambre to stop
2025-02-13 12:53:03.161355596  [2025-02-13 13:53:03] watchdog.chambre               INFO    : Terminating the existing ffmpeg process...
2025-02-13 12:53:03.162245760  [2025-02-13 13:53:03] watchdog.chambre               INFO    : Waiting for ffmpeg to exit gracefully...
2025-02-13 12:53:03.517763660  [2025-02-13 13:53:03] watchdog.chambre               INFO    : Terminating the existing ffmpeg process...
2025-02-13 12:53:03.517767469  [2025-02-13 13:53:03] watchdog.chambre               INFO    : Waiting for ffmpeg to exit gracefully...
2025-02-13 12:53:04.092395439  [2025-02-13 13:53:04] frigate.app                    INFO    : Waiting for process for entree to stop
2025-02-13 12:53:04.456400373  [2025-02-13 13:53:04] frigate.video                  INFO    : entree: emptying frame queue
2025-02-13 12:53:04.456551545  [2025-02-13 13:53:04] frigate.video                  INFO    : entree: exiting subprocess
2025-02-13 12:53:04.471118417  [2025-02-13 13:53:04] frigate.app                    INFO    : Closing frame queue for entree
2025-02-13 12:53:04.972554150  [2025-02-13 13:53:04] frigate.app                    INFO    : Waiting for process for terrasse to stop
2025-02-13 12:53:05.834908725  [2025-02-13 13:53:05] frigate.video                  INFO    : terrasse: emptying frame queue
2025-02-13 12:53:05.834982165  [2025-02-13 13:53:05] frigate.video                  INFO    : terrasse: exiting subprocess
2025-02-13 12:53:05.848159674  [2025-02-13 13:53:05] frigate.app                    INFO    : Closing frame queue for terrasse
2025-02-13 12:53:06.349158083  [2025-02-13 13:53:06] frigate.app                    INFO    : Waiting for process for chambre to stop
2025-02-13 12:53:06.581222054  [2025-02-13 13:53:06] frigate.video                  INFO    : chambre: emptying frame queue
2025-02-13 12:53:06.582362240  [2025-02-13 13:53:06] frigate.video                  INFO    : chambre: exiting subprocess
2025-02-13 12:53:06.595891335  [2025-02-13 13:53:06] frigate.app                    INFO    : Closing frame queue for chambre
2025-02-13 12:53:07.097094488  [2025-02-13 13:53:07] root                           INFO    : Waiting for detection process to exit gracefully...
2025-02-13 12:53:07.579964059  [2025-02-13 13:53:07] detector.ov                    INFO    : Exited detection process...
2025-02-13 12:53:07.607286982  [2025-02-13 13:53:07] root                           INFO    : Detection process has exited...
2025-02-13 12:53:08.108542014  [2025-02-13 13:53:08] frigate.app                    INFO    : Detection queue closed
2025-02-13 12:53:08.610514232  [2025-02-13 13:53:08] frigate.app                    INFO    : Detected frames queue closed
2025-02-13 12:53:09.112042301  [2025-02-13 13:53:09] frigate.app                    INFO    : Timeline queue closed
s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service certsync-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service frigate-log successfully started
s6-rc: info: service certsync-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service go2rtc-healthcheck successfully started
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
2025-02-13 12:53:18.087929924  [INFO] Starting NGINX...
2025-02-13 12:53:18.092867227  [INFO] Preparing new go2rtc config...
2025-02-13 12:53:18.088013391  [INFO] Preparing Frigate...
2025-02-13 12:53:18.243381326  [INFO] No TLS certificate found. Generating a self signed certificate...
2025-02-13 12:53:18.321837074  [INFO] Got IP address from supervisor: 192.168.1.68
2025-02-13 12:53:18.372339546  [INFO] Got WebRTC port from supervisor: 8556
2025-02-13 12:53:20.443152458  [INFO] Starting Frigate...
s6-rc: info: service nginx successfully started
s6-rc: info: service certsync: starting
2025-02-13 12:53:21.385785594  [INFO] Starting certsync...
s6-rc: info: service certsync successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
2025-02-13 12:53:21.526294550  127.0.0.1 - - [13/Feb/2025:13:53:21 +0100] "" 400 0 "-" "-" "-"
2025-02-13 12:53:22.075058542  2025/02/13 13:53:22 [error] 165#165: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-02-13 12:53:22.075064186  2025/02/13 13:53:22 [error] 165#165: *2 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-02-13 12:53:22.321710867  2025/02/13 13:53:22 [error] 166#166: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:22.321715658  2025/02/13 13:53:22 [error] 166#166: *4 auth request unexpected status: 502 while sending to client, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:27.117028591  2025/02/13 13:53:27 [error] 165#165: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-02-13 12:53:27.117033303  2025/02/13 13:53:27 [error] 165#165: *6 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-02-13 12:53:27.321684795  2025/02/13 13:53:27 [error] 165#165: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:27.321689043  2025/02/13 13:53:27 [error] 165#165: *8 auth request unexpected status: 502 while sending to client, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:28.002162581  [INFO] Starting go2rtc healthcheck service...
2025-02-13 12:53:28.293582910  [INFO] Starting go2rtc...
2025-02-13 12:53:28.700764793  13:53:28.700 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2025-02-13 12:53:28.700784830  13:53:28.700 INF config path=/dev/shm/go2rtc.yaml
2025-02-13 12:53:28.702356905  13:53:28.701 INF [rtsp] listen addr=:8554
2025-02-13 12:53:28.702602405  13:53:28.702 INF [api] listen addr=:1984
2025-02-13 12:53:28.702897312  13:53:28.702 INF [webrtc] listen addr=:8555/tcp
2025-02-13 12:53:32.153335839  2025/02/13 13:53:32 [error] 165#165: *10 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-02-13 12:53:32.153340036  2025/02/13 13:53:32 [error] 165#165: *10 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-02-13 12:53:32.319699102  2025/02/13 13:53:32 [error] 165#165: *12 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:32.319721795  2025/02/13 13:53:32 [error] 165#165: *12 auth request unexpected status: 502 while sending to client, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:37.200316028  2025/02/13 13:53:37 [error] 165#165: *14 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-02-13 12:53:37.200320284  2025/02/13 13:53:37 [error] 165#165: *14 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-02-13 12:53:37.321446614  2025/02/13 13:53:37 [error] 165#165: *16 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:37.321451102  2025/02/13 13:53:37 [error] 165#165: *16 auth request unexpected status: 502 while sending to client, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:42.236673112  2025/02/13 13:53:42 [error] 165#165: *18 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-02-13 12:53:42.236677301  2025/02/13 13:53:42 [error] 165#165: *18 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-02-13 12:53:42.320286292  2025/02/13 13:53:42 [error] 165#165: *20 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:42.320290751  2025/02/13 13:53:42 [error] 165#165: *20 auth request unexpected status: 502 while sending to client, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:47.274970922  2025/02/13 13:53:47 [error] 165#165: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-02-13 12:53:47.274975050  2025/02/13 13:53:47 [error] 165#165: *22 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-02-13 12:53:47.320361378  2025/02/13 13:53:47 [error] 165#165: *24 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:47.320365592  2025/02/13 13:53:47 [error] 165#165: *24 auth request unexpected status: 502 while sending to client, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", host: "ccab4aaf-frigate:5000"
2025-02-13 12:53:49.554859509  [2025-02-13 13:53:49] frigate.util.config            INFO    : Checking if frigate config needs migration...
2025-02-13 12:53:49.607628645  [2025-02-13 13:53:49] frigate.util.config            INFO    : frigate config does not need migration...
2025-02-13 12:53:49.806012456  [2025-02-13 13:53:49] frigate.util.services          WARNING : Did not detect hwaccel, using a GPU for accelerated video decoding is highly recommended
2025-02-13 12:53:49.881302266  [2025-02-13 13:53:49] frigate.app                    INFO    : Starting Frigate (0.15.0-cea210d)
2025-02-13 12:53:49.882005452  [2025-02-13 13:53:49] frigate.app                    INFO    : Creating directory: /tmp/cache
2025-02-13 12:53:50.008253740  [2025-02-13 13:53:50] peewee_migrate.logs            INFO    : Starting migrations
2025-02-13 12:53:50.009017074  [2025-02-13 13:53:50] peewee_migrate.logs            INFO    : There is nothing to migrate
2025-02-13 12:53:50.233254143  [2025-02-13 13:53:50] frigate.app                    INFO    : Recording process started: 328
2025-02-13 12:53:50.233257883  [2025-02-13 13:53:50] frigate.app                    INFO    : Review process started: 329
2025-02-13 12:53:50.237764890  [2025-02-13 13:53:50] frigate.app                    INFO    : go2rtc process pid: 98
2025-02-13 12:53:50.295473559  [2025-02-13 13:53:50] frigate.app                    INFO    : Output process started: 360
2025-02-13 12:53:50.395767961  [2025-02-13 13:53:50] detector.ov                    INFO    : Starting detection process: 331
2025-02-13 12:53:50.419273337  [2025-02-13 13:53:50] frigate.app                    INFO    : Camera processor started for entree: 375
2025-02-13 12:53:50.419940417  [2025-02-13 13:53:50] frigate.app                    INFO    : Camera processor started for terrasse: 390
2025-02-13 12:53:50.420355953  [2025-02-13 13:53:50] frigate.app                    INFO    : Camera processor started for chambre: 391
2025-02-13 12:53:50.465209368  [2025-02-13 13:53:50] frigate.app                    INFO    : Capture process started for entree: 393
2025-02-13 12:53:50.497560821  [2025-02-13 13:53:50] frigate.app                    INFO    : Capture process started for terrasse: 401
2025-02-13 12:53:50.565564983  [2025-02-13 13:53:50] frigate.app                    INFO    : Capture process started for chambre: 407
2025-02-13 12:53:50.805219298  [2025-02-13 13:53:50] frigate.api.fastapi_app        INFO    : Starting FastAPI app
2025-02-13 12:53:51.485995473  [2025-02-13 13:53:51] frigate.api.fastapi_app        INFO    : FastAPI started
2025-02-13 12:53:52.311553968  Process detector:ov:
2025-02-13 12:53:52.311557822  Traceback (most recent call last):
2025-02-13 12:53:52.311559568    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2025-02-13 12:53:52.311560961      self.run()
2025-02-13 12:53:52.311562572    File "/opt/frigate/frigate/util/process.py", line 41, in run_wrapper
2025-02-13 12:53:52.311566750      return run(*args, **kwargs)
2025-02-13 12:53:52.311589303    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2025-02-13 12:53:52.311590848      self._target(*self._args, **self._kwargs)
2025-02-13 12:53:52.311592853    File "/opt/frigate/frigate/object_detection.py", line 121, in run_detector
2025-02-13 12:53:52.311594447      object_detector = LocalObjectDetector(detector_config=detector_config)
2025-02-13 12:53:52.311595908    File "/opt/frigate/frigate/object_detection.py", line 68, in __init__
2025-02-13 12:53:52.311597317      self.detect_api = create_detector(detector_config)
2025-02-13 12:53:52.311622156    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2025-02-13 12:53:52.311623594      return api(detector_config)
2025-02-13 12:53:52.311639131    File "/opt/frigate/frigate/detectors/plugins/openvino.py", line 40, in __init__
2025-02-13 12:53:52.311640610      self.interpreter = self.ov_core.compile_model(
2025-02-13 12:53:52.311642193    File "/usr/local/lib/python3.9/dist-packages/openvino/runtime/ie_api.py", line 543, in compile_model
2025-02-13 12:53:52.311643670      super().compile_model(model, device_name, {} if config is None else config),
2025-02-13 12:53:52.311645102  RuntimeError: Exception from src/inference/src/cpp/core.cpp:121:
2025-02-13 12:53:52.311646563  Check '!m_device_map.empty()' failed at src/plugins/intel_gpu/src/plugin/plugin.cpp:379:
2025-02-13 12:53:52.311662507  [GPU] Can't get OPTIMIZATION_CAPABILITIES property as no supported devices found or an error happened during devices query.
2025-02-13 12:53:52.311664138  [GPU] Please check OpenVINO documentation for GPU drivers setup guide.
2025-02-13 12:53:52.311665467  
2025-02-13 12:53:52.311666674  
2025-02-13 12:53:52.311667740  

Pour info, j’avais vu ce post qui disait de mettre « CPU » à partir de la version 0.14

Je n’avais pas connaissance de ce problème, j’avais une google Coral il n’y a encore pas si longtemps et j’ai migré sur de détecteur OpenVimo car il n’y avait pas de différence avec ma Coral, c’était même légèrement mieux avec OpenVimo au niveau de l’inférence.
Ton GPU est bien partagé dans les réglage hardware de proxmox (regardes sur mon dernier screen)?

Je viens de le faire :

Mais je pense qu’il y a toujours un problème…

2025-02-13 15:17:46.141628976  Process detector:ov:
2025-02-13 15:17:46.141632409  Traceback (most recent call last):
2025-02-13 15:17:46.141634011    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2025-02-13 15:17:46.141635266      self.run()
2025-02-13 15:17:46.141636747    File "/opt/frigate/frigate/util/process.py", line 41, in run_wrapper
2025-02-13 15:17:46.141640958      return run(*args, **kwargs)
2025-02-13 15:17:46.141663981    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2025-02-13 15:17:46.141665476      self._target(*self._args, **self._kwargs)
2025-02-13 15:17:46.141667311    File "/opt/frigate/frigate/object_detection.py", line 121, in run_detector
2025-02-13 15:17:46.141668759      object_detector = LocalObjectDetector(detector_config=detector_config)
2025-02-13 15:17:46.141670111    File "/opt/frigate/frigate/object_detection.py", line 68, in __init__
2025-02-13 15:17:46.141671453      self.detect_api = create_detector(detector_config)
2025-02-13 15:17:46.141693631    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2025-02-13 15:17:46.141694960      return api(detector_config)
2025-02-13 15:17:46.141708519    File "/opt/frigate/frigate/detectors/plugins/openvino.py", line 40, in __init__
2025-02-13 15:17:46.141709945      self.interpreter = self.ov_core.compile_model(
2025-02-13 15:17:46.141711514    File "/usr/local/lib/python3.9/dist-packages/openvino/runtime/ie_api.py", line 543, in compile_model
2025-02-13 15:17:46.141712931      super().compile_model(model, device_name, {} if config is None else config),
2025-02-13 15:17:46.141714272  RuntimeError: Exception from src/inference/src/cpp/core.cpp:121:
2025-02-13 15:17:46.141715662  Check '!m_device_map.empty()' failed at src/plugins/intel_gpu/src/plugin/plugin.cpp:379:
2025-02-13 15:17:46.141731749  [GPU] Can't get OPTIMIZATION_CAPABILITIES property as no supported devices found or an error happened during devices query.
2025-02-13 15:17:46.141733222  [GPU] Please check OpenVINO documentation for GPU drivers setup guide.

J’ai tenté de rajouter cette ligne : hwaccel_args: preset-vaapi

mqtt:
  enabled: true
  host: ip
  user: user
  password: mdp

detectors:
  ov:
    type: openvino
    device: GPU

review:
  alerts:
    labels:
      - person
      - car
      - motorcycle
  detections:
    labels:
      - cat
      - dog
      - bird
model:
  width: 300
  height: 300
  input_tensor: nhwc
  input_pixel_format: bgr
  path: /openvino-model/ssdlite_mobilenet_v2.xml
  labelmap_path: /openvino-model/coco_91cl_bkgr.txt

cameras:
#Caméra entrée
  entree:
    ffmpeg:
      inputs:
        - path: rtsp://user:mdp@ip:554/Streaming/channels/101
          roles:
            - record
        - path: rtsp://user:mdp@ip:554/Streaming/channels/102
          roles:
            - detect
      hwaccel_args: preset-vaapi

Mais cela plante tout.
Pourrais tu me montrer ton fichier de config en comparaison ?

Voici mon fichier de config :
(je ne sais pas pourquoi tout le code est en gris par contre)

mqtt:
  # Optional: Enable mqtt server (default: shown below)
  enabled: true
  # Required: host name
  host: 192.168.*.***
  # Optional: port (default: shown below)
  port: ****
  # Optional: topic prefix (default: shown below)
  # NOTE: must be unique if you are running multiple instances
  topic_prefix: frigate
  # Optional: client id (default: shown below)
  # NOTE: must be unique if you are running multiple instances
  client_id: frigate
  # Optional: user
  # NOTE: MQTT user can be specified with an environment variable or docker secrets that must begin with 'FRIGATE_'.
  #       e.g. user: '{FRIGATE_MQTT_USER}'
  user: ****
  # Optional: password
  # NOTE: MQTT password can be specified with an environment variable or docker secrets that must begin with 'FRIGATE_'.
  #       e.g. password: '{FRIGATE_MQTT_PASSWORD}'
  password: ****

detectors:
  ov:
    type: openvino
    device: GPU

model:
  width: 300
  height: 300
  input_tensor: nhwc
  input_pixel_format: bgr
  path: /openvino-model/ssdlite_mobilenet_v2.xml
  labelmap_path: /openvino-model/coco_91cl_bkgr.txt

birdseye:
  enabled: false

# Optional: Snapshot configuration  
snapshots:
  enabled: true
  # Optional: save a clean PNG copy of the snapshot image (default: shown below)
  clean_copy: true
  # Optional: print a timestamp on the snapshots (default: shown below)
  timestamp: true
  # Optional: draw bounding box on the snapshots (default: shown below)
  bounding_box: true
  # Optional: crop the snapshot (default: shown below)
  crop: false
  # Optional: Camera override for retention settings (default: global values)
  retain:
    # Required: Default retention days (default: shown below)
    default: 15
    # Optional: Per object retention days
    objects:
      person: 15

# Optional: Record configuration
# NOTE: Can be overridden at the camera level
record:
  enabled: true
  # Optional: Number of minutes to wait between cleanup runs (default: shown below)
  # This can be used to reduce the frequency of deleting recording segments from disk if you want to minimize i/o
  expire_interval: 60
  # Optional: Retention settings for recording
  retain:
    # Optional: Number of days to retain recordings regardless of events (default: shown below)
    # NOTE: This should be set to 0 and retention should be defined in events section below
    #       if you only want to retain recordings of events.
    days: 15
    # Optional: Mode for retention. Available options are: all, motion, and active_objects
    #   all - save all recording segments regardless of activity
    #   motion - save all recordings segments with any detected motion
    #   active_objects - save all recording segments with active/moving objects
    # NOTE: this mode only applies when the days setting above is greater than 0
    #mode: active_objects
  # Optional: Event recording settings
  alerts:
    retain:
      days: 15
    pre_capture: 5
    post_capture: 5
  detections:
    retain:
      days: 15
    pre_capture: 5
    post_capture: 5
cameras:
  Garage:
    enabled: true
    ffmpeg:
      hwaccel_args: preset-vaapi
      inputs:
        - path: rtsp://127.0.0.1:8554/frigate1_sub
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://127.0.0.1:8554/frigate1
          input_args: preset-rtsp-restream
          roles:
            - record
#    detect:
#      enabled: true
    objects:
      track:
        - person
        - cat
        - dog
      filters:
        person:
          # Optional: minimum score for the object to initiate tracking (default: shown below)
          min_score: 0.7
          # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
          threshold: 0.7

      mask: 
        0.001,0.646,0.381,0.468,0.504,0.356,0.544,0.279,0.693,0.32,0.709,0.186,0.977,0.267,0.95,0.41,0.67,1,1,1,1,0.15,1,0,0,0
    motion:
      mask: 
        0,0,0,0.647,0.379,0.475,0.5,0.368,0.544,0.285,0.695,0.325,0.707,0.185,0.977,0.268,0.952,0.406,0.671,0.994,0.999,0.996,1,0
    zones:
      sol_garage:
        coordinates: 
          0,0.657,0.393,0.476,0.549,0.305,0.703,0.337,0.716,0.205,0.966,0.275,0.948,0.398,0.666,1,0,1
        loitering_time: 0
  Portail:
    enabled: false
    ffmpeg:
      hwaccel_args: preset-vaapi
      inputs:
        - path: rtsp://127.0.0.1:8554/frigate3_sub
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://127.0.0.1:8554/frigate3
          input_args: preset-rtsp-restream
          roles:
            - record
#    detect:
#      enabled: true
    objects:
      track:
        - person
        - cat
        - dog
      filters:
        person:
          # Optional: minimum score for the object to initiate tracking (default: shown below)
          min_score: 0.7
          # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
          threshold: 0.7
  Yicam:
    enabled: true
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-aac
      hwaccel_args: preset-vaapi
      inputs:
        - path: rtsp://127.0.0.1:8554/frigate2_sub
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://127.0.0.1:8554/frigate2
          input_args: preset-rtsp-restream
          roles:
            - record
#    detect:
#      fps: 5
#      enabled: true
    objects:
      track:
        - person
        - cat
        - dog
      filters:
        person:
          # Optional: minimum score for the object to initiate tracking (default: shown below)
          min_score: 0.7
          # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
          threshold: 0.7

      mask:
        - 0,0.631,0,0,1,0,1,0.434,0.487,0.563
        - 0,0.887,0.743,0.803,0.997,0.95,1,1,0,1
    motion:
      mask:
        - 0,0.629,0.497,0.562,1,0.434,1,0,0,0
        - 0.742,0.804,0,0.884,0,1,1,1,1,0.95
    zones:
      Sol_Terrasse:
        coordinates: 0.177,0.83,0.086,0.875,0.73,0.808,0.998,0.952,0.996,0.624
        loitering_time: 0
go2rtc:
  streams:
    frigate1:
      - rtsp://*****:*****@192.168.*.***:***/cam/realmonitor?channel=1&subtype=0
    frigate1_sub:
      - rtsp://*****:*****@192.168.*.***:***/cam/realmonitor?channel=1&subtype=1
    frigate2:
      - rtsp://192.168.*.***:***/ch0_0.h264
      - ffmpeg:frigate2#audio=aac
    frigate2_sub:
      - rtsp://192.168.*.***:***/ch0_1.h264
      - ffmpeg:frigate2_sub#audio=aac
    frigate3:
      - rtsp://****:****@192.168.*.***:***/cam/realmonitor?channel=1&subtype=1
    frigate3_sub:
      - rtsp://****:****@192.168.*.***:***/cam/realmonitor?channel=1&subtype=0
  webrtc:
    candidates:
      - 192.168.*.**:8555
      - stun:8555
version: 0.15-1

A quoi servent les blocs « go2rtc » et « webrtc » ? Je n’ai pas ça moi.

Quelqu’un arrive t il à décrypter mes logs pour me dire ce qui coince?

Alors concernant le go2rtc ça sert à restreamer les flux vidéo de tes caméras, ça permet d’avoir une seule connexion rtsp à la caméra et de le diffuser à plusieurs « lecteurs » au travers de go2rtc sans surcharger la caméra.
Pour le webrtc, j’avais suivi un tuto, je t’avoue que je n’ai pas cherché mieux que ça à quoi ça servait exactement.

Mais dans tous les cas ton problème ne vient pas de là.

Essai de regarder du côté LXC s’il y a des subtilités pour le partage de matériel HW, notamment le GPU, sinon essaie de te monter une VM debian en parallèle

Là j’ai mis le HW sur la VM de HAOS comme j’utilise l’addon Frigate.
Je n’arrive pas à trouver quelqu’un qui saurait m’aider avec mes logs pour savoir d’où vient le problème exactement

Oui j’ai bien compris, c’est pour cela que je te disais d’essayer sur une vrai VM et pas un LXC. Je n’ai pas de connaissance dans les LXC.

Pour info, c’est ceci que j’ai suivi pour partager le GPU à ma VM, regardes s’il n’y aurait pas une subtilité qu’on aurai pas pensé, tu y trouveras aussi des commandes pour contrôler si le GPU est bien accessible par la VM il me semble :

Dac je regarderai ça ce week-end merci :wink:

Je viens d’y arriver. Je n’avais pas redémarré ma VM suite à la mise en place du passthrough du GPU…

1 « J'aime »

Du coup au niveau des metrics ça donne quoi ?