blakeblackshear / frigate-hass-integration

Frigate integration for Home Assistant
MIT License
726 stars 114 forks source link

Detector Rknn error rk3588s #660

Closed TechsavvyCNC closed 5 months ago

TechsavvyCNC commented 5 months ago

Unable to use rknn Detector on orange 5b with rk3588s. Errors out everytime I enable it. Config works fine without it though.

Configuration

mqtt: enabled: true host: 192.168.1.136 port: 1883 topic_prefix: frigate client_id: frigate user: amcrest password: #### stats_interval: 60

environment_vars: PRIVILEGED: true

database: path: /media/frigate.db

go2rtc: streams: backdoor:

cameras: backdoor: # <--- this will be changed to your actual camera later enabled: true ffmpeg: hwaccel_args: preset-rk-h264 inputs:

motion: contour_area: 15 threshold: 30

record: enabled: true retain: days: 1

hours:

# minutes: 
mode: active_objects

events: retain: default: 2 mode: active_objects objects: dog: 2 person: 2 pre_capture: 5 post_capture: 10

detectors: rknn: type: rknn core_mask: 0b011

model: input_pixel_format: bgr

2024-04-09 08:54:21.480685090 File "/opt/frigate/frigate/detectors/plugins/rknn.py", line 56, in init 2024-04-09 08:54:21.480689465 raise Exception("Make sure to run docker in privileged mode.") 2024-04-09 08:54:21.480692382 Exception: Make sure to run docker in privileged mode. 2024-04-09 08:54:21.480756256 Exception ignored in: <function Rknn.del at 0xffff7da523a0> 2024-04-09 08:54:21.480760339 Traceback (most recent call last): 2024-04-09 08:54:21.480785714 File "/opt/frigate/frigate/detectors/plugins/rknn.py", line 141, in del 2024-04-09 08:54:21.481160498 self.rknn.release() 2024-04-09 08:54:21.481197831 AttributeError: 'Rknn' object has no attribute 'rknn' 2024-04-09 08:54:21.508791020 [2024-04-09 03:54:21] frigate.app INFO : Camera processor started for backdoor: 481 2024-04-09 08:54:21.510163869 [2024-04-09 03:54:21] frigate.app INFO : Capture process started for backdoor: 482 2024-04-09 08:54:21.659975050 [2024-04-09 03:54:21] frigate.video ERROR : backdoor: Unable to read frames from ffmpeg process. 2024-04-09 08:54:21.660717619 [2024-04-09 03:54:21] frigate.video ERROR : backdoor: ffmpeg process is not running. exiting capture thread..

I'm using the frigate beta from home assistant docker install.

NickM-27 commented 5 months ago

this should be posted on the frigate repo