CodeProject.AI Version 2.0

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,042
Reaction score
48,835
Location
USA
@wittaj Did you try CP.AI Explorer UI to test LPR with image? Does that work?
It worked, but it must have been it was timed right when it started before it says Lost Contact.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,216
Reaction score
4,255
Location
Brooklyn, NY
Anyone else seeing this. All of a sudden everything is coming back object not found and times were shooting to 30,000+ms.

This is what my display shows now - I tried stopping the service and restarting the computer and same problem persists of saying Lost Contact - it will make connection and then lose contact again.

View attachment 183729
Do you have Auto start/stop with Blue Iris checked? If so uncheck it.

1705966396168.png
 

OfficerD00fy

Young grasshopper
Joined
Jun 22, 2018
Messages
89
Reaction score
15
Location
Australia
Anyone else seeing this. All of a sudden everything is coming back object not found and times were shooting to 30,000+ms.

This is what my display shows now - I tried stopping the service and restarting the computer and same problem persists of saying Lost Contact - it will make connection and then lose contact again.

View attachment 183729
Getting the same issue. I'd have probably 900-1500 requests then lose connection and it'd restart.
 

slabbel

Young grasshopper
Joined
Dec 12, 2014
Messages
30
Reaction score
24
Anyone else seeing this. All of a sudden everything is coming back object not found and times were shooting to 30,000+ms.

This is what my display shows now - I tried stopping the service and restarting the computer and same problem persists of saying Lost Contact - it will make connection and then lose contact again.

View attachment 183729
I get this on every restart but it settles after a couple of minutes. Very high CPU and memory usage for the CPAI process while it happens (100% CPU and 2Gb+ memory usage for the process). Runs smoothly with GPU DirectML thereafter using 250Mb memory and less than 5% CPU. The 30 second duration is likely a timeout? I'm running 2.4.7 on an i7-11700:

1705979142123.png
 

nils_92

n3wb
Joined
Dec 13, 2019
Messages
12
Reaction score
2
Location
Germany
Not sure if anyone noticed this however all versions starting from 2.5.0 cause ai error 500 log entries in BI the detection still works though and it seems like a timeout issue.

I’m only using the coral module and reverting to 2.4.7 fixes it I’m using the single tpu code
 

Amgclk65

Getting the hang of it
Joined
Jan 14, 2018
Messages
108
Reaction score
41
Hey.
Anyone noticed Nivdia gpu’s starting/stopping when using yolov5.NET? Seems to prefer yolo.6.2. If I leave yolo.6.2 installed and stop it. I can get yolo.net to run and stay running. If I uninstall yolo.6.2 and only have yolo.net it acts up. Prefer Yolo.net for the speed. Tried with 2.5.0 and New 2.5.1.
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,211
Reaction score
1,479
Location
USA
If you’re still on 2.5.1 there’s an update to the yolov5.NET module (1.9.1) that should resolve this issue.
Well it fixed the "Lost contact" part, but still getting the 30 second timeout issue on yolov5.net 1.91

258.jpg
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,216
Reaction score
4,255
Location
Brooklyn, NY
Since CodeProject.AI is out of beta I started a new thread for all topics CodeProject.AI version 2.5 and greater.

 
Last edited:

ch3st3rk

n3wb
Joined
Jan 4, 2022
Messages
9
Reaction score
5
Location
UK
Hi

I have BI setup with approximately 15cams running (Hikvisions) some of these are clone cams for AI alerts. I am detecting 'person'only using ipcam-combined.

Is this the best model to use with YOLOv5.Net 1.9.2? or is there a faster way to process?

I typically set to detect 5 images at 500ms

I notice then when triggered and detecting CPU spikes to 100% for a few seconds and then drops down to around 15%

Is the spiking normal or is there something I can do to assist this. I have a Lenovo AIO pc with 16gb Ram

CPU - i5-10400T @ 2.00GHz
6cores 12 processors
Intel UHD 630 GPU


Status logs in CPAI report around 250ms -1500ms at time or higher

Also get Random shutdowns

Use Main Stream is unticked

Any advice/help is appreciated

thanks
 

ch3st3rk

n3wb
Joined
Jan 4, 2022
Messages
9
Reaction score
5
Location
UK
@ch3st3rk Given the details you shared, since you unticked main stream, BI5 should send substream image to CP.AI. Is substream configrued for that camera?

Also, please share screenshots for:
#1: AI tab for that camera
#2: The AI details for a triggered event.
Thanks, I have substreams off on BI so I can view in better quality. Hope the attached help.

Vapour from my boiler causes a load of CPU jump!
 

Attachments

actran

Getting comfortable
Joined
May 8, 2016
Messages
806
Reaction score
732
@ch3st3rk If you don't have substream configured for camera, then BI5 has no choice but to use main stream image for CP.AI. Main stream image will take more CPU to do AI detect than substream image. Add substream to camera temporarily to see if it improves AI response time.

BTW, please send #2 requested screenshot, the AI analysis details for a triggered event. It looks like this:
ai analysis.png
To get this screen, when in BI5 console, on your left, hold down Ctrl key while double clicking on a triggered event thumbnail

Note the AI response time of <100ms in mine, and the image resolution in the upper right corner.
 

ch3st3rk

n3wb
Joined
Jan 4, 2022
Messages
9
Reaction score
5
Location
UK
@ch3st3rk If you don't have substream configured for camera, then BI5 has no choice but to use main stream image for CP.AI. Main stream image will take more CPU to do AI detect than substream image. Add substream to camera temporarily to see if it improves AI response time.

BTW, please send #2 requested screenshot, the AI analysis details for a triggered event. It looks like this:
View attachment 184884
To get this screen, when in BI5 console, on your left, hold down Ctrl key while double clicking on a triggered event thumbnail

Note the AI response time of <100ms in mine, and the image resolution in the upper right corner.
Thanks I will have to take a look a little later, will using sub stream prevent the CPU spikes or is that quite normal when detection triggered to analyse AI object?
thanks
 

actran

Getting comfortable
Joined
May 8, 2016
Messages
806
Reaction score
732
@ch3st3rk It's best practice to configure main+sub streams for every camera to reduce CPU load, especially if you have cameras with high resolution like 4k. You're not missing out, you still have access to the main streams for viewing.

In general, AI models are trained on lower resolution images so if your images are high-res like 4k, they will be downsized (takes time and CPU load) as part of AI detection.
 
Last edited:

ch3st3rk

n3wb
Joined
Jan 4, 2022
Messages
9
Reaction score
5
Location
UK
@ch3st3rk It's best practice to configure main+sub streams for every camera to reduce CPU load, especially if you have cameras with high resolution like 4k. You're not missing out, you still have access to the main streams for viewing.

In general, AI models are trained on lower resolution images so if your images are high-res like 4k, they will be downsized (takes time and CPU load) as part of AI detection.
Ok thanks I will setup some sub streams and see how that goes and report back, thanks for your help!
 
Top