GPU memory full with CPAI

Post Reply
mich2222
Posts: 2
Joined: Tue Jul 25, 2023 12:36 pm

GPU memory full with CPAI

Post by mich2222 »

2.png
2.png (13.24 KiB) Viewed 1234 times
My hardware:
2x e5-2690v2
32gb ram
gt 1030 2gb

Hi all, I'm using CPAI with blueiris with GPU enabled.
However, I noticed that for the first few minutes everything works normally, after that the 500 error appears in blueiris and the error appears on the CPAI dashboard (Object Detection (YOLOv5 6.2): ​​[Exception] : Traceback (most recent call last): I tried to use both the latest version 2.1.9 and also to downgrade to version 2.0.8 but nothing changed.
After several days spent looking for the cause, I realized that by disabling the GPU and using only the CPU the problem does not occur, furthermore with the GPU everything works until the memory becomes "saturated". It uses full dedicated gpu memory constantly without ever shrinking, and also seems to use traditional ram (shared memory)
Thanks everyone for any advice :-D
Attachments
4..png
4..png (119.49 KiB) Viewed 1235 times
3.png
3.png (12.32 KiB) Viewed 1235 times
User avatar
TimG
Posts: 2084
Joined: Tue Jun 18, 2019 10:45 am
Location: Nottinghamshire, UK.

Re: GPU memory full with CPAI

Post by TimG »

Noting "Cam12" in the image, is it possible that you are simply loading the gpu up too much ? I'm using a 4GB GTX1650 here for CPAI and it works well.
Forum Moderator.
Problem ? Ask and we will try to assist, but please check the Help file.
mich2222
Posts: 2
Joined: Tue Jul 25, 2023 12:36 pm

Re: GPU memory full with CPAI

Post by mich2222 »

TimG wrote: Tue Jul 25, 2023 4:58 pm Noting "Cam12" in the image, is it possible that you are simply loading the gpu up too much ? I'm using a 4GB GTX1650 here for CPAI and it works well.
Even disabling all other cameras does not change.
User avatar
TimG
Posts: 2084
Joined: Tue Jun 18, 2019 10:45 am
Location: Nottinghamshire, UK.

Re: GPU memory full with CPAI

Post by TimG »

Is that you posting over on the CPAI forum too ? If so I hope they can help, as this is a peer to peer forum, and we are not experts in CPAI.
Forum Moderator.
Problem ? Ask and we will try to assist, but please check the Help file.
MikeBwca
Posts: 1097
Joined: Thu Jun 20, 2019 5:39 am

Re: GPU memory full with CPAI

Post by MikeBwca »

Getting the same 'AI Error 500'. But only about 5 a day! I can match the error time with an actual alert that has run thru Motion and AI successfully, appears in the Alert List. So, I have no idea what it could be. Memory usqge is normal for Cpu/Gpu.

Previously, I was getting hundreds of AI: error 500's and 3's. Rebooted, and now just getting a few 500's.


These just started happening, with no correlation for an CP or BI update. Seems random.




Had another issue last night... Motion detection just stopped on some, but not all, cameras! Rebooted and deleted the entire DB. Back to normal now.
Post Reply