frigate: [Detector Support]: OpenVINO not running yolo model
Describe the problem you are having
I am currently running in OpenVINO Detector mode with the default ssd model, which runs fine with hardware acceleration enabled. But when I try switching to yolox_tiny or yolov8, frigate is able to start, but throws some error with the detetor process, and the camera stream is not showing anything on the webui.
Frigate is running in a Ubuntu VM within proxmox6.2
Version
0.12.0-DA3E197
Frigate config file
mqtt:
host: xxxxxxxxx
port: xxxxxxxxxxx
user: xxxxxxx
password: xxxxxxxxx
client_id: xxxxxxxxx
detectors:
ov:
type: openvino
device: AUTO
model:
path: /media/frigate/yolox_tiny.xml
model:
width: 416
height: 416
input_tensor: nchw
input_pixel_format: bgr
model_type: yolox
labelmap_path: /media/frigate/coco_80cl.txt
objects:
track:
- person
filters:
person:
min_score: 0.5
cameras:
camera_1:
record:
enabled: false
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://xxxxxxxxxxxxxxxxxxx
roles:
- detect
detect:
width: 1280
height: 720
rtmp:
# Optional: Enable the RTMP stream (default: True)
enabled: False
docker-compose file or Docker CLI command
version: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "64mb" # update for your cameras based on calculation above
devices:
- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/madafaka/frigate/config/config.yml:/config/config.yml
- /home/madafaka/frigate:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: "password"
Relevant log output
2023-04-27 13:58:05.003881913 [INFO] Starting Frigate...
2023-04-27 13:58:05.963998016 [2023-04-27 13:58:05] frigate.app INFO : Starting Frigate (0.12.0-da3e197)
2023-04-27 13:58:05.980415277 [2023-04-27 13:58:05] frigate.config WARNING : Customizing more than a detector model path is unsupported.
2023-04-27 13:58:05.985063592 [2023-04-27 13:58:05] peewee_migrate INFO : Starting migrations
2023-04-27 13:58:05.989579990 [2023-04-27 13:58:05] peewee_migrate INFO : There is nothing to migrate
2023-04-27 13:58:06.012421253 [2023-04-27 13:58:06] frigate.app INFO : Output process started: 216
2023-04-27 13:58:06.022377762 [2023-04-27 13:58:06] frigate.app INFO : Camera processor started for camera_1: 218
2023-04-27 13:58:06.028934129 [2023-04-27 13:58:06] frigate.app INFO : Capture process started for camera_1: 220
2023-04-27 13:58:06.033817977 [2023-04-27 13:58:06] detector.ov INFO : Starting detection process: 215
2023-04-27 13:58:06.064916777 Process detector:ov:
2023-04-27 13:58:06.066389060 Traceback (most recent call last):
2023-04-27 13:58:06.066470549 File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2023-04-27 13:58:06.066472536 self.run()
2023-04-27 13:58:06.066474190 File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2023-04-27 13:58:06.066478658 self._target(*self._args, **self._kwargs)
2023-04-27 13:58:06.066480967 File "/opt/frigate/frigate/object_detection.py", line 98, in run_detector
2023-04-27 13:58:06.066494475 object_detector = LocalObjectDetector(detector_config=detector_config)
2023-04-27 13:58:06.066496284 File "/opt/frigate/frigate/object_detection.py", line 52, in __init__
2023-04-27 13:58:06.066498293 self.detect_api = create_detector(detector_config)
2023-04-27 13:58:06.066499820 File "/opt/frigate/frigate/detectors/__init__.py", line 24, in create_detector
2023-04-27 13:58:06.066501234 return api(detector_config)
2023-04-27 13:58:06.066502905 File "/opt/frigate/frigate/detectors/plugins/openvino.py", line 26, in __init__
2023-04-27 13:58:06.066541312 self.ov_model = self.ov_core.read_model(detector_config.model.path)
2023-04-27 13:58:06.066543034 RuntimeError: Check 'false' failed at ../src/frontends/common/src/frontend.cpp:53:
2023-04-27 13:58:06.066555050 Converting input model
2023-04-27 13:58:06.066556330
2023-04-27 13:58:07.797525702 [2023-04-27 13:58:07] frigate.video ERROR : camera_1: Unable to read frames from ffmpeg process.
2023-04-27 13:58:07.799072158 [2023-04-27 13:58:07] frigate.video ERROR : camera_1: ffmpeg process is not running. exiting capture thread...
Operating system
Proxmox
Install method
Docker Compose
Coral version
Other
Any other information that may be helpful
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 24 (7 by maintainers)
I am having the same issue trying to setup yolox_tiny.
Model conversion to FP16 has been successful, using
xml and label file have been copied in an accessible folder.
The errors I have in my log are exactly the same as OP.
EDIT: I just created a yolov8 model using @aeozyalcin colab and also got the same error:
EDIT EDIT: It was the stupidest thing ever. I copied the xml and the model description, but was missing the other .mapping and .bin files. With all the files there, I have been able to use yolox-tiny and yolov8 without any issue
@aeozyalcin you’re right! The problem is the version of openvino-dev. I installed a version before the latest one (i.e., 2022.3.1), and the three files are created in both directories (FP16 and FP32). After putting it on Frigate, it works like a charm! Thank you!
Log file:
Config file:
Inference Speed ~25 ms in a UHD Graphics 770 / 12th Gen Intel® Core™ i5-12500T.
Thanks aeozyalcin. This is what I have done. I have left my holiday house, were the camera setup sits, last night. I will resume testing when I get back there, about two weeks from now, and report back. Philippe
It is finally working now, thanks for updating the collab notebook. I have done a few things in yesterday:
1, regenerating the yolov8n model using your updated collab notebook.
2, updated the Proxmox version from 6.2 to 7.4, and the process also updated the Proxmox kernel from 5.4 to 5.15. After this update, in lspci command, it displays the detailed iGPU name (UHD610) instead of general intel vga device before.
3, I also updated the kernel of the Ubuntu VM from 5.4 to 5.15 also.