[Support]: OpenVINO Detector: TypeError on model.path in Frigate 0.15.x/0.16.x Beta #18755
Checklist
Describe the problem you are havingWhen configuring Frigate to use an OpenVINO detector on an Intel iGPU, the detector consistently fails to initialize with a Despite the When the Steps to reproduceSteps to reproduce:
VersionVersion: * Frigate: In which browser(s) are you experiencing the issue with?cli Frigate config file# config.yml
mqtt:
enabled: false
detectors:
openvino:
type: openvino
device: "GPU"
model:
path: /openvino-model/ssdlite_mobilenet_v2.xml
cameras:
tapo_c120:
enabled: true
ffmpeg:
inputs:
- path: "rtsp://[YOUR_USERNAME]:[YOUR_PASSWORD]@192.168.99.80:554/stream1"
roles:
- detect
- record
detect:
enabled: true
width: 1920
height: 1080
record:
enabled: true
retain:
days: 3
mode: motion
snapshots:
enabled: true
retain:
default: 3
birdseye:
enabled: true
mode: motion
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
timestamp_style:
position: "tl"
format: "%Y-%m-%d %H:%M:%S"docker-compose file or Docker CLI commanddocker run -d \
--name frigate \
--privileged \
--restart=unless-stopped \
--mount type=tmpfs,target=/tmp/cache,tmpfs-size=1024m \
-v /etc/localtime:/etc/localtime:ro \
-v /home/carl/frigate/config.yml:/config/config.yml:ro \
-v /home/carl/frigate/storage:/media/frigate \
-v /dev/dri:/dev/dri \
-v /dev/bus/usb:/dev/bus/usb \
-p 5000:5000 \
-p 8554:8554 \
-p 8555:8555 \
ghcr.io/blakeblackshear/frigate:0.16.0-beta3Relevant Frigate log output2025-06-16 17:53:42.143353008 [2025-06-16 17:53:42] frigate.app INFO : Starting Frigate (0.16.0-f141b58)
2025-06-16 17:53:42.150162310 [2025-06-16 17:53:42] peewee_migrate.logs INFO : Starting migrations
2025-06-16 17:53:42.151164618 [2025-06-16 17:53:42] peewee_migrate.logs INFO : There is nothing to migrate
2025-06-16 17:53:42.158254211 [2025-06-16 17:53:42] frigate.app INFO : Recording process started: 380
2025-06-16 17:53:42.164871254 [2025-06-16 17:53:42] frigate.app INFO : Review process started: 385
2025-06-16 17:53:42.168236589 [2025-06-16 17:53:42] frigate.app INFO : go2rtc process pid: 121
2025-06-16 17:53:42.181623889 [2025-06-16 17:53:42] detector.openvino INFO : Starting detection process: 405
2025-06-16 17:53:42.185267040 Process detector:openvino:
2025-06-16 17:53:42.185271029 Traceback (most recent call last):
2025-06-16 17:53:42.185273525 File "/usr/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
2025-06-16 17:53:42.185277900 self.run()
2025-06-16 17:53:42.185281067 File "/opt/frigate/frigate/util/process.py", line 41, in run_wrapper
2025-06-16 17:53:42.185283084 return run(*args, **kwargs)
2025-06-16 17:53:42.185302490 ^^^^^^^^^^^^^^^^^^^^
2025-06-16 17:53:42.185304759 File "/usr/lib/python3.11/multiprocessing/process.py", line 108, in run
2025-06-16 17:53:42.185307373 self._target(*self._args, **self._kwargs)
2025-06-16 17:53:42.185309720 File "/opt/frigate/frigate/object_detection/base.py", line 112, in run_detector
2025-06-16 17:53:42.185312069 object_detector = LocalObjectDetector(detector_config=detector_config)
2025-06-16 17:53:42.185314314 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-16 17:53:42.185339388 File "/opt/frigate/frigate/object_detection/base.py", line 57, in __init__
2025-06-16 17:53:42.185341566 self.detect_api = create_detector(detector_config)
2025-06-16 17:53:42.185360336 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-16 17:53:42.185363160 File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2025-06-16 17:53:42.185365253 return api(detector_config)
2025-06-16 17:53:42.185367161 ^^^^^^^^^^^^^^^^^^^^
2025-06-16 17:53:42.185369729 File "/opt/frigate/frigate/detectors/plugins/openvino.py", line 46, in __init__
2025-06-16 17:53:42.185372008 if not os.path.isfile(detector_config.model.path):
2025-06-16 17:53:42.185374177 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-16 17:53:42.185376248 File "<frozen genericpath>", line 30, in isfile
2025-06-16 17:53:42.185394401 TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
2025-06-16 17:53:42.190164449 [2025-06-16 17:53:42] frigate.app INFO : Output process started: 422
2025-06-16 17:53:42.205699428 [2025-06-16 17:53:42] frigate.app INFO : Camera processor started for tapo_c120: 443
2025-06-16 17:53:42.206176589 [2025-06-16 17:53:42] frigate.app WARNING : The current SHM size of 64.0MB is too small, recommend increasing it to at least 114MB.
2025-06-16 17:53:42.215885284 [2025-06-16 17:53:42] frigate.app INFO : Capture process started for tapo_c120: 454Relevant go2rtc log output2025-06-16 17:53:40.022504941 [INFO] Starting go2rtc...
2025-06-16 17:53:40.103240766 17:53:40.103 INF go2rtc platform=linux/amd64 revision=fa580c5 version=1.9.9
2025-06-16 17:53:40.103245642 17:53:40.103 INF config path=/dev/shm/go2rtc.yaml
2025-06-16 17:53:40.103610386 17:53:40.103 INF [rtsp] listen addr=:8554
2025-06-16 17:53:40.103717305 17:53:40.103 INF [api] listen addr=:1984
2025-06-16 17:53:40.104021517 17:53:40.103 INF [webrtc] listen addr=:8555Operating systemDebian Install methodDocker CLI Network connectionWired Camera make and modeltapo 120 and 101 Screenshots of the Frigate UI's System metrics pagesN/A Any other information that may be helpfulInternal Container Verification: I have thoroughly verified that my Problem Isolation: A critical finding from my troubleshooting is that Frigate starts successfully and performs detection (using the default CPU detector) when I completely remove the Hardware Environment: My host system is a Dell Mini Form Factor PC, and I'm using its integrated Intel iGPU for hardware acceleration and the intended OpenVINO detection. The go2rtc Functionality: Previous State: Before this specific |
Replies: 2 comments 6 replies
|
This is not a bug.
See the documentation: https://docs.frigate.video/configuration/object_detectors/#openvino-detector |
|
i use the gemini created config file, it produced the same error, move the model to the right place solve the problem,thks! |
From the docs: