CodeProject.AI 2.1.6 Sever Offline?

Joined
Jun 1, 2016
Messages
79
Reaction score
39
Going to give docker a try. Does the windows setup allow for GPU or CPU only?
 

slabbel

Young grasshopper
Joined
Dec 12, 2014
Messages
30
Reaction score
24
I can't seem to get CPAI 2.1.8 to run YOLOv5 .NET using GPU (DirectML). No errors are being reported in the CPAI logs, console shows "Connection Lost" and then restarts in CPU mode. I followed the advice to do a clean install, clean up folders, restart & wait it out. Rolling back to 2.0.8

11:24:59:Operating System: Windows (Microsoft Windows 11 version 10.0.22621)
11:24:59:CPUs: 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
11:24:59: 1 CPU x 8 cores. 16 logical processors (x64)
11:24:59:System RAM: 16 GiB
11:24:59:Target: Windows
11:24:59:BuildConfig: Release
11:24:59:Execution Env: Native
11:24:59:Runtime Env: Production
11:24:59:.NET framework: .NET 7.0.5
11:24:59:App DataDir: C:\ProgramData\CodeProject\AI
11:24:59:Video adapter info:
11:24:59: Intel(R) UHD Graphics 750:
11:24:59: Driver Version 30.0.101.1340
11:24:59: Video Processor Intel(R) UHD Graphics Family
11:24:59:ROOT_PATH = C:\Program Files\CodeProject\AI
11:24:59:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
11:24:59 REINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
11:24:59:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
11:24:59 PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
11:24:59 Data Dir = C:\ProgramData\CodeProject\AI
11:24:59:Server version: 2.1.8-Beta
11:25:02:
11:25:02:Module 'Object Detection (YOLOv5 .NET)' (ID: ObjectDetectionNet)
11:25:02:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet
11:25:02:AutoStart: True
11:25:02:Queue: objectdetection_queue
11:25:02 Platforms: windows,linux,linux-arm64,macos,macos-arm64
11:25:02:GPU: Support enabled
11:25:02Parallelism: 0
11:25:02:Accelerator:
11:25:02:Half Precis.: enable
11:25:02:Runtime: execute
11:25:02:Runtime Loc: Shared
11:25:02:FilePath: ObjectDetectionNet.exe
11:25:02Pre installed: False
11:25:02:Start pause: 1 sec
11:25:02:LogVerbosity:
11:25:02:Valid: True
11:25:02:Environment Variables
11:25:02:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%\custom-models
11:25:02:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
11:25:02:MODEL_SIZE = large
11:25:02:
11:25:02:Started Object Detection (YOLOv5 .NET) module
11:25:02:ObjectDetectionNet.exe: Application started. Press Ctrl+C to shut down.
11:25:02:ObjectDetectionNet.exe: Hosting environment: Production
11:25:02:ObjectDetectionNet.exe: Content root path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet
11:25:03:ObjectDetectionNet.exe: Please ensure you don't enable this module along side any other Object Detection module using the 'vision/detection' route and 'objectdetection_queue' queue (eg. ObjectDetectionYolo). There will be conflicts
11:25:03:Object Detection (YOLOv5 .NET): Object Detection (YOLOv5 .NET) module started.
11:25:05:Server: This is a new, unreleased version
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,219
Reaction score
4,261
Location
Brooklyn, NY
I can't seem to get CPAI 2.1.8 to run YOLOv5 .NET using GPU (DirectML). No errors are being reported in the CPAI logs, console shows "Connection Lost" and then restarts in CPU mode. I followed the advice to do a clean install, clean up folders, restart & wait it out. Rolling back to 2.0.8

