|
What a fun day -
I expected to report my findings this morning but woke up to issues with my NVR and a corrupt Blue Iris DB. I'm finally back up and running and can report that everything is working as expected.
Object Detection (YOLOv5 6.2) 1.6.1
License Plate Reader 2.6
Face Processing 1.7
Modules are running and BI is back to understanding the AI response.
Thanks again, Chris.
|
|
|
|
|
As of yesterday, I've been unable to download from the Codeproject servers. It began with trying to download an update to YOLOv5 .NET (server log follows):
15:14:08:Operating System: Windows (Microsoft Windows 11 version 10.0.22621)
15:14:08:CPUs: 12th Gen Intel(R) Core(TM) i5-1235U (Intel)
15:14:08: 1 CPU x 10 cores. 12 logical processors (x64)
15:14:08:GPU: Microsoft Remote Display Adapter (Microsoft)
15:14:08: Driver: 10.0.22621.2070
15:14:08:System RAM: 16 GiB
15:14:08:Target: Windows
15:14:08:BuildConfig: Release
15:14:08:Execution Env: Native
15:14:08:Runtime Env: Production
15:14:08:.NET framework: .NET 7.0.11
15:14:08:App DataDir: C:\ProgramData\CodeProject\AI
15:14:08:Video adapter info:
15:14:08: Microsoft Remote Display Adapter:
15:14:08: Driver Version 10.0.22621.2070
15:14:08: Video Processor
15:14:08: Intel(R) Iris(R) Xe Graphics:
15:14:08: Driver Version 31.0.101.4824
15:14:08: Video Processor Intel(R) Iris(R) Xe Graphics Family
15:14:08:ROOT_PATH = C:\Program Files\CodeProject\AI
15:14:08:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
15:14:08:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
15:14:08:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
15:14:08:PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
15:14:08:Data Dir = C:\ProgramData\CodeProject\AI
15:14:08:Server version: 2.1.11-Beta
15:14:13:Server: This is the latest version
15:14:41:Preparing to install module 'ObjectDetectionNet'
15:14:41:Downloading module 'ObjectDetectionNet'
15:14:41:Installing module 'ObjectDetectionNet'
15:14:41:ObjectDetectionNet: Installing CodeProject.AI Analysis Module
15:14:41:ObjectDetectionNet: ========================================================================
15:14:42:ObjectDetectionNet: CodeProject.AI Installer
15:14:42:ObjectDetectionNet: ========================================================================
15:14:42:ObjectDetectionNet: Checking GPU support
15:14:42:ObjectDetectionNet: CUDA Present...False
15:14:42:ObjectDetectionNet: Allowing GPU Support: Yes
15:14:42:ObjectDetectionNet: Allowing CUDA Support: No
15:14:42:ObjectDetectionNet: General CodeProject.AI setup
15:14:42:ObjectDetectionNet: Creating Directories...Done
15:14:42:ObjectDetectionNet: Installing module ObjectDetectionNet
15:14:44:ObjectDetectionNet: Start-BitsTransfer : HTTP status 403: The client does not have sufficient access rights to the requested server object.
15:14:44:ObjectDetectionNet: At line:1 char:1
15:14:44:ObjectDetectionNet: + Start-BitsTransfer -Source 'https://codeproject-ai.s3.ca-central-1.am ...
15:14:44:ObjectDetectionNet: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15:14:44:ObjectDetectionNet: + CategoryInfo : InvalidOperation: (:) [Start-BitsTransfer], Exception
15:14:44:ObjectDetectionNet: + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
15:14:44:ObjectDetectionNet: TransferCommand
15:14:44:ObjectDetectionNet: Downloading ObjectDetectionNet module...An error occurred that could not be resolved.
15:18:41:ObjectDetectionNet: Downloading YOLO ONNX models...Expanding...Done.
15:20:37:ObjectDetectionNet: Downloading Custom YOLO ONNX models...Expanding...Done.
15:20:37:ObjectDetectionNet: Module setup complete
15:20:37:Module ObjectDetectionNet installed successfully.
15:20:37:Module ObjectDetectionNet not configured to AutoStart.
15:20:37:Installer exited with code 0
15:20:37:Unknown response from server
15:21:08:Unknown response from serverInfo
15:30:03:
15:30:03:Module 'Object Detection (YOLOv5 .NET)' (ID: ObjectDetectionNet)
15:30:03:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet
15:30:03:AutoStart: True
15:30:03:Queue: objectdetection_queue
15:30:03:Platforms: windows,linux,linux-arm64,macos,macos-arm64
15:30:03:GPU: Support enabled
15:30:03:Parallelism: 0
15:30:03:Accelerator:
15:30:03:Half Precis.: enable
15:30:03:Runtime: execute
15:30:03:Runtime Loc: Shared
15:30:03:FilePath: ObjectDetectionNet.exe
15:30:03:Pre installed: False
15:30:03:Start pause: 1 sec
15:30:03:LogVerbosity:
15:30:03:Valid: True
15:30:03:Environment Variables
15:30:03:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%\custom-models
15:30:03:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
15:30:03:MODEL_SIZE = MEDIUM
15:30:03:
15:30:03:Error trying to start Object Detection (YOLOv5 .NET) (ObjectDetectionNet.exe)
15:30:03:An error occurred trying to start process 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet\ObjectDetectionNet.exe' with working directory 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet'. The system cannot find the file specified.
15:30:03: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.API.Server.Frontend.ModuleProcessServices.StartProcess(ModuleConfig module)
15:30:03:Please check the CodeProject.AI installation completed successfully
..and continued this morning when I tried a clean installation:
06:29:50:Operating System: Windows (Microsoft Windows 11 version 10.0.22621)
06:29:50:CPUs: 12th Gen Intel(R) Core(TM) i5-1235U (Intel)
06:29:50: 1 CPU x 10 cores. 12 logical processors (x64)
06:29:50:GPU: Microsoft Remote Display Adapter (Microsoft)
06:29:50: Driver: 10.0.22621.2070
06:29:50:System RAM: 16 GiB
06:29:50:Target: Windows
06:29:50:BuildConfig: Release
06:29:50:Execution Env: Native
06:29:50:Runtime Env: Production
06:29:50:.NET framework: .NET 7.0.11
06:29:50:App DataDir: C:\ProgramData\CodeProject\AI
06:29:50:Video adapter info:
06:29:50: Microsoft Remote Display Adapter:
06:29:50: Driver Version 10.0.22621.2070
06:29:50: Video Processor
06:29:50: Intel(R) Iris(R) Xe Graphics:
06:29:50: Driver Version 31.0.101.4824
06:29:50: Video Processor Intel(R) Iris(R) Xe Graphics Family
06:29:50:ROOT_PATH = C:\Program Files\CodeProject\AI
06:29:50:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
06:29:50:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
06:29:50:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
06:29:50:PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
06:29:50:Data Dir = C:\ProgramData\CodeProject\AI
06:29:50:Server version: 2.1.11-Beta
06:29:54:Setting up initial modules. Please be patient...
06:29:54:Installing initial module FaceProcessing.
06:29:54:Preparing to install module 'FaceProcessing'
06:29:54:Downloading module 'FaceProcessing'
06:29:55:Installing module 'FaceProcessing'
06:29:56:FaceProcessing: Installing CodeProject.AI Analysis Module
06:29:56:FaceProcessing: ========================================================================
06:29:56:FaceProcessing: CodeProject.AI Installer
06:29:56:FaceProcessing: ========================================================================
06:29:56:FaceProcessing: Checking GPU support
06:29:56:FaceProcessing: CUDA Present...False
06:29:56:FaceProcessing: Allowing GPU Support: Yes
06:29:56:FaceProcessing: Allowing CUDA Support: No
06:29:56:FaceProcessing: General CodeProject.AI setup
06:29:56:FaceProcessing: Creating Directories...Done
06:29:56:FaceProcessing: Installing module FaceProcessing
06:29:56:FaceProcessing: Installing python.= in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python.=
06:29:56:Server: This is the latest version
06:29:58:FaceProcessing: Start-BitsTransfer : HTTP status 403: The client does not have sufficient access rights to the requested server object.
06:29:58:FaceProcessing: At line:1 char:1
06:29:58:FaceProcessing: + Start-BitsTransfer -Source 'https://codeproject-ai.s3.ca-central-1.am ...
06:29:58:FaceProcessing: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
06:29:58:FaceProcessing: + CategoryInfo : InvalidOperation: (:) [Start-BitsTransfer], Exception
06:29:58:FaceProcessing: + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
06:29:58:FaceProcessing: TransferCommand
06:29:58:FaceProcessing: Downloading Python interpreter...An error occurred that could not be resolved.
06:29:58:FaceProcessing: No suitable requirements.txt file found.
06:34:47:FaceProcessing: Downloading YOLO models...Expanding...Done.
06:34:47:FaceProcessing: Module setup complete
06:34:47:Module FaceProcessing installed successfully.
06:34:47:Unable to start newly installed Module FaceProcessing.
06:34:47:Installer exited with code 0
06:34:47:Installing initial module ObjectDetectionNet.
06:34:47:Preparing to install module 'ObjectDetectionNet'
06:34:47:Downloading module 'ObjectDetectionNet'
06:34:48:Installing module 'ObjectDetectionNet'
06:34:48:ObjectDetectionNet: Installing CodeProject.AI Analysis Module
06:34:48:ObjectDetectionNet: ========================================================================
06:34:48:ObjectDetectionNet: CodeProject.AI Installer
06:34:48:ObjectDetectionNet: ========================================================================
06:34:48:ObjectDetectionNet: Checking GPU support
06:34:48:ObjectDetectionNet: CUDA Present...False
06:34:48:ObjectDetectionNet: Allowing GPU Support: Yes
06:34:48:ObjectDetectionNet: Allowing CUDA Support: No
06:34:49:ObjectDetectionNet: General CodeProject.AI setup
06:34:49:ObjectDetectionNet: Creating Directories...Done
06:34:49:ObjectDetectionNet: Installing module ObjectDetectionNet
06:34:50:ObjectDetectionNet: Start-BitsTransfer : HTTP status 403: The client does not have sufficient access rights to the requested server object.
06:34:50:ObjectDetectionNet: At line:1 char:1
06:34:50:ObjectDetectionNet: + Start-BitsTransfer -Source 'https:
06:34:50:ObjectDetectionNet: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
06:34:50:ObjectDetectionNet: + CategoryInfo : InvalidOperation: (:) [Start-BitsTransfer], Exception
06:34:50:ObjectDetectionNet: + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
06:34:50:ObjectDetectionNet: TransferCommand
06:34:50:ObjectDetectionNet: Downloading ObjectDetectionNet module...An error occurred that could not be resolved.
06:37:06:ObjectDetectionNet: Downloading YOLO ONNX models...Expanding...Done.
|
|
|
|
|
also having the same issue, I am here looking for an answer
|
|
|
|
|
|
I would suggest updating to the version 2.2.4
cheers
Chris Maunder
|
|
|
|
|
I did, and while I still see the occasional HTTP 403 error, at least 2.2.4 knows how to retry on server request failures.
I hope someone is working with AWS services to seek out and destroy the server-side issue that's causing these errors.
|
|
|
|
|
Same here. Fixed by installing 2.2
|
|
|
|
|
Message Closed
-- modified 19-Sep-23 12:38pm.
|
|
|
|
|
That's a neat trick! Do you have a Docker version running?
cheers
Chris Maunder
|
|
|
|
|
I did not install docker, so I assume it's not running.
|
|
|
|
|
|
The dashboard format was updated. The 3 little SVG icons to the left of the menu you show.
Stop, Pause, and Restart...
|
|
|
|
|
no models in model combobox!
|
|
|
|
|
Need a little more info please: which object detection module do you have enabled?
For the YOLO 6.2, YOLO 3.1 and .NET detectors, check in C:\Program Files\CodeProject\AI\modules[Module]\custom-models and let me know what you see.
For Coral, no custom models are provided.
cheers
Chris Maunder
|
|
|
|
|
Hello
2.2 has been giving me the non-json error.
I tried to go back to 2.1 but for some reason modules wouldnt install.
I saw 2.2.3 came out and it should have solved the issue, but I am still having it. I am using the Coral module.
I always do a clean install of codeproject. I uninstall, delete program files folder AND program data folders. Then I install new version
Thank you for your help!
|
|
|
|
|
The JSON error is something I'm waiting on Blue Iris to address.
cheers
Chris Maunder
|
|
|
|
|
Ken @ Blue Iris has been looking into the two issues raised with the latest release. We're aware of the hassle this is causing and between us we'll have a solution ASAP.
cheers
Chris Maunder
|
|
|
|
|
Thanks for all your work on this, Chris.
I'm sure it's not how you wanted to spend your weekend.
|
|
|
|
|
It's worth it.
cheers
Chris Maunder
|
|
|
|
|
For those keen enough to try our pre-release 2.2.x installer, you may notice there is an extra CodeProject.AI Server entry in your services list.
We inadvertently changed the service name which made our new installer unable to remove the old service.If you see multiple services in the Services manager in Windows, you can remove the extra services easily:
- Open a command prompt with admin rights (hit Start -> type "Command", right click on the Command Prompt and select "Run as Administrator")
- Enter the following commands and hit enter after each command
sc delete "CodeProject.AI-Server" sc delete "CodeProject AI Server"
(ignore any errors)
All done! Version 2.2.3 has the correct service name.
cheers
Chris Maunder
modified 17-Sep-23 20:46pm.
|
|
|
|
|
sc delete "CodeProject AI Server" will not delete the service name with spaces in it.
I went to the registry key and deleted the key...
|
|
|
|
|
If you put it between quotes and type EXACTLY as-is, then it works. That's how I got to remove the extra service.
|
|
|
|
|
According to API Reference - CodeProject.AI Server v2.1.11[^]
The response should be:
{
"success": (Boolean)
"predictions": (Object)
"inferenceMs": (int)
"processMs" : (int)
"analysisRoundTripMs": (int)
}
But instead with 2.2.2 I get:
laptop
chair
chair
chair
sink
chair
chair
chair
clock
chair
cat
chair
{'message': 'Found laptop, chair, chair...', 'count': 12, 'predictions': [{'confidence': 0.4091796875, 'label': 'laptop', 'x_min': 978, 'y_min': 130, 'x_max': 1058, 'y_max': 198}, {'confidence':
0.410888671875, 'label': 'chair', 'x_min': 977, 'y_min': 130, 'x_max': 1059, 'y_max': 199}, {'confidence': 0.41455078125, 'label': 'chair', 'x_min': 868, 'y_min': 125, 'x_max': 937, 'y_max': 17
4}, {'confidence': 0.505859375, 'label': 'chair', 'x_min': 0, 'y_min': 696, 'x_max': 465, 'y_max': 1068}, {'confidence': 0.55029296875, 'label': 'sink', 'x_min': 1659, 'y_min': 525, 'x_max': 179
4, 'y_max': 610}, {'confidence': 0.55908203125, 'label': 'chair', 'x_min': 1044, 'y_min': 151, 'x_max': 1159, 'y_max': 233}, {'confidence': 0.6064453125, 'label': 'chair', 'x_min': 771, 'y_min':
147, 'x_max': 885, 'y_max': 279}, {'confidence': 0.60986328125, 'label': 'chair', 'x_min': 609, 'y_min': 197, 'x_max': 813, 'y_max': 417}, {'confidence': 0.60986328125, 'label': 'clock', 'x_min
': 242, 'y_min': 37, 'x_max': 310, 'y_max': 175}, {'confidence': 0.7333984375, 'label': 'chair', 'x_min': 1046, 'y_min': 172, 'x_max': 1193, 'y_max': 345}, {'confidence': 0.798828125, 'label': '
cat', 'x_min': 636, 'y_min': 432, 'x_max': 1054, 'y_max': 746}, {'confidence': 0.814453125, 'label': 'chair', 'x_min': 874, 'y_min': 172, 'x_max': 1023, 'y_max': 356}], 'success': True, 'process
Ms': 113, 'inferenceMs': 104, 'code': 200, 'command': 'detect', 'moduleId': 'ObjectDetectionYolo', 'executionProvider': 'CUDA', 'analysisRoundTripMs': 156}
And is Probably why Blue Iris is throwing 200 errors.
|
|
|
|
|
How are you seeing that (ie what tool are you using?). When I do a raw dump using text() in the Explorer, I get
{
"message":"Found car",
"count":1,
"predictions": [{
"label":"car",
"confidence":0.5860529,
"y_min":1,
"x_min":622,
"y_max":89,
"x_max":770} ],
"success":true,
"code":200,
"command":"detect",
"moduleId":"ObjectDetectionNet",
"executionProvider":"CPU",
"canUseGPU":true,
"inferenceMs":219,
"processMs":219,
"analysisRoundTripMs":226
}
The docs need updating, for sure, but I'm not seeing the labels at the start of the package. Which module are you using?
cheers
Chris Maunder
|
|
|
|
|
I am just using the example from the API doc - just realized why there is a diff - sorry:
import requests
image_data = open("my_image.jpg","rb").read()
response = requests.post("http://localhost:32168/v1/vision/detection",
files={"image":image_data}).json()
for object in response["predictions"]:
print(object["label"])
print(response)
commenting out the "for object" part gives as expected (I think):
{'message': 'Found laptop, chair, chair...', 'count': 12, 'predictions': [{'confidence': 0.4091796875, 'label': 'laptop', 'x_min': 978, 'y_min': 130, 'x_max': 1058, 'y_max': 198}, {'confidence':
0.410888671875, 'label': 'chair', 'x_min': 977, 'y_min': 130, 'x_max': 1059, 'y_max': 199}, {'confidence': 0.41455078125, 'label': 'chair', 'x_min': 868, 'y_min': 125, 'x_max': 937, 'y_max': 17
4}, {'confidence': 0.505859375, 'label': 'chair', 'x_min': 0, 'y_min': 696, 'x_max': 465, 'y_max': 1068}, {'confidence': 0.55029296875, 'label': 'sink', 'x_min': 1659, 'y_min': 525, 'x_max': 179
4, 'y_max': 610}, {'confidence': 0.55908203125, 'label': 'chair', 'x_min': 1044, 'y_min': 151, 'x_max': 1159, 'y_max': 233}, {'confidence': 0.6064453125, 'label': 'chair', 'x_min': 771, 'y_min':
147, 'x_max': 885, 'y_max': 279}, {'confidence': 0.60986328125, 'label': 'chair', 'x_min': 609, 'y_min': 197, 'x_max': 813, 'y_max': 417}, {'confidence': 0.60986328125, 'label': 'clock', 'x_min
': 242, 'y_min': 37, 'x_max': 310, 'y_max': 175}, {'confidence': 0.7333984375, 'label': 'chair', 'x_min': 1046, 'y_min': 172, 'x_max': 1193, 'y_max': 345}, {'confidence': 0.798828125, 'label': '
cat', 'x_min': 636, 'y_min': 432, 'x_max': 1054, 'y_max': 746}, {'confidence': 0.814453125, 'label': 'chair', 'x_min': 874, 'y_min': 172, 'x_max': 1023, 'y_max': 356}], 'success': True, 'process
Ms': 123, 'inferenceMs': 113, 'code': 200, 'command': 'detect', 'moduleId': 'ObjectDetectionYolo', 'executionProvider': 'CUDA', 'analysisRoundTripMs': 183}
|
|
|
|
|