|
well ive gotten past the 404 errors, Now im getting a error with fiftyone
15:42:51:Training for YoloV5 6.2: [FiftyOneConfigError] : Traceback (most recent call last):
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/odm/database.py", line 195, in establish_db_conn
_db_service = fos.DatabaseService()
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 80, in __init__
self.start()
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 209, in start
super().start()
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 118, in start
+ self.command,
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 238, in command
DatabaseService.find_mongod(),
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 286, in find_mongod
raise ServiceExecutableNotFound("Could not find `mongod`")
fiftyone.core.service.ServiceExecutableNotFound: Could not find `mongod`
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/training_objectdetection_YOLOv5_adapter.py", line 177, in long_process
result = self.method_to_execute(data)
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/training_objectdetection_YOLOv5_adapter.py", line 223, in create_dataset
result = self.dataset_creator.create_dataset(dataset_name, classes, num_images)
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/fiftyone_dataset_creator.py", line 118, in create_dataset
if fo.dataset_exists(dataset_name):
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/dataset.py", line 85, in dataset_exists
conn = foo.get_db_conn()
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/odm/database.py", line 395, in get_db_conn
_connect()
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/odm/database.py", line 234, in _connect
establish_db_conn(fo.config)
File "/usr/bin/codeproject.ai-server-2.6.5/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/odm/database.py", line 201, in establish_db_conn
raise FiftyOneConfigError(
fiftyone.core.config.FiftyOneConfigError: MongoDB could not be installed on your system. Please define a `database_uri` in your `fiftyone.core.config.FiftyOneConfig` to connect to yourown MongoDB instance or cluster
just trying to figure out the database part and how to get fiftyone to connect to it, i was able to install Mongod no problem
|
|
|
|
|
Upgraded to 2.6.2, Blue Iris intermittent AI Error 500 are back.
Can anyone explain the actual root cause of these errors? I'm getting a bit tired of the game between BI and CodeProject where updating one or the other has a 75% chance of re-introducing these errors.
Thanks
|
|
|
|
|
I'm sure you've reported stuff before but it's extremely difficult for us to remember everyone's details on everything.
Can you please let us know
- what version of the server you're using
- on which module you're seeing the error
- The actual error (screen shot would be good)
- Have you tested the image that's throwing the 500 using the CodeProject.AI Explorer. It uses the same API as Blue Iris
cheers
Chris Maunder
|
|
|
|
|
For sure. For reference I was on 2.5.4 w/ Blue Iris 5.8.8.12 and had no AI errors.
Updated to CodeProject 2.6.2. Intermittent errors started every 15-30min on random cameras.
Decided to upgrade BI to latest 5.9.0.5. Still exist.
I'm using Coral TPU, tried various models and sizes. Multi-TPU disabled.
I don't know what images it's failing on unfortunately; BI doesn't give me the optics into that.
09-05-24-1817 hosted at ImgBB — ImgBB[^]
|
|
|
|
|
Does it work better if multi-TPU is enabled?
|
|
|
|
|
It does not. I've now shifted to 2.6.4 on Ubuntu at the recommendation that it's stable, looked good for a day or so but 500 errors are back sporadically.
|
|
|
|
|
Hm. I wonder if it’s affect d by something like the ‘parallelism’ parameter? I think right now it’s set to 16 for Coral.
|
|
|
|
|
I don't know if it's relevant, but if I sit and watch the web interface I can often see the Coral module on the status tab switching between CPU/TPU and the latency will increase for the CPU processed images then it flips back to TPU.
I see nothing in the logs about why it is flapping between them.
|
|
|
|
|
Huh. Weird. Does anything work better or worse as it flips between them? What is the timing like, does it spend a lot of time in one or the other? Does it work any better if you added a time.sleep(1) before the allocator to give the driver a second to catch up?
|
|
|
|
|
Coral on Windows is not very reliable I'm afraid. It works, but intermittent errors are not uncommon. I use the .NET Object Detection module on Windows since it uses DirectML and so will make the best use of available hardware.
cheers
Chris Maunder
|
|
|
|
|
What do you recommend for Coral? Docker? Linux? I can pivot if it's known to be more reliable.
|
|
|
|
|
I’ve been running Ubuntu 20.04 and it’s been rock solid.
|
|
|
|
|
I'd second Seth's suggestion on Ubuntu if you want to use Coral.
cheers
Chris Maunder
|
|
|
|
|
Spun up an Ubuntu 22.04 VM, passed the PCI-E Coral through to the VM (running on Proxmox), installed CPAI 2.6.4 and so far so good, no 500 errors.
Running in multi-tpu mode even though I only have a single card.
EfficientDetLite small model.
Averaging 10-15ms.
Thanks for the suggestion. Decoupling CPAI and BI has been on my list to do for a while just wasn't sure the Linux version of CPAI was more stable and worth the effort.
|
|
|
|
|
10:25:08:Unable to download module 'ObjectDetectionCoral' from https:
Is the url correct? It is under KB article. I tested downloading license plate module without issue.
|
|
|
|
|
Thanks very much for your report. Could you please share your System Info tab from your CodeProject.AI Server dashboard?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
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
|
|
|
|