CodeProject.AI Version 2.0

Error Free :)

2023-04-20 13:14:35: Starting "C:\Program Files...ionNet\ObjectDetectionNet.exe"
2023-04-20 13:14:35:
2023-04-20 13:14:35: ** Module 'Object Detection (YOLOv5 .NET)' (ID: ObjectDetectionNet)
2023-04-20 13:14:35: ** Active: True
2023-04-20 13:14:35: ** GPU: Support enabled
2023-04-20 13:14:35: ** Parallelism: 0
2023-04-20 13:14:35: ** Platforms: windows,linux,linux-arm64,macos,macos-arm64
2023-04-20 13:14:35: ** FilePath: ObjectDetectionNet.exe
2023-04-20 13:14:35: ** ModulePath: ObjectDetectionNet
2023-04-20 13:14:35: ** Install: PreInstalled
2023-04-20 13:14:35: ** Runtime: execute
2023-04-20 13:14:35: ** Queue: objectdetection_queue
2023-04-20 13:14:35: ** Start pause: 1 sec
2023-04-20 13:14:35: ** Valid: True
2023-04-20 13:14:35: ** Environment Variables
2023-04-20 13:14:35: ** CPAI_MODULE_SUPPORT_GPU = True
2023-04-20 13:14:35: ** CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%\custom-models
2023-04-20 13:14:35: ** MODELS_DIR = %CURRENT_MODULE_PATH%\assets
2023-04-20 13:14:35: ** MODEL_SIZE = MEDIUM
2023-04-20 13:14:35: ** USE_CUDA = True

2023-04-20 14:02:04: ** Operating System: Windows (Microsoft Windows 11 version 10.0.22621)
2023-04-20 14:02:04: ** CPUs: 1 CPU x 8 cores. 16 logical processors (x64)
2023-04-20 14:02:04: ** GPU: NVIDIA GeForce GTX 1060 6GB (6 GiB) (NVidia)
2023-04-20 14:02:04: ** Driver: 516.94 CUDA: 11.7 Compute: 6.1
2023-04-20 14:02:04: ** System RAM: 32 GiB
2023-04-20 14:02:04: ** Target: Windows
2023-04-20 14:02:04: ** BuildConfig: Release
2023-04-20 14:02:04: ** Execution Env: Native
2023-04-20 14:02:04: ** Runtime Env: Production
2023-04-20 14:02:04: ** .NET framework: .NET 7.0.3
2023-04-20 14:02:04: ** App DataDir: C:\ProgramData\CodeProject\AI
2023-04-20 14:02:04: System GPU info:
2023-04-20 14:02:04: GPU 3D Usage 0%
2023-04-20 14:02:04: GPU RAM Usage 279 MiB
2023-04-20 14:02:04: Video adapter info:
2023-04-20 14:02:04: NVIDIA GeForce GTX 1060 6GB:
2023-04-20 14:02:04: Adapter RAM 4 GiB
2023-04-20 14:02:04: Driver Version 31.0.15.1694
2023-04-20 14:02:04: Video Processor NVIDIA GeForce GTX 1060 6GB
Where did you get this log?
 
Installed 2.1.5 but it looks like it’s not running. don’t even see an option to start the service. Glad I used my test machine!

There’s a thread on codeproject forum. Basically I noticed that it wasn’t installing .NET and ASP.NET and because of that installer was skipping steps like creating the service for AI.

So install those two modules and repair the installer and should be good.
 
There’s a thread on codeproject forum. Basically I noticed that it wasn’t installing .NET and ASP.NET and because of that installer was skipping steps like creating the service for AI.

So install those two modules and repair the installer and should be good.

Same problem here.... not sure how to install .NET and ASP.NET I see various .NET SDK downloads on microsoft.com, is one of those what the codeproject.ai installer is missing?
 
  • Like
Reactions: David L
I wish there was an offline installer that just had everything required. Installers that depend on online assets are so fragile (in general, not just codeproject).

Authors say it’s not that easy due to the number of different platforms like arm64 x64 then is it Linux or docket or windows native etc. So it would then require like 15-20 different offline installers for each different flavor.

The way they have it now is looks for pieces it needs based on the architecture. Which I can see why that’s easier to maintain for both author and end user side.
 
C:\Program Files\CodeProject\AI\logs
I looked there earlier but can't find the startup info you listed. Even Stopped and Restarted...hmmm...
 
I looked there earlier but can't find the startup info you listed. Even Stopped and Restarted...hmmm...
You can try either use Edit / Search / "Starting" or stop CP AI delete the log files and restart. The info I copied will be at the start of the text file.
 
  • Like
Reactions: David L
You can try either use Edit / Search / "Starting" or stop CP AI delete the log files and restart. The info I copied will be at the start of the text file.
Found one, thanks :)

