Thanks for the coral AI driver. It works right out of the box for my new Coral AI M.2 A+E key. The inference speed is 5-10ms. Amazing speed!
But, my CPU usage hovers at around 15-20% when frigate is operating. I also managed to passthrough intel hd520 via the Intel GPU TOP plugin by ich77, added "/dev/dri/renderD128" to the docker variable, config frigate to use the ffmpeg. The GPU usage is only around 7% but CPU is 15-20%.
Nothing abnormal on the frigate's log.
My cctvs are literally standstill pictures. minimal to no motion. The sky, trees & timestamps have all been masked. I would have thought once I pass iGPU, the CPU usage would drop. Any idea what may have cause this?
My rig: Gigabyte Brix with Intel i5-6200U CPU; 16GB DDR3
Here's my frigate config:
ffmpeg:
global_args: -hide_banner -loglevel warning
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1
# Optional: output args for detect streams (default: shown below)
output_args:
detect: -f rawvideo -pix_fmt yuv420p
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
cameras:
front_porch:
ffmpeg:
inputs:
- path: rtsp://XXX:
[email protected]:554/cam/realmonitor?channel=1&subtype=0
roles:
- detect
- clips
motion:
mask:
- 550,0,544,95,0,173,0,0
- 1280,235,1280,193,862,66,860,109
- 940,54,949,0,953,0,1253,0,1259,57
width: 1280
height: 720
fps: 5
objects:
track:
- person
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 5
side_porch:
ffmpeg:
inputs:
- path: rtsp://XXX:
[email protected]:554/cam/realmonitor?channel=2&subtype=0
roles:
- detect
- clips
motion:
mask:
# - 0,100,199,0,209,45,0,204
- 1259,50,1258,21,951,21,942,49
- 0,502,935,35,745,0,933,0,728,0,923,0,1065,0,1053,53,711,0,0,0
width: 1280
height: 720
fps: 5
objects:
track:
- person
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 5
back_porch:
ffmpeg:
inputs:
- path: rtsp://XXX:
[email protected]:554/cam/realmonitor?channel=3&subtype=0
roles:
- detect
- clips
motion:
mask:
- 0,528,604,31,1280,187,1280,0,966,0,786,0,737,0,635,0,498,97,274,55,0,250
width: 1280
height: 720
fps: 5
objects:
track:
- person
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 5
wet_kitchen:
ffmpeg:
inputs:
- path: rtsp://XXX:
[email protected]:554/cam/realmonitor?channel=4&subtype=0
roles:
- detect
- clips
motion:
mask:
- 1280,0,1280,72,1280,60,0,52,0,0
- 746,143,938,195,927,41,738,27
- 1280,115,1280,302,1088,231,1082,74
- 577,111,668,124,660,21,573,25
width: 1280
height: 720
fps: 5
objects:
track:
- person
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 5
indoor:
ffmpeg:
inputs:
- path: rtsp://XXX:
[email protected]:554//h264Preview_01_sub
roles:
- detect
- clips
motion:
mask:
- 224,29,414,29,413,10,226,10
width: 640
height: 352
fps: 3
objects:
track:
- person
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 5
detectors:
coral:
type: edgetpu
device: pci