11:24:59:Operating System: Windows (Microsoft Windows 11 version 10.0.22621)
11:24:59:CPUs: 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
11:24:59: 1 CPU x 8 cores. 16 logical processors (x64)
11:24:59:System RAM: 16 GiB
11:24:59:Target: Windows
11:24:59:BuildConfig: Release
11:24:59:Execution Env: Native
11:24:59:Runtime Env: Production
11:24:59:.NET framework: .NET 7.0.5
11:24:59:App DataDir: C:\ProgramData\CodeProject\AI
11:24:59:Video adapter info:
11:24:59: Intel(R) UHD Graphics 750:
11:24:59: Driver Version 30.0.101.1340
11:24:59: Video Processor Intel(R) UHD Graphics Family
11:24:59:ROOT_PATH = C:\Program Files\CodeProject\AI
11:24:59:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
11:24:59 REINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
11:24:59:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
11:24:59 PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
11:24:59 Data Dir = C:\ProgramData\CodeProject\AI
11:24:59:Server version: 2.1.8-Beta
11:25:02:
11:25:02:Module 'Object Detection (YOLOv5 .NET)' (ID: ObjectDetectionNet)
11:25:02:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet
11:25:02:AutoStart: True
11:25:02:Queue: objectdetection_queue
11:25:02 Platforms: windows,linux,linux-arm64,macos,macos-arm64
11:25:02:GPU: Support enabled
11:25:02Parallelism: 0
11:25:02:Accelerator:
11:25:02:Half Precis.: enable
11:25:02:Runtime: execute
11:25:02:Runtime Loc: Shared
11:25:02:FilePath: ObjectDetectionNet.exe
11:25:02Pre installed: False
11:25:02:Start pause: 1 sec
11:25:02:LogVerbosity:
11:25:02:Valid: True
11:25:02:Environment Variables
11:25:02:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%\custom-models
11:25:02:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
11:25:02:MODEL_SIZE = large
11:25:02:
11:25:02:Started Object Detection (YOLOv5 .NET) module
11:25:02:ObjectDetectionNet.exe: Application started. Press Ctrl+C to shut down.
11:25:02:ObjectDetectionNet.exe: Hosting environment: Production
11:25:02:ObjectDetectionNet.exe: Content root path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet
11:25:03:ObjectDetectionNet.exe: Please ensure you don't enable this module along side any other Object Detection module using the 'vision/detection' route and 'objectdetection_queue' queue (eg. ObjectDetectionYolo). There will be conflicts
11:25:03:Object Detection (YOLOv5 .NET): Object Detection (YOLOv5 .NET) module started.
11:25:05:Server: This is a new, unreleased version
Maybe try updating you Intel GPU drive to see if that helps
 

slabbel

Young grasshopper
Joined
Dec 12, 2014
Messages
30
Reaction score
24
So you did the below and that fixe the issue.

View attachment 162366
Correct, the last install I did was with "Option 1 with a vengeance". Before that, I reinstalled the module using "Option 1" a couple of times. Although it installed the module successfully, I noticed errors like "customs-model" folder does not exist and Timeouts during the installation.
 

matt_pl

n3wb
Joined
Mar 10, 2020
Messages
10
Reaction score
4
Location
Poland
Have you been able to run Docker as a service on Windows 10 so it starts automatically when a computer is restarted? Normally, Docker starts when a user logs in.
 
Joined
Nov 30, 2020
Messages
7
Reaction score
3
Location
Sweden
Have you been able to run Docker as a service on Windows 10 so it starts automatically when a computer is restarted? Normally, Docker starts when a user logs in.
I ended up using "control userpasswords2" to autologon and then added a scheduled task to run at logon "C:\Windows\System32\rundll32.exe" arguments "user32.dll, LockWorkStation" … there probably is a better solution out there.
 

matt_pl

n3wb
Joined
Mar 10, 2020
Messages
10
Reaction score
4
Location
Poland
I ended up using "control userpasswords2" to autologon and then added a scheduled task to run at logon "C:\Windows\System32\rundll32.exe" arguments "user32.dll, LockWorkStation" … there probably is a better solution out there.
I ended up using Task Scheduler to start Docker automatically when Windows 10 starts. It was fairly simple to configure:
stackoverflow.com/a/59467740/7547525

To start CPAI container automatically when Docker starts, I took the following guideline:
Start containers automatically
 
Top