High CPU usage with AI activated (CUDA)

Post Reply
User avatar
jeremypsl
Posts: 17
Joined: Wed Oct 04, 2023 12:42 pm

High CPU usage with AI activated (CUDA)

Post by jeremypsl »

Hello !

I have a problem with BI, lastest version, but it's been a while i have this behavior.
I run BI + CodeProject AI Server on an I7-10700 + RTX3070, 20x 3MP cam, everything is setup by following some guides of optimizations.
It works fine except the CPU usage when there is multiple triggers at the same time.
CPU can go to 1-2% with no trigger to 80% with multiple triggers.
This is happening only with the AI activated and this is BlueIris.exe the problem, not CodeProject.AI.Server.exe.
I don't understand why this is happening because the detection use CUDA, not the CPU.

Thanks.
User avatar
jeremypsl
Posts: 17
Joined: Wed Oct 04, 2023 12:42 pm

Re: High CPU usage with AI activated (CUDA)

Post by jeremypsl »

No idea ? :cry:
BruceH
Posts: 89
Joined: Wed Apr 01, 2020 10:10 pm

Re: High CPU usage with AI activated (CUDA)

Post by BruceH »

Have you tried using the .Net module, some people have reported that it uses less CPU than the CUDA solution. You don't mention how many triggers you have per minute. I am not an expert on this by any means
BlueIris 5.9.3.4 CPAI 2.6.5
User avatar
jeremypsl
Posts: 17
Joined: Wed Oct 04, 2023 12:42 pm

Re: High CPU usage with AI activated (CUDA)

Post by jeremypsl »

If it was a problem with CPAI Server settings, it will be the CodeProject.AI.Server.exe process with high CPU usage right ?

This is my settings for detection :

Image
Image
Image
User avatar
jeremypsl
Posts: 17
Joined: Wed Oct 04, 2023 12:42 pm

Re: High CPU usage with AI activated (CUDA)

Post by jeremypsl »

I removed pre-trigger images and it seem to use less cpu now and BI don't crashes anymore.
Post Reply