5.5.8 - June 13, 2022 - Code Project’s SenseAI Version 1 - See V2 here https://ipcamtalk.com/threads/codeproject-ai-version-2-0.68030/

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,210
Reaction score
1,478
Location
USA
I can't seem to get my custom models to work. If I check the box for "default object detection" it works but uses the standard model. Make sure you uninstall 1.5 and then update to 1.55 and restart everything. Mine then populated the custom folder path, which is : C:\Program Files\CodeProject\AI\AnalysisLayer\CustomDetection\assets
 

Attachments

Last edited:

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
743
Reaction score
698
So I think I have it working now. I had to modify two lines in the windows registry to enable and define the custom model folder path.

Screen Shot 2022-07-16 at 9.48.09 AM.png

The custom models are already included in the install and are located C:\Program Files\CodeProject\AI\AnalysisLayer\CustomDetection\assets directory so there is no need to download them separately. However, the naming convention is different so you'll need to make sure to use the correct names for the model you want to use.

Screen Shot 2022-07-16 at 9.53.09 AM.png
Here's how i have my AI trigger configured for my LPR camera.

Screen Shot 2022-07-16 at 9.57.50 AM.png

And here are the results using the ipcam-general model.

Screen Shot 2022-07-16 at 10.01.43 AM.png

Global AI settings with default object detection disabled.

Screen Shot 2022-07-16 at 10.03.53 AM.png
 
Last edited:

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,210
Reaction score
1,478
Location
USA
So I think I have it working now. I had to modify two lines in the windows registry to enable and define the custom model folder path.

View attachment 133658

The custom models are already included in the install and are located C:\Program Files\CodeProject\AI\AnalysisLayer\CustomDetection\assets directory so there is no need to download them separately. However, the naming convention is different so you'll need to make sure to use the correct names for the model you want to use.

View attachment 133663
Here's how i have my AI trigger configured for my LPR camera.

View attachment 133667

And here are the results using the ipcam-general model.

View attachment 133669

Global AI settings with default object detection disabled.

View attachment 133671
Interesting, My registry was correct and I never had to mess with it, but using the ipcam-combined did make the model work...Thanks !
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
743
Reaction score
698
Hi Mike,

With the exception of the license-plate.pt, the models included with v1.5.5 are working extremely well. Are you still using DayPlate and NightPlate in the license plate model
to confirm?
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,210
Reaction score
4,249
Location
Brooklyn, NY
Hi Mike,

With the exception of the license-plate.pt, the models included with v1.5.5 are working extremely well. Are you still using DayPlate and NightPlate in the license plate model
to confirm?
The license-plate model is not mine, I think its the model that DeepStack has on there site. You need to use licence-plate
1658008261950.png
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
743
Reaction score
698
You need to use licence-plate.
Thanks!

Edit: I got it working, but it's not very reliable. What would happen if I replaced the .pt file with yours and changed the confirmed section to DayPlate? Will it still work?
 
Last edited:

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
743
Reaction score
698
Now it's time to add the USPS model so that I can have my home automation send mail delivery notifications.
The USPS Model also works well with SenseAI.

Screen Shot 2022-07-18 at 9.05.40 PM.png

Even with the additional models the CPU processing is significantly lower than with DeepStack. The graph below is the CPU load of my BI computer running 16 cameras (+1 cloned) of which 14 have SenseAI enabled.

Screen Shot 2022-07-18 at 9.12.37 PM.png

With DeepStack my CPU load averaging well above 75%.
 

jrbeddow

Getting comfortable
Joined
Oct 26, 2021
Messages
374
Reaction score
489
Location
USA
The USPS Model also works well with SenseAI.

View attachment 133897

Even with the additional models the CPU processing is significantly lower than with DeepStack. The graph below is the CPU load of my BI computer running 16 cameras (+1 cloned) of which 14 have SenseAI enabled.

View attachment 133898

With DeepStack my CPU load averaging well above 75%.
What kind of processing times are you seeing on any given camera/event (given that you are running CPU only, and with custom models)? @MikeLud1 mentioned that in his testing, the times seemed oddly long on this current (1.5.5) version compared to one generation back, and that he had raised the issue with the developers. Just looking to see your times for comparison.
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
743
Reaction score
698
What kind of processing times are you seeing on any given camera/event (given that you are running CPU only, and with custom models)? @MikeLud1 mentioned that in his testing, the times seemed oddly long on this current (1.5.5) version compared to one generation back, and that he had raised the issue with the developers. Just looking to see your times for comparison.
Most models are processing between 500 and 550 msec which is fast enough for what I'm using them for.
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,210
Reaction score
1,478
Location
USA
Just goofing around and tried disabling the stuff I don't need. I really didn't see much difference, but the AI starts up much quicker and probably saves me some memory. Something to mess with while we wait for newer version :)

Screenshot 2022-07-27 140659.png
 
Top