2023-04-21 10:05:04: Response received (#reqid ##############################)
2023-04-21 10:05:54: ** Operating System: Windows (Microsoft Windows 10.0.19045)
2023-04-21 10:05:54: ** CPUs: 1 CPU x 4 cores. 8 logical processors (x64)
2023-04-21 10:05:54: ** GPU: NVIDIA GeForce GTX 970 (4 GiB) (NVidia)
2023-04-21 10:05:54: ** Driver: 516.94 CUDA: 11.7 Compute: 5.2
2023-04-21 10:05:54: ** System RAM: 32 GiB
2023-04-21 10:05:54: ** Target: Windows
2023-04-21 10:05:54: ** BuildConfig: Release
2023-04-21 10:05:54: ** Execution Env: Native
2023-04-21 10:05:54: ** Runtime Env: Production
2023-04-21 10:05:54: ** .NET framework: .NET 7.0.3
2023-04-21 10:05:54: ** App DataDir: C:\ProgramData\CodeProject\AI
2023-04-21 10:05:54: System GPU info:
2023-04-21 10:05:54: GPU 3D Usage 0%
2023-04-21 10:05:54: GPU RAM Usage 184 MiB
2023-04-21 10:05:54: Video adapter info:
2023-04-21 10:05:54: NVIDIA GeForce GTX 970:
2023-04-21 10:05:54: Adapter RAM 4 GiB
2023-04-21 10:05:54: Driver Version 31.0.15.1694
2023-04-21 10:05:54: Video Processor NVIDIA GeForce GTX 970
2023-04-21 10:05:54: ------------------------------------------------------------------
2023-04-21 10:05:54: ROOT_PATH = C:\Program Files\CodeProject\AI
2023-04-21 10:05:54: MODULES_PATH = C:\Program Files\CodeProject\AI\AnalysisLayer
2023-04-21 10:05:54: DOWNLOADED_MODULES_PATH = C:\Program Files\CodeProject\AI\modules
2023-04-21 10:05:54: PYTHON_BASEPATH = C:\Program Files\CodeProject\AI\AnalysisLayer\bin\windows\%PYTHON_RUNTIME%\venv
2023-04-21 10:05:54: PYTHON_PATH = C:\Program Files\CodeProject\AI\AnalysisLayer\bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
2023-04-21 10:05:54: Temp Dir: C:\WINDOWS\TEMP\
2023-04-21 10:05:54: Data Dir: C:\ProgramData\CodeProject\AI
2023-04-21 10:05:54: ------------------------------------------------------------------
2023-04-21 10:05:54: ModuleRunner Start
2023-04-21 10:05:54: Starting Background AI Modules
2023-04-21 10:05:55: Client request 'list-custom' in the queue (#reqid ###########################)
2023-04-21 10:05:57: Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
2023-04-21 10:05:57:
2023-04-21 10:05:57: ** Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
2023-04-21 10:05:57: ** Active: True
2023-04-21 10:05:57: ** GPU: Support enabled
2023-04-21 10:05:57: ** Parallelism: 0
2023-04-21 10:05:57: ** Platforms: all
2023-04-21 10:05:57: ** FilePath: detect_adapter.py
2023-04-21 10:05:57: ** ModulePath: ObjectDetectionYolo
2023-04-21 10:05:57: ** Install: PreInstalled
2023-04-21 10:05:57: ** Runtime: python37
2023-04-21 10:05:57: ** Queue: objectdetection_queue
2023-04-21 10:05:57: ** Start pause: 1 sec
2023-04-21 10:05:57: ** Valid: True
2023-04-21 10:05:57: ** Environment Variables
2023-04-21 10:05:57: ** APPDIR = %CURRENT_MODULE_PATH%
2023-04-21 10:05:57: ** CPAI_CUDA_DEVICE_NUM = 0
2023-04-21 10:05:57: ** CPAI_HALF_PRECISION = Enable
2023-04-21 10:05:57: ** CPAI_MODULE_SUPPORT_GPU = True
2023-04-21 10:05:57: ** CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
2023-04-21 10:05:57: ** MODELS_DIR = %CURRENT_MODULE_PATH%/assets
2023-04-21 10:05:57: ** MODEL_SIZE = Large
2023-04-21 10:05:57: ** USE_CUDA = True
2023-04-21 10:05:57: ** YOLOv5_AUTOINSTALL = false
2023-04-21 10:05:57: ** YOLOv5_VERBOSE = false
2023-04-21 10:05:57:
2023-04-21 10:05:57: Started Object Detection (YOLOv5 6.2) module
2023-04-21 10:05:58: Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...ing\intelligencelayer\face.py"
2023-04-21 10:05:58:
2023-04-21 10:05:58: ** Module 'Face Processing' (ID: FaceProcessing)
2023-04-21 10:05:58: ** Active: True
2023-04-21 10:05:58: ** GPU: Support enabled
2023-04-21 10:05:58: ** Parallelism: 0
2023-04-21 10:05:58: ** Platforms: windows,linux,linux-arm64,macos,macos-arm64
2023-04-21 10:05:58: ** FilePath: intelligencelayer\face.py
2023-04-21 10:05:58: ** ModulePath: FaceProcessing
2023-04-21 10:05:58: ** Install: PreInstalled
2023-04-21 10:05:58: ** Runtime: python37
2023-04-21 10:05:58: ** Queue: face_queue
2023-04-21 10:05:58: ** Start pause: 1 sec
2023-04-21 10:05:58: ** Valid: True
2023-04-21 10:05:58: ** Environment Variables
2023-04-21 10:05:58: ** APPDIR = %CURRENT_MODULE_PATH%\intelligencelayer
2023-04-21 10:05:58: ** CPAI_MODULE_SUPPORT_GPU = True
2023-04-21 10:05:58: ** DATA_DIR = %DATA_DIR%
2023-04-21 10:05:58: ** MODE = MEDIUM
2023-04-21 10:05:58: ** MODELS_DIR = %CURRENT_MODULE_PATH%\assets
2023-04-21 10:05:58: ** PROFILE = desktop_gpu
2023-04-21 10:05:58: ** USE_CUDA = True
2023-04-21 10:05:58: ** YOLOv5_AUTOINSTALL = false
2023-04-21 10:05:58: ** YOLOv5_VERBOSE = false
2023-04-21 10:05:58:
2023-04-21 10:05:58: Started Face Processing module
2023-04-21 10:05:59: Installing Initial Modules.
2023-04-21 10:06:10: Sending shutdown request to python/FaceProcessing
2023-04-21 10:06:10: Client request 'Quit' in the queue (#reqid ########################)
2023-04-21 10:06:11: detect_adapter.py: APPDIR: C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo
2023-04-21 10:06:11: detect_adapter.py: CPAI_PORT: 32168
2023-04-21 10:06:11: detect_adapter.py: MODEL_SIZE: large
2023-04-21 10:06:11: detect_adapter.py: MODELS_DIR: C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\assets
2023-04-21 10:06:11: detect_adapter.py: support_GPU: True
2023-04-21 10:06:11: detect_adapter.py: use_CUDA: True
2023-04-21 10:06:11: face.py: Vision AI services setup: Retrieving environment variables...
2023-04-21 10:06:11: face.py: APPDIR: C:\Program Files\CodeProject\AI\AnalysisLayer\FaceProcessing\intelligencelayer
2023-04-21 10:06:11: Request 'list-custom' dequeued for processing (#reqid #########################)
2023-04-21 10:06:11: face.py: PROFILE: desktop_gpu
2023-04-21 10:06:11: Object Detection (YOLOv5 6.2): Running init for Object Detection (YOLOv5 6.2) in Object Detection (YOLOv5 6.2)
2023-04-21 10:06:11: face.py: USE_CUDA: True
2023-04-21 10:06:11: face.py: DATA_DIR: C:\ProgramData\CodeProject\AI
2023-04-21 10:06:11: face.py: MODELS_DIR: C:\Program Files\CodeProject\AI\AnalysisLayer\FaceProcessing\assets
2023-04-21 10:06:11: face.py: PORT: 32168
2023-04-21 10:06:11: face.py: MODE: MEDIUM
2023-04-21 10:06:11: face.py: GPU in use: NVIDIA GeForce GTX 970
2023-04-21 10:06:11: Request 'Quit' dequeued for processing (#reqid ##########################)
2023-04-21 10:06:11: Face Processing: Face Processing started. in Face Processing
2023-04-21 10:06:11: Object Detection (YOLOv5 6.2): Object Detection (YOLOv5 6.2) started. in Object Detection (YOLOv5 6.2)
2023-04-21 10:06:11: Face Processing: Retrieved face_queue command in Face Processing
2023-04-21 10:06:11: Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command in Object Detection (YOLOv5 6.2)

1682197380334.png
 
You can try either use Edit / Search / "Starting" or stop CP AI delete the log files and restart. The info I copied will be at the start of the text file.
So how do you stop 6.2 and start .NET?
 
  • Like
Reactions: gwminor48
If you want to give a little more boost and better consistency try setting the Power management mode to Prefer maximum performance, see the below link.

 
If you want to give a little more boost and better consistency try setting the Power management mode to Prefer maximum performance, see the below link.

Done, thanks.

I have been very pleased with CodeProject.AI DeepStack worked great for me too. CP.AI YOLOv5 6.2 worked with no problems so I am sure YOLOv5.NET will do the same.

Our Neighborhood Cats are still being Identified as Birds :D, but Persons, Cars, Trucks are spot on which is all I care about.

1682249521799.png
1682250407702.png
1682250474172.png

I know this is a Blue Iris question but wonder if there is a way I can get Person detections sent to a phone push notification? I am running HA
 
Done, thanks.

I have been very pleased with CodeProject.AI DeepStack worked great for me too. CP.AI YOLOv5 6.2 worked with no problems so I am sure YOLOv5.NET will do the same.

Our Neighborhood Cats are still being Identified as Birds :D, but Persons, Cars, Trucks are spot on which is all I care about.

View attachment 160807
View attachment 160809
View attachment 160810

I know this is a Blue Iris question but wonder if there is a way I can get Person detections sent to a phone push notification? I am running HA
Absolutely!
Just install the BI app on your phone and define it to send only 'Persons' events. If you find it conflicts with your other requirements, setup a clone specifically for that kind of event.
 
  • Like
Reactions: David L