CodeProject.AI Version 2.0

biggen

Known around here
Joined
May 6, 2018
Messages
2,539
Reaction score
2,765
I'm running BI (5.7.05) and CP.AI (2.0.8) on a dedicated PC (i7-4770, 24GB) and never had any performance issues in the past. When CP.AI is on, the BI CPU indicator on the bottom right typically bounces around between 12% and 25%. It occassionally spikes to >90% and then drops back down. RAM is usually 750M-980M. AI average speed is 240ms (6.91/min).
Is that a 24GB drive? Surely not and this must be RAM. How old is the hard drive though as that CPU is about a decade old now?
 
Last edited:

Post

Getting the hang of it
Joined
Sep 1, 2016
Messages
56
Reaction score
29
Remove any TEMP files. at START Run Enter %TEMP% to get to TEMP directory.
I think that was it! There were lots of CP.AI temp files in this folder: users\username\APP Data\Local\temp. Maintenance and CCleaner didn't find them! I also found a ".Docker" folder that must have been left after uninstalling CP.AI. I deleted both of those and that may have done the trick! Thanks so much! :thumb:

Or go back to Deepstack. I am still on Deepstack as there seems to be way too many issues for many folks here for me to risk it on my BI computer.
I think I'll need to do that. Which version of BI are you using with DS?

Is that a 24GB drive? Surely not and this must be RAM. How old is the hard drive though as that CPU is about a decade old now?
The 24GB is indeed RAM! Yes, the CPU is probably at least 10 years old. It's an old Dell machine but a few years ago I added an SSD for the OS and BI, along with a WD Purple hard drive for recording. After adding the two hard drives it's actually been running great....until now!
 

David L

IPCT Contributor
Joined
Aug 2, 2019
Messages
7,933
Reaction score
20,759
Location
USA
I was on 5.7.0.5 and 5.7.1.2 with DeepStack. I just switched last week to CP.AI

1679435642089.png
 

David L

IPCT Contributor
Joined
Aug 2, 2019
Messages
7,933
Reaction score
20,759
Location
USA
You're both modern, i'm still on an i7-2600 lol
My grandson still has a 1st Gen PC I gave him several years ago. I also have a 2nd gen. for our HTPC, rarely use it much anymore but do keep Win10 updated on it.
 

Post

Getting the hang of it
Joined
Sep 1, 2016
Messages
56
Reaction score
29
So, if we want to use our old CPUs with CP.AI, could we just add a graphics cards such as the one David L suggested earlier (MSI NVIDIA GeForce GTX 1650 4G)? Or at this point, would it make more sense to upgrade to a PC with a newer CPU? I know the WIKI discusses CPU requirements for BI, but wondering what they would be for BI with CP.AI? Is the graphics card the key here? And, is CUDA necessary (it Iooks a little intimidating to me!) ?
 

David L

IPCT Contributor
Joined
Aug 2, 2019
Messages
7,933
Reaction score
20,759
Location
USA
So, if we want to use our old CPUs with CP.AI, could we just add a graphics cards such as the one David L suggested earlier (MSI NVIDIA GeForce GTX 1650 4G)? Or at this point, would it make more sense to upgrade to a PC with a newer CPU? I know the WIKI discusses CPU requirements for BI, but wondering what they would be for BI with CP.AI? Is the graphics card the key here? And, is CUDA necessary (it Iooks a little intimidating to me!) ?
My thought is with a GPU doing my AI, it is kind a like having two Processors, CPU for BI and GPU for AI...prior to AI my 4th gen CPU was handling BI but I don't have near the CAMs you have. I am recording 24/7 on 4 CAMs though and getting motion alerts...

If you do get a GPU card I would get at least 4Gigs memory, just my Opinion. I know in Gaming Memory on a Video Card is important so thinking AI would benefit too...
 
Last edited:

MikeR33

Getting the hang of it
Joined
Jan 26, 2018
Messages
34
Reaction score
28
So, if we want to use our old CPUs with CP.AI, could we just add a graphics cards such as the one David L suggested earlier (MSI NVIDIA GeForce GTX 1650 4G)? Or at this point, would it make more sense to upgrade to a PC with a newer CPU? I know the WIKI discusses CPU requirements for BI, but wondering what they would be for BI with CP.AI? Is the graphics card the key here? And, is CUDA necessary (it Iooks a little intimidating to me!) ?
That's how I get by with my old i7, using my gaming pc hand downs so popped a 1060GTX into this BI PC. Have then undervolted and underclocked both the CPU\GPU and got the power usage down a large amount (the PC reports only 15w for CPU use and 9w for GPU while everything is running, reported from using CPUID HWMonitor, wouldn't say this is likely 100% accurate but compared to previous in stock mode readings it was more like 40w CPU and 60w GPU). Getting the upgrade itch again now on my gaming pc so the BI PC may receive a full update soon, once I convince the boss it's really needed lol
 

David L

IPCT Contributor
Joined
Aug 2, 2019
Messages
7,933
Reaction score
20,759
Location
USA
That's how I get by with my old i7, using my gaming pc hand downs so popped a 1060GTX into this BI PC. Have then undervolted and underclocked both the CPU\GPU and got the power usage down a large amount (the PC reports only 15w for CPU use and 9w for GPU while everything is running, reported from using CPUID HWMonitor, wouldn't say this is likely 100% accurate but compared to previous in stock mode readings it was more like 40w CPU and 60w GPU). Getting the upgrade itch again now on my gaming pc so the BI PC may receive a full update soon, once I convince the boss it's really needed lol
Just don't tell her it is a gaming PC, it is for buying shoes online :)
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,209
Reaction score
1,473
Location
USA
If you are running a older CPU I would just grab one of these instead of a GPU. Guess it depends on your workload but some of those GPUs get expensive and use more power.

59.jpg
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,141
Reaction score
4,118
Location
Brooklyn, NY
CodeProject.AI Version 2.1 coming soon. I am test this version right now. I do not know all the changes right now.

Changes
Install does not install modules, they get installed after running the install.
The ability to uninstall default modules
Update to ALPR (Version 2.2) fixes auto plate rotation, improves plate reading.
New ObjectDetection (TF-Lite) module, I thinks this is for Coral support, I could not test since I do not have a Coral
More Modules, list in the below screenshot

1680199597664.png

1680199561846.png
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,209
Reaction score
1,473
Location
USA
Well W11 gives me this, never use to.

55.jpg

But on CPU mode it did install fine and seems to run fine as always.

56.jpg
 
Last edited:

Chicken

Getting the hang of it
Joined
Dec 30, 2016
Messages
45
Reaction score
35
Windows defender tends the block new executables like this until its see it enough times globally. If you feel it is safe just click the more info and you should be able to install it. Otherwise give it a week and defender should stop blocking it.
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,209
Reaction score
1,473
Location
USA
Windows defender tends the block new executables like this until its see it enough times globally. If you feel it is safe just click the more info and you should be able to install it. Otherwise give it a week and defender should stop blocking it.
Never did it before though and I have installed every version of AI since it was released.
 

David L

IPCT Contributor
Joined
Aug 2, 2019
Messages
7,933
Reaction score
20,759
Location
USA
I have Defender turned off. Don't see a reason to run an anti-virus on my Blue Iris PC...
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,141
Reaction score
4,118
Location
Brooklyn, NY
CodeProject.AI version 2.1 changes

Release notes for 2.1
  1. All modules are now equal. On first startup we install Object Detection (Python and .NET) and Face Processing, but
    these can be uninstalled. The Server installer itself no longer installs these modules: they are auto-installed on
    first startup by the server itself.
  2. Reworking of the Python module SDK. Modules are new child classes, not aggregators of our module runner.
  3. Reworking of the modulesettings file to make it simpler and have less replication
  4. Improved logging: quantity, quality, filtering and better information
  5. Addition of 2 modules: ObjectDetectionTFLite for Object Detection on a on Raspberry Pi using Coral, and Cartoonise for some fun
  6. Improvements to half-precision support checks on CUDA cards
  7. Modules are now versioned and our module registry will now only show modules that fit your current server version.
  8. Various bug fixes
  9. Shared Python runtimes now in /runtimes. No more AnalysisLayer folder. These are all now in /modules
  10. Tested on CUDA 12
 

swilliams76360

Getting the hang of it
Joined
Oct 5, 2022
Messages
29
Reaction score
25
Location
texas
CodeProject.AI version 2.1 changes

Release notes for 2.1
  1. All modules are now equal. On first startup we install Object Detection (Python and .NET) and Face Processing, but
    these can be uninstalled. The Server installer itself no longer installs these modules: they are auto-installed on
    first startup by the server itself.
  2. Reworking of the Python module SDK. Modules are new child classes, not aggregators of our module runner.
  3. Reworking of the modulesettings file to make it simpler and have less replication
  4. Improved logging: quantity, quality, filtering and better information
  5. Addition of 2 modules: ObjectDetectionTFLite for Object Detection on a on Raspberry Pi using Coral, and Cartoonise for some fun
  6. Improvements to half-precision support checks on CUDA cards
  7. Modules are now versioned and our module registry will now only show modules that fit your current server version.
  8. Various bug fixes
  9. Shared Python runtimes now in /runtimes. No more AnalysisLayer folder. These are all now in /modules
  10. Tested on CUDA 12
ohh nice cant wait to try it when released....thanks for all the great work yall do
 

tinker3433

BIT Beta Team
Joined
May 3, 2014
Messages
17
Reaction score
4
Feature Request?
@MikeLud1

My understanding is that the “+ real-time images: xx” setting will cause more than just the initial image to be analyzed, but that the analysis will stop after the first positive confirmation.
Is there a way to add an option to have the analysis continue to run on the remaining images as specified in "+ real-time images: xx" and "analyze one each: xx" sometimes even when one confirm happens? A second analysis may provide a better result, especially for ALPR where it doesn’t get the number correct on the first try, and also face rec I assume. I realize this will cause duplicate confirmations of the same image in most cases, but for those with the processing power it might be nice to have the additional option.

Or am I misunderstanding how it works?
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,141
Reaction score
4,118
Location
Brooklyn, NY
Feature Request?
@MikeLud1

My understanding is that the “+ real-time images: xx” setting will cause more than just the initial image to be analyzed, but that the analysis will stop after the first positive confirmation.
Is there a way to add an option to have the analysis continue to run on the remaining images as specified in "+ real-time images: xx" and "analyze one each: xx" sometimes even when one confirm happens? A second analysis may provide a better result, especially for ALPR where it doesn’t get the number correct on the first try, and also face rec I assume. I realize this will cause duplicate confirmations of the same image in most cases, but for those with the processing power it might be nice to have the additional option.

Or am I misunderstanding how it works?
Just add something in the To cancel, like below.

1680294775555.png
 
Top