I have installed Frigate to record motion on one camera. My Intel NUC seems to handle two cameras just fine without the expensive Coral unit (is there a lower cost alternate?) But once in a while the CPU usage goes yellow.
Is this bad? Is there a lower-cost alternative to the Coral unit?
(I am using HAOS on an Intel NUC.)
I just installed Frigate on my HA OS i7 NUC and the way I reduced the CPU usage somewhat was to reduce the detection frame resolution down to 1920x1080 (rather than the 4K that the cameras are). My CPU usage is only around 12% with detection enabled on 3 cameras. My CPU temperature however is reporting very high (80~100C), though I think it is a false report because Iāve had that same issue with other very low resource hungry add-ons as well.
Coral is not GPU. You may use GPU FFMPEG parameters set tings but I donāt do that and never and had no luck setting them.
Thatās about what I saw in this threads but I didnāt read to end as I donāt use nano. Looked like he was working on supporting but difficult since he didnāt have hardware. Again, I didnāt read that thoroughly so I could be wrong.
The approach is to use Nano for object recognition only by using Nvidiaās native SDKs and integrating such workload with a HA that is running on another resource/computer.
I will try the above approach and see how it works.
Hi,
I also have problem with frigate and high cpu usage. I donāt have coral but it think I found at least some temporally solution how to reduce cpu usage.
In portainer I edited frigate container and set cpu limit and just updated limits to running contaner.
Before this my cpu usage was between 80% do 97%. After I done limitation in portainer my cpu usage is on average around 35%.
I donāt see any problem with camera stream or motion detection.
When I restart addon I have to update limits again. I donāt know how to make this setting permanent. so if someone know how to do it please write it down below.
I have motion mask and zones configured. I check everything again and again and I always ended with high cpu usage no matter what. I think that there must be some problem in frigate addon or integration. Ok i use cpu detectors because I donāt have coral but limiting cpu on container just solved the problem. There is no frame dropping everything works as it should.
How did you make permanent limit on cpu and memory usage on docker containers?
Detections use heavy processing and very cpu intense. This is why TPU(coral) and at least GPU are recommended.
How many camera using?
What us resolution for ādetectā stream?
What is process time per detection? 8ms is TPU and i think good cpu is over 500ms(i forget but its significantly slower).
How much motion?
I believe frigate use all available cpu for detect process when cpu only so it should be high. Question is whether it could be more efficient i think. This depends on config and setup.
I have hikvision intercom. I have one camera and indoor device. Those are poe devices. They are connected over poe switch and switch is pluged in with ethernet cable to a router that is working as mesh node in wifi network.
So Iām using one camera.
The motion sensor on camera is very often triggered because i have some trees in front of my door. When it is windy day motion sensor is running wild. Motion is disabled on intercom camera setup.
Camera is using 1270x720 with 12 fps.
I disabled global with and height detect on frigate and created three cameras front door, parking, house. For those I use with and height 480 with 5 fps and 10 fps.
I tried different combinations of everything, using hwaccel_args but nothing seemed to work except limiting cpu usage on container.
I was really impressed how great this is working. I didnāt expected that it will work so good for now. Maybe it will be a good idea that developers enable in every addon cpu and memory limitation.
Well I have one physical device and 3 virtual cameras. You can create from one camera as many as you can think of virtual cameras. This is obvious in frigate integration because I have one camera and 5 devices. Out of 5 one is frigate server.
I know that lot of motion will drastically increase cpu usage, but I canāt do much about it. If wind is blowing leaves on the trees will create a lot of motion.
What do you mean by āWidth and height is based on resolution of detect streamā ?
is this width and height configured on a camera webui?