VorlonCD / bi-aidetection

Alarm system for Blue Iris based on Artificial Intelligence.
https://ipcamtalk.com/threads/tool-tutorial-free-ai-person-detection-for-blue-iris.37330/
GNU General Public License v2.0
206 stars 45 forks source link

High CPU usage while idle #316

Closed apedance closed 2 years ago

apedance commented 2 years ago

Hello,

I recently noticed high cpu usage while being idle.

No big changes have been made to the config.

image

VorlonCD commented 2 years ago

Unlikely to be AITOOL itself, rather the Deepstack process that AITOOL starts. If you fully expand like this is it ALL coming AITOOL or one of the sub processes?

image

Otherwise:

apedance commented 2 years ago

Hello! Thanks for the fast reply.

My deepstack is running on a seperate server. It is idle. I restarted it. It is not getting hit with requets. The high cpu seems to be AITool. image Memory is going between 150 and 300mb in a fast manner. When I restart AITool it stays on running for a long period of time. Most changes to settings is crashing the app now.

VorlonCD commented 2 years ago

Close AITOOL, backup the files and delete the AITOOL.DATABASE.* files. This is the history database so you will loose the current history of course.

I supposed something could be corrupt in AITOOL.SETTINGS.JSON, but if you delete that you would have to reconfigure ALL settings.

apedance commented 2 years ago

Yeah, I can not get it do drop to normal idle %. I deleted the database. Started with a clean database. Nothing worked. Can't change any settings anymore - instantly crashes the app. Need to force quit it. The version of the app does not matter. All versions have high cpu usage.

Has something to do the with Faces.JSON in the _Settings. If I play around with it the high cpu usage is gone. There seems to be a wrong path pre-configures somehow too. Release Beta 0107 and Release Beta 0106 are used in the config files (both faces.json and aitoolconfig.json)

Access to the path 'C:\Users\win1i\Desktop\Release Beta 0107\_Settings\FaceStorage' is denied. [UnauthorizedAccessException] (In ClsFaceManager.UpdateFaces:252)