|
Please below
Server version: 2.5.1
System: Docker
Operating System: Linux (Linux 6.6.20-production+truenas #1 SMP PREEMPT_DYNAMIC Tue Apr 23 01:22:22 UTC 2024)
CPUs: Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz (Intel)
2 CPUs x 6 cores. 12 logical processors (x64)
System RAM: 31 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Docker
Runtime Env: Production
.NET framework: .NET 7.0.15
Default Python: 3.10
Video adapter info:
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Thanks very much for that. This is an older version, and I would recommend upgrading and see if that helps you.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
It doesn't matter what I have turned on... facial recognition, license plates, object detection - the resulting video turns all of the background a crunchy grey and only the moving objects are visible
|
|
|
|
|
I'm sorry but I don't even know where to start. Can you please explain what your are doing, what systems you are using, maybe a step-by-step of what you are doing and then we can start dissescting this.
cheers
Chris Maunder
|
|
|
|
|
I have been a BlueIris user for over 10years now and I just discovered CodeProject.AI
I installed it with no trouble. Version 2.6.2
I have been running it for about a week, day and night, on three PTZ Sunba cams.
I just have to say this because I don't get an opportunity to say this enough.
WOW
CodeProject.AI is way cool and it has far exceeded my expectations.
Currently I am adding to the field called To Cancel because I have nothing in the field To Confirm. So this is cancelling out at night when a big bug flys by the cam and AI thinks it is a frisbee. After every night this is getting better and better, for me anyway.
Many thanks to all of the people that have written code to make this as intelligent as it is. This really is impressive.
You just have to love open source....
Thank You
Pete
|
|
|
|
|
Thanks for dropping us the note - it's very much appreciated!
cheers
Chris Maunder
|
|
|
|
|
I've installed the latest version of AI server and I've been having issues with it. The service stopped working and would not load manually, so I removed AI server and deleted the programdata and program files folders. I reinstalled the server and now i'm getting another error with aiohttp. I installed aiohttp via python CLI, but that didn't seem to work.
15:00:11:System: Windows
15:00:11:Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
15:00:11:CPUs: AMD Ryzen 7 7800X3D 8-Core Processor (AMD)
15:00:11: 1 CPU x 8 cores. 16 logical processors (x64)
15:00:11:GPU (Primary): NVIDIA GeForce RTX 4090 (24 GiB) (NVIDIA)
15:00:11: Driver: 551.86, CUDA: 12.4 (up to: 12.4), Compute: 8.9, cuDNN: 8.5
15:00:11:System RAM: 63 GiB
15:00:11:Platform: Windows
15:00:11:BuildConfig: Release
15:00:11:Execution Env: Native
15:00:11:Runtime Env: Production
15:00:11:Runtimes installed:
15:00:11: .NET runtime: 8.0.2
15:00:11: .NET SDK: Not found
15:00:11: Default Python: 3.12.2
15:00:11: Go: Not found
15:00:11: NodeJS: Not found
15:00:11: Rust: Not found
15:00:11:App DataDir: C:\ProgramData\CodeProject\AI
15:00:11:Video adapter info:
15:00:11: AMD Radeon(TM) Graphics:
15:00:11: Driver Version 31.0.24002.92
15:00:11: Video Processor AMD Radeon Graphics Processor (0x164E)
15:00:11: NVIDIA GeForce RTX 4090:
15:00:11: Driver Version 31.0.15.5186
15:00:11: Video Processor NVIDIA GeForce RTX 4090
15:00:11:STARTING CODEPROJECT.AI SERVER
15:00:11:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
15:00:11:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
15:00:11:DEMO_MODULES_PATH = C:\Program Files\CodeProject\AI\demos\modules
15:00:11:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
15:00:11:PYTHON_PATH = \bin\windows\%PYTHON_NAME%\venv\Scripts\python
15:00:11:Data Dir = C:\ProgramData\CodeProject\AI
15:00:11:Server version: 2.6.2
15:00:14:
15:00:14:Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
15:00:14:Valid: True
15:00:14:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
15:00:14:AutoStart: True
15:00:14:Queue: objectdetection_queue
15:00:14:Runtime: python3.7
15:00:14:Runtime Loc: Shared
15:00:14:FilePath: detect_adapter.py
15:00:14:Start pause: 1 sec
15:00:14:Parallelism: 0
15:00:14:LogVerbosity:
15:00:14:Platforms: all,!raspberrypi,!jetson
15:00:14:GPU Libraries: installed if available
15:00:14:GPU Enabled: enabled
15:00:14:Accelerator:
15:00:15:Half Precis.: enable
15:00:15:Environment Variables
15:00:15:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
15:00:15:CPAI_MODULE_ENABLE_GPU = True
15:00:15:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
15:00:15:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
15:00:15:MODEL_SIZE = Medium
15:00:15:USE_CUDA = True
15:00:15:YOLOv5_AUTOINSTALL = false
15:00:15:YOLOv5_VERBOSE = false
15:00:15:
15:00:15:Started Object Detection (YOLOv5 6.2) module
15:00:15:detect_adapter.py: Traceback (most recent call last):
15:00:15:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 13, in
15:00:15:detect_adapter.py: from module_runner import ModuleRunner
15:00:15:detect_adapter.py: File "../../SDK/Python\module_runner.py", line 30, in
15:00:15:detect_adapter.py: import aiohttp
15:00:15:detect_adapter.py: ModuleNotFoundError: No module named 'aiohttp'
15:00:15:Module ObjectDetectionYOLOv5-6.2 has shutdown
15:00:15:detect_adapter.py: has exited
15:00:16:Server: This is the latest version
15:02:55:
15:02:55:Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
15:02:55:Valid: True
15:02:55:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
15:02:55:AutoStart: True
15:02:55:Queue: objectdetection_queue
15:02:55:Runtime: python3.7
15:02:55:Runtime Loc: Shared
15:02:55:FilePath: detect_adapter.py
15:02:55:Start pause: 1 sec
15:02:55:Parallelism: 0
15:02:55:LogVerbosity:
15:02:55:Platforms: all,!raspberrypi,!jetson
15:02:55:GPU Libraries: installed if available
15:02:55:GPU Enabled: enabled
15:02:55:Accelerator:
15:02:55:Half Precis.: enable
15:02:55:Environment Variables
15:02:55:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
15:02:55:CPAI_MODULE_ENABLE_GPU = True
15:02:55:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
15:02:55:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
15:02:55:MODEL_SIZE = Medium
15:02:55:USE_CUDA = True
15:02:55:YOLOv5_AUTOINSTALL = false
15:02:55:YOLOv5_VERBOSE = false
15:02:55:
15:02:55:Started Object Detection (YOLOv5 6.2) module
15:02:55:detect_adapter.py: Traceback (most recent call last):
15:02:55:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 13, in
15:02:55:detect_adapter.py: from module_runner import ModuleRunner
15:02:55:detect_adapter.py: File "../../SDK/Python\module_runner.py", line 30, in
15:02:55:detect_adapter.py: import aiohttp
15:02:55:detect_adapter.py: ModuleNotFoundError: No module named 'aiohttp'
15:02:55:Module ObjectDetectionYOLOv5-6.2 has shutdown
15:02:55:detect_adapter.py: has exited
|
|
|
|
|
I'm having the same issue. just did a install and i'm getting the same error. here is log file:
20:51:49:Update ObjectDetectionYOLOv5-6.2. Setting Restart=now
20:51:49:
20:51:49:Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
20:51:49:Valid: True
20:51:49:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
20:51:49:AutoStart: True
20:51:49:Queue: objectdetection_queue
20:51:49:Runtime: python3.7
20:51:49:Runtime Loc: Shared
20:51:49:FilePath: detect_adapter.py
20:51:49:Start pause: 1 sec
20:51:49:Parallelism: 0
20:51:49:LogVerbosity:
20:51:49:Platforms: all,!raspberrypi,!jetson
20:51:49:GPU Libraries: installed if available
20:51:49:GPU Enabled: enabled
20:51:49:Accelerator:
20:51:49:Half Precis.: enable
20:51:49:Environment Variables
20:51:49:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
20:51:49:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
20:51:49:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
20:51:49:MODEL_SIZE = Medium
20:51:49:USE_CUDA = True
20:51:49:YOLOv5_AUTOINSTALL = false
20:51:49:YOLOv5_VERBOSE = false
20:51:49:
20:51:49:Started Object Detection (YOLOv5 6.2) module
20:51:50:detect_adapter.py: Traceback (most recent call last):
20:51:50:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 13, in
20:51:50:detect_adapter.py: from module_runner import ModuleRunner
20:51:50:detect_adapter.py: File "../../SDK/Python\module_runner.py", line 30, in
20:51:50:detect_adapter.py: import aiohttp
20:51:50:detect_adapter.py: ModuleNotFoundError: No module named 'aiohttp'
20:51:50:Module ObjectDetectionYOLOv5-6.2 has shutdown
20:51:50:detect_adapter.py: has exited
Logging level
|
|
|
|
|
saw this else where:
startup notepad as admin,
edit file C:\Program Files\CodeProject\AI\setup.bat
change line in file from false the true.
set oneStepPIP=true
open command prompt line as admin
i need it to work on object detection, so goto folder
C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2
from there run this command:
C:\Program Files\CodeProject\AI\setup.bat
now whats happening is it looks like the entire Object detection module is downloading again.
goto al server web page and attempt to restart object detection. on my side it appears to be working.
but there was an error message. see below, version issue.
i'm rushed right now i'll be gone for a few hours, let me know if it works on your side. sorry for poor instructions.
CodeProject.AI Installer
======================================================================
356.0Gb of 487Gb available on Windows
General CodeProject.AI setup
Creating Directories...done
GPU support
CUDA Present...No
ROCm Present...No
Reading ObjectDetectionYOLOv5-6.2 settings.......done
Installing module Object Detection (YOLOv5 6.2) 1.9.1
Installing Python 3.7
Python 3.7 is already installed
Creating Virtual Environment (Shared)...Virtual Environment already present
Confirming we have Python 3.7 in our virtual environment...present
Downloading Standard YOLO models...already exists...Expanding...done.
Copying contents of models-yolo5-pt.zip to assets...done
Downloading Custom YOLO models...already exists...Expanding...done.
Copying contents of custom-models-yolo5-pt.zip to custom-models...done
Installing Python packages for Object Detection (YOLOv5 6.2)
Installing GPU-enabled libraries: If available
Ensuring Python package manager (pip) is installed...done
Ensuring Python package manager (pip) is up to date...done
Python packages specified by requirements.txt
Installing Packages into Virtual Environment...Success
Installing Python packages for the CodeProject.AI Server SDK
Ensuring Python package manager (pip) is installed...done
Ensuring Python package manager (pip) is up to date...done
Python packages specified by requirements.txt
Installing Packages into Virtual Environment...ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
botocore 1.33.13 requires urllib3<1.27,>=1.25.4; python_version < "3.10", but you have urllib3 2.0.7 which is incompatible.
Success
Scanning modulesettings for downloadable models...No models specified
Self test: Fusing layers...
YOLOv5.1m summary: 391 layers, 21805053 parameters, 0 gradients
Adding AutoShape...
Self-test passed
Module setup time 00:14:04.38
Setup complete
Total setup time 00:14:05.03
|
|
|
|
|
Quote: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
botocore 1.33.13 requires urllib3<1.27,>=1.25.4; python_version < "3.10", but you have urllib3 2.0.7 which is incompatible.
Unfortunately this means that the PIP install didn't actually complete. If you ran this after running the install using oneStepPIP as false, the you would have had the majority of the modules install correctly (and maybe enough that things worked). Turning on one-step means you lose the granular reporting of which module actually failed. On the flip side you lose the ability of PIP to juggle all packages at once to achieve the best compatibility.
cheers
Chris Maunder
|
|
|
|
|
Thanks very much for your report. Could you please try re-installing the module? Typically this is an indication that installing the module failed.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
I have the same error "No module named 'aiohttp'"
How do you install the module aiohttp?
|
|
|
|
|
take a look at my instuctions above, its for windows. in a nutshell what i did was go to the batch file called C:\Program Files\CodeProject\AI\setup.bat. within that batch file i changed a line of code from false to true. after saving the file go to the folder that contains the module you need to work, in my case it was object detection yolov5-6.2. so from the command prompt as admin i went to this folder: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2 then from that folder call the setup.bat file. so do something like this command from the command prompt line:
C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2 C:\Program Files\CodeProject\AI\setup.bat
of course all on one line. try it and see what happens.
|
|
|
|
|
Try uninstalling / reinstalling the module
cheers
Chris Maunder
|
|
|
|
|
My dream is to create a custom AI model to identify make/model/color of vehicles.
I have zero AI experience.
I installed CodeProject and tested the built in modules, works well.
Thought I would follow 'How to Train a Custom YOLOv5 Model to Detect Objects' which is a tutorial on this site.
No luck, I can't even get to the training part. It crashes complaining a sample has no detections, but having no experience with this I can't figure out what the issue is.
If this tutorial outdated? Should it still work? Can someone suggest a tutorial that actually functions?
|
|
|
|
|
This is a demo I've been wanting to write for months and months. The short version is you should use a car make/model AI model as a custom mode (eg This YOLO model) to get the make/model. I would then also run an image segmentation (available in our current YOLOv8 module) to get the polynomial shape of the car, then run a quick image analysis to get a histogram of the colours in the cutout of the car. Choose the most prominent colour and you're done.
cheers
Chris Maunder
|
|
|
|
|
LOL, it sounds so easy.
So far I have managed to create a small test model, using 333 images. I created the model with YOLO5 on my computer.
I've been trying to figure out how to get it into codeproject, but no joy so far.
I found a custom models path at C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\custom-models
I dropped the vehicle-makes.pt file there and when I access the explorer built into code project, there is a section called Object Detection (YOLOv5 6.2) and you can choose any of the models in that custom-models directly.
However, when I select my model and feed it an image it generates an error:
04:00:10:Object Detection (YOLOv5 6.2): [ModuleNotFoundError] : Unable to load model at C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\custom-models\vehicle-makes.pt (No module named 'dill')
04:00:10:Object Detection (YOLOv5 6.2): Unable to create YOLO detector for model vehicle-makes
No idea what no module named 'dill' means...
|
|
|
|
|
dill is used store and load Python objects (including an entire AI interpreter).
How did you create your model?
cheers
Chris Maunder
|
|
|
|
|
Can someone help troubleshoot this error? The short of it is this happens when I try to use CodeProject with my BI system's GPU (Intel iGPU) this error comes up in the logs:
ObjectDetectionYOLOv5Net.exe: 2024-05-02 18:31:29.4590658 [E:onnxruntime:, inference_session.cc:1799 onnxruntime::InferenceSession::Initialize::::operator ()] Exception during initialization: D:\a\_work\1\s\onnxruntime\core\providers\dml\DmlExecutionProvider\src\DmlGraphFusionHelper.cpp(432)\onnxruntime.DLL!00007FFE2712F11B: (caller: 00007FFE270B44E6) Exception(3) tid(2154) 80004005 Unspecified error
If I downgrade back to older versions (I believe it was older than CodeProject AI 2.3.4) I am able to use the GPU. Blue Iris support basically told me to come here for assistance. Any help with this is appreciated!
|
|
|
|
|
We absolutely need your system info (see pinned message) so we can start to suggest solutions.
cheers
Chris Maunder
|
|
|
|
|
Hi Chris,
Here is what you asked for. One thing I didn't think about before - according to this CP thinks my primary GPU Microsoft RDP. I use this to manage my BI machine but I'm not sure if this could be an issue:
Server version: 2.6.2
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz (Intel)
1 CPU x 2 cores. 4 logical processors (x64)
GPU (Primary): Microsoft Remote Display Adapter (Microsoft)
Driver: 10.0.19041.4355
System RAM: 8 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.18
.NET SDK: 7.0.408
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
Microsoft Remote Display Adapter:
Driver Version 10.0.19041.4355
Video Processor
Intel(R) HD Graphics 4400:
Driver Version 20.19.15.5063
Video Processor Intel(R) HD Graphics Family
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 52 KiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Hi,
I recently set up code project to work with Blue Iris. Blue Iris is running on Windows 11 in a Proxmox VM.
I have successfully passed through a coral USB to the VM and CPAI. Everything seems to work fine for about 10 minutes then CPAI seems to revert back to CPU. The coral is still present in the device manager. I've turned off any USB power management in Windows to no avail.
Any Suggestions would be greatly appreciated.
|
|
|
|
|
Is the Coral device getting hot? Does the system have enough memory? Are you using USB driver errors?
Coral on Windows is not the most stable of products I'm afraid. I always recommend other modules if running on Windows
cheers
Chris Maunder
|
|
|
|
|
Forgive me if I missed this being posted somewhere already.
I want to setup a central AI server in our data center. I want our developers to be able to direct their projects to that central server for testing. When I try testing to the machines ip address with port 32168 yields no connection.
http://machine ip:32168/
Seems simple but I'm missing something.
A similar question was posted with no answer. "how to connect a Blue Iris machine to another machine running CodeProject AI?"
This is not a Blue Iris question, just a reference above.
modified 2-May-24 15:35pm.
|
|
|
|
|
Well, assuming successful installation, that should work.
In my case, 192.168.50.17:32168 connects to a Linux (Debian) system running AI server in a Docker container.
If you are doing an install to Windows, did you use the script?
Did you get any errors during install? Any errors in system logs?
>64
It’s weird being the same age as old people. Live every day like it is your last; one day, it will be.
|
|
|
|