[HW Accel Support]: Intel iGPU + ARC GPU #15739
-
Describe the problem you are havingI am running Frigate with If I start Frigate with the iGPU only everything works fine. I prevent the ARC GPU from being used by The host system is Debian stable. With a kernel ( If I instead disable the iGPU and enable the ARC a similar crash of Frigate happens. If I run My end goal is to provide two GPUs that can be used for detectors. Anyone having more clue than I have? Or should I just assume that it's an issue with the Intel drivers? Version0.14.1-f4f3cfa Frigate config filedetectors:
ov:
type: openvino
device: GPU
model:
model_type: yolonas
width: 320
height: 320
input_tensor: nchw
input_pixel_format: bgr
path: /config/models/yolo_nas_m.onnx
labelmap_path: /labelmap/coco-80.txt docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
network_mode: bridge
privileged: true
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
devices:
- /dev/dri/renderD128:/dev/dri/renderD128 # passes GPU
- /dev/dri/renderD129:/dev/dri/renderD129 # passes GPU
shm_size: "384MB"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./volumes/config:/config
- media_nfs01:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1073741824
ports:
- "5000:5000"
- "9554:8554" #RTSP feeds
- "9555:8555/tcp" # WebRTC over tcp
- "9555:8555/udp" # WebRTC over udp
environment:
- TZ=Europe/Stockholm
- FRIGATE_RTSP_PASSWORD="REDACTED"
volumes:
media_nfs01:
driver: local
driver_opts:
type: nfs
o: "addr=REDACTED,nfsvers=4,soft,noexec,nosuid,tcp,rw"
device: ":/srv/frigate_media" Relevant Frigate log outputfrigate | 2024-12-30 18:15:33.540557222 Process detector:ov:
frigate | 2024-12-30 18:15:33.541431447 Traceback (most recent call last):
frigate | 2024-12-30 18:15:33.541434649 File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
frigate | 2024-12-30 18:15:33.541436112 self.run()
frigate | 2024-12-30 18:15:33.541437585 File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
frigate | 2024-12-30 18:15:33.541441610 self._target(*self._args, **self._kwargs)
frigate | 2024-12-30 18:15:33.541443256 File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
frigate | 2024-12-30 18:15:33.541460205 object_detector = LocalObjectDetector(detector_config=detector_config)
frigate | 2024-12-30 18:15:33.541462324 File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
frigate | 2024-12-30 18:15:33.541463555 self.detect_api = create_detector(detector_config)
frigate | 2024-12-30 18:15:33.541464709 File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
frigate | 2024-12-30 18:15:33.541482579 return api(detector_config)
frigate | 2024-12-30 18:15:33.541484162 File "/opt/frigate/frigate/detectors/plugins/openvino.py", line 43, in __init__
frigate | 2024-12-30 18:15:33.541485447 self.interpreter = self.ov_core.compile_model(
frigate | 2024-12-30 18:15:33.541486662 File "/usr/local/lib/python3.9/dist-packages/openvino/runtime/ie_api.py", line 521, in compile_model
frigate | 2024-12-30 18:15:33.541505010 super().compile_model(model, device_name, {} if config is None else config),
frigate | 2024-12-30 18:15:33.541506277 RuntimeError: Exception from src/inference/src/cpp/core.cpp:123:
frigate | 2024-12-30 18:15:33.541507451 Exception from src/inference/src/dev/plugin.cpp:59:
frigate | 2024-12-30 18:15:33.541508687 Check 'contexts.count(device_id)' failed at src/plugins/intel_gpu/src/plugin/plugin.cpp:204:
frigate | 2024-12-30 18:15:33.541510079 [GPU] Context was not initialized for 0 device Relevant go2rtc log outputN/A FFprobe output from your cameraN/A Install methodDocker Compose Object DetectorOpenVino Network connectionWired Camera make and modelSeveral Hikvisions Screenshots of the Frigate UI's System metrics pagesN/A since Frigate doesn't start. Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
So does it work if you limit to one or the other via the compose config? |
Beta Was this translation helpful? Give feedback.
Okay. This is silly (by me). I upgraded to Frigate
v0.15-beta4
. Now it works. I have spent ~20 hours trying to test different things with the Frigate container. Building new drivers, building new containers and whatnot. And all that was required was a 10 byte change. :)Thanks for taking the time to answer me @NickM-27 . This will be interesting, to see if the
A310
is enough. Due to the choice of hardware I was a bit limited to which GPU I could choose.