|
Thanks for getting back to me!
I've re-installed on a fresh Ubuntu 22.04 machine - and am still getting the 404 error.
FYI, I've noted below the errors I received when installing, although I'm not sure that these are in any way related to the 404 error.
Initial installation (dpkg -i):
Installing jq...
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 2090 (apt-get)
E: Unable to lock directory /var/lib/apt/lists/
Scanning processes...
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
Doesn't appear to have a negative impact that I can see right now, but FYI.
Upon the first start, when installing the various modules:
Infor FaceProcessing: Installing Python 3.8
Error FaceProcessing: E: Problem renaming the file /var/cache/apt/pkgcache.bin.inP5CH to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory)
Error FaceProcessing: W: You may want to run apt-get update to correct these problems
Error FaceProcessing: E: The package cache file is corrupted
Could I somehow get log entries on what is being tried to install the Coral module which results in the 404 error, as this error is only shown in the webif, but cannot be found in the logs?
|
|
|
|
|
You'll need to sudo to install the server.
cheers
Chris Maunder
|
|
|
|
|
Yes, I ran all of the install steps as root and also started the server upon the initial launch as root from the command line to see if there are any additional log entries there.
|
|
|
|
|
The errors you show, like not being able to acquire a lock file, suggest you're missing some permissions and this will stop some items being able to be installed.
In each module's folder there should be an install.log file, unless the install itself was unable to progress.
Have you tried su root and then installing under the root account? Not my favourite approach, but the hammer approach might show whether it's truly a permission issue or something deeper.
cheers
Chris Maunder
|
|
|
|
|
Yes, the install process (dpkg -i and then setup.sh) was run as root (sudo su).
install.logs I have:
FaceProcessing:
2024-05-26 15:46:37: Setting verbosity to quiet
2024-05-26 15:46:37: (No schemas means: we can't detect if you're in light or dark mode)
2024-05-26 15:46:37: Installing CodeProject.AI Analysis Module
2024-05-26 15:46:37: ======================================================================
2024-05-26 15:46:37: CodeProject.AI Installer
2024-05-26 15:46:37: ======================================================================
2024-05-26 15:46:37: 9.02 GiB of 16.01 GiB available on linux
2024-05-26 15:46:37: Installing xz-utils...
2024-05-26 15:46:38: General CodeProject.AI setup
2024-05-26 15:46:38: Setting permissions on runtimes folder...done
2024-05-26 15:46:38: Setting permissions on downloads folder...done
2024-05-26 15:46:38: Setting permissions on modules download folder...done
2024-05-26 15:46:38: Setting permissions on models download folder...done
2024-05-26 15:46:38: Setting permissions on persisted data folder...done
2024-05-26 15:46:38: GPU support
2024-05-26 15:46:38: CUDA (NVIDIA) Present: No
2024-05-26 15:46:38: ROCm (AMD) Present: No
2024-05-26 15:46:38: MPS (Apple) Present: No
2024-05-26 15:46:39: Reading module settings.......done
2024-05-26 15:46:39: Processing module FaceProcessing 1.10.2
2024-05-26 15:46:39: Installing Python 3.8
2024-05-26 15:46:40: E: Problem renaming the file /var/cache/apt/pkgcache.bin.inP5CH to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory)
2024-05-26 15:46:40: W: You may want to run apt-get update to correct these problems
2024-05-26 15:46:40: E: The package cache file is corrupted
2024-05-26 15:46:42: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2024-05-26 15:46:57: Installing Python Library 3.8... done
2024-05-26 15:47:00: Ensuring PIP in base python install... done
2024-05-26 15:47:01: Upgrading PIP in base python install... done
2024-05-26 15:47:01: Installing Virtual Environment tools for Linux...
2024-05-26 15:47:17: Searching for python3-pip python3-setuptools python3.8...installing... done
2024-05-26 15:47:19: Creating Virtual Environment (Shared)... done
2024-05-26 15:47:19: Checking for Python 3.8...(Found Python 3.8.19) All good
2024-05-26 15:47:22: Upgrading PIP in virtual environment... done
2024-05-26 15:47:23: Installing updated setuptools in venv... done
2024-05-26 16:06:31: Downloading Face models...Expanding... done.
2024-05-26 16:06:31: Moving contents of models-face-pt.zip to assets...done.
2024-05-26 16:06:31: Installing Python packages for Face Processing
2024-05-26 16:06:31: Installing GPU-enabled libraries: If available
2024-05-26 16:06:32: Searching for python3-pip...All good.
2024-05-26 16:06:33: Ensuring PIP compatibility... done
2024-05-26 16:06:33: Python packages will be specified by requirements.linux.txt
2024-05-26 16:06:37: - Installing Pandas, a data analysis / data manipulation tool...
Timed out attempting to install Module 'FaceProcessing'
ObjectDetectionYOLOv5-6.2
2024-05-26 16:26:39: Setting verbosity to quiet
2024-05-26 16:26:39: (No schemas means: we can't detect if you're in light or dark mode)
2024-05-26 16:26:39: Installing CodeProject.AI Analysis Module
2024-05-26 16:26:39: ======================================================================
2024-05-26 16:26:39: CodeProject.AI Installer
2024-05-26 16:26:39: ======================================================================
2024-05-26 16:26:39: 7.02 GiB of 16.01 GiB available on linux
2024-05-26 16:26:39: Installing xz-utils...
2024-05-26 16:26:39: General CodeProject.AI setup
2024-05-26 16:26:39: Setting permissions on runtimes folder...done
2024-05-26 16:26:39: Setting permissions on downloads folder...done
2024-05-26 16:26:39: Setting permissions on modules download folder...done
2024-05-26 16:26:39: Setting permissions on models download folder...done
2024-05-26 16:26:39: Setting permissions on persisted data folder...done
2024-05-26 16:26:39: GPU support
2024-05-26 16:26:39: CUDA (NVIDIA) Present: No
2024-05-26 16:26:40: ROCm (AMD) Present: No
2024-05-26 16:26:40: MPS (Apple) Present: No
2024-05-26 16:26:40: Reading module settings.......done
2024-05-26 16:26:40: Processing module ObjectDetectionYOLOv5-6.2 1.9.1
2024-05-26 16:26:40: Installing Python 3.8
2024-05-26 16:26:40: Python 3.8 is already installed
2024-05-26 16:26:46: Ensuring PIP in base python install... done
2024-05-26 16:26:48: Upgrading PIP in base python install... done
2024-05-26 16:26:48: Virtual Environment already present
2024-05-26 16:26:48: Checking for Python 3.8...(Found Python 3.8.19) All good
2024-05-26 16:26:49: Upgrading PIP in virtual environment... done
2024-05-26 16:26:50: Installing updated setuptools in venv... done
2024-05-26 16:40:32: Downloading Standard YOLO models...Expanding... done.
2024-05-26 16:40:32: Moving contents of models-yolo5-pt.zip to assets...done.
Timed out attempting to install Module 'ObjectDetectionYOLOv5-6.2'
ObjectDetectionYOLOv5Net
2024-05-26 16:06:38: Setting verbosity to quiet
2024-05-26 16:06:38: (No schemas means: we can't detect if you're in light or dark mode)
2024-05-26 16:06:38: Installing CodeProject.AI Analysis Module
2024-05-26 16:06:38: ======================================================================
2024-05-26 16:06:38: CodeProject.AI Installer
2024-05-26 16:06:38: ======================================================================
2024-05-26 16:06:38: 8.06 GiB of 16.01 GiB available on linux
2024-05-26 16:06:38: Installing xz-utils...
2024-05-26 16:06:39: General CodeProject.AI setup
2024-05-26 16:06:39: Setting permissions on runtimes folder...done
2024-05-26 16:06:39: Setting permissions on downloads folder...done
2024-05-26 16:06:39: Setting permissions on modules download folder...done
2024-05-26 16:06:39: Setting permissions on models download folder...done
2024-05-26 16:06:39: Setting permissions on persisted data folder...done
2024-05-26 16:06:39: GPU support
2024-05-26 16:06:39: CUDA (NVIDIA) Present: No
2024-05-26 16:06:39: ROCm (AMD) Present: No
2024-05-26 16:06:39: MPS (Apple) Present: No
2024-05-26 16:06:39: Reading module settings.......done
2024-05-26 16:06:39: Processing module ObjectDetectionYOLOv5Net 1.10.1
2024-05-26 16:20:22: Downloading ObjectDetectionYOLOv5Net-CPU-1.10.1.zip...Expanding... done.
2024-05-26 16:20:22: Moving contents of ObjectDetectionYOLOv5Net-CPU-1.10.1.zip to bin...done.
2024-05-26 16:26:38: Downloading YOLO ONNX models...
Timed out attempting to install Module 'ObjectDetectionYOLOv5Net'
Is there any way I could get more info on what is happening when these timeouts occur?
I am trying to run the installation on a fresh install of Ubuntu server 22.04. After installing Ubuntu and before installing CPAI, I've merely installed
libedgetpu1-max from the Google repo
dotnet-sdk-7.0 from the Ubuntu repo
Also, the only model I am currently trying to use is object detection for Coral, and the issue I'm having with that is the 404 error (only shown in the webif, not in any log) when trying to download it.
Really appreciate you looking into this.
|
|
|
|
|
Tiemouts are typically due to slowness downloading python packages or models, or in installing the modules themselves. If your connection is slow then this is an issue
A work around is to try installing the modules manually. See this pinned message on how to do that.
cheers
Chris Maunder
|
|
|
|
|
Thanks, so I followed the guidance to reinstall modules from the command line, and I tried to start with the preinstalled ones before going for the Coral module.
FaceProcessing and ObjectDetectionYOLOv5-6.2 are now installed. The issue with their install was that /tmp ran out of space.
ObjectDetectionYOLOv5Net first didn't install, but with no error message helpful to me:
root@coral:/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionY../../setup.sh --verbosity loud
Setting verbosity to loud
[...].Scanning modulesettings for downloadable models...No models specified
SELF TEST START ======================================================
fail: CodeProject.AI.Modules.ObjectDetection.YOLOv5.ObjectDetector[0]
Unable to load the model at /usr/bin/codeproject.ai-server-.6.5/modules/ObjectDetectionYOLOv5Net/bin/assets/yolov5m.onnx
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionYOLOv5Net
ObjectDetection (.NET) built for CPU
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
Unable to send message "bin module started." to API server
Self-test failed
SELF TEST END ======================================================
Module setup time 00:00:06
Setup complete
Total setup time 00:00:07
After rebooting and reinstalling, this did work, for some reason. Thereafter, I tried to install Object Detection (Coral). I did see an apt error when installing, but apparently the installation works:
Infor Preparing to install module 'ObjectDetectionCoral'
Infor Downloading module 'ObjectDetectionCoral'
Infor Installing module 'ObjectDetectionCoral'
Debug Installer script at '/usr/bin/codeproject.ai-server-2.6.5/setup.sh'
Infor ObjectDetectionCoral: Setting verbosity to quiet
Infor ObjectDetectionCoral: (No schemas means: we can't detect if you're in light or dark mode)
Infor ObjectDetectionCoral: Installing CodeProject.AI Analysis Module
Infor ObjectDetectionCoral: ======================================================================
Infor ObjectDetectionCoral: CodeProject.AI Installer
Infor ObjectDetectionCoral: ======================================================================
Infor ObjectDetectionCoral: 45.05 GiB of 64.08 GiB available on linux
Infor ObjectDetectionCoral: Installing xz-utils...
Infor ObjectDetectionCoral: General CodeProject.AI setup
Infor ObjectDetectionCoral: Setting permissions on runtimes folder...done
Infor ObjectDetectionCoral: Setting permissions on downloads folder...done
Infor ObjectDetectionCoral: Setting permissions on modules download folder...done
Infor ObjectDetectionCoral: Setting permissions on models download folder...done
Infor ObjectDetectionCoral: Setting permissions on persisted data folder...done
Infor ObjectDetectionCoral: GPU support
Infor ObjectDetectionCoral: CUDA (NVIDIA) Present: No
Infor ObjectDetectionCoral: ROCm (AMD) Present: No
Infor ObjectDetectionCoral: MPS (Apple) Present: No
Infor ObjectDetectionCoral: Reading module settings.......done
Infor ObjectDetectionCoral: Processing module ObjectDetectionCoral 2.2.2
Infor ObjectDetectionCoral: Installing Python 3.9
Error ObjectDetectionCoral: E: Problem renaming the file /var/cache/apt/srcpkgcache.bin.EjQXNr to /var/cache/apt/srcpkgcache.bin - rename (2: No such file or directory)
Error ObjectDetectionCoral: W: You may want to run apt-get update to correct these problems
Error ObjectDetectionCoral: E: The package cache file is corrupted
Warni ObjectDetectionCoral: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Infor ObjectDetectionCoral: Installing Python Library 3.9... done
Infor ObjectDetectionCoral: Ensuring PIP in base python install... done
Infor ObjectDetectionCoral: Upgrading PIP in base python install... done
Infor ObjectDetectionCoral: Installing Virtual Environment tools for Linux...
Infor ObjectDetectionCoral: Searching for python3-pip python3-setuptools python3.9...installing... done
Infor ObjectDetectionCoral: Creating Virtual Environment (Local)... done
Infor ObjectDetectionCoral: Checking for Python 3.9...(Found Python 3.9.19) All good
Infor ObjectDetectionCoral: Upgrading PIP in virtual environment... done
Infor ObjectDetectionCoral: Installing updated setuptools in venv... done
Infor ObjectDetectionCoral: Searching for gnupg...All good.
Infor ObjectDetectionCoral: Downloading edge TPU runtime...Expanding... done.
Infor ObjectDetectionCoral: Moving contents of edgetpu_runtime-20221024.zip to edgetpu_runtime...done.
Infor ObjectDetectionCoral: Using the reduced operating frequency for Coral USB devices.
Infor ObjectDetectionCoral: Installing device rule file [/etc/udev/rules.d/99-edgetpu-accelerator.rules]...
Infor ObjectDetectionCoral: Done.
Infor ObjectDetectionCoral: Installing Edge TPU runtime library [/usr/lib/x86_64-linux-gnu/libedgetpu.so.1.0]...
Infor ObjectDetectionCoral: File already exists. Replacing it...
Infor ObjectDetectionCoral: Done.
Infor ObjectDetectionCoral: Installing Python packages for Object Detection (Coral)
Infor ObjectDetectionCoral: Installing GPU-enabled libraries: If available
Infor ObjectDetectionCoral: Searching for python3-pip...All good.
Infor ObjectDetectionCoral: Ensuring PIP compatibility... done
Infor ObjectDetectionCoral: Python packages will be specified by requirements.txt
Infor ObjectDetectionCoral: - Installing Tensorflow Lite... (not checked) done
Infor ObjectDetectionCoral: - Installing PyCoral... (✅ checked) done
Infor ObjectDetectionCoral: - Installing NumPy, the fundamental package for array computing with Python...Already installed
Infor ObjectDetectionCoral: - Installing Pillow, a Python Image Library...Already installed
Infor ObjectDetectionCoral: Installing Python packages for the CodeProject.AI Server SDK
Infor ObjectDetectionCoral: Searching for python3-pip...All good.
Infor ObjectDetectionCoral: Ensuring PIP compatibility... done
Infor ObjectDetectionCoral: Python packages will be specified by requirements.txt
Infor ObjectDetectionCoral: - Installing Pillow, a Python Image Library...Already installed
Infor ObjectDetectionCoral: - Installing Charset normalizer... (✅ checked) done
Infor ObjectDetectionCoral: - Installing aiohttp, the Async IO HTTP library... (✅ checked) done
Infor ObjectDetectionCoral: - Installing aiofiles, the Async IO Files library... (✅ checked) done
Infor ObjectDetectionCoral: - Installing py-cpuinfo to allow us to query CPU info... (✅ checked) done
Infor ObjectDetectionCoral: - Installing Requests, the HTTP library... (✅ checked) done
Infor ObjectDetectionCoral: Scanning modulesettings for downloadable models...Processing model list
Infor ObjectDetectionCoral: Downloading MobileNet Large...Expanding... done.
Infor ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-large-edgetpu.zip to assets...done.
Infor ObjectDetectionCoral: Downloading MobileNet Medium...Expanding... done.
Infor ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-medium-edgetpu.zip to assets...done.
Infor ObjectDetectionCoral: Downloading MobileNet Small...Expanding... done.
Infor ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-small-edgetpu.zip to assets...done.
Infor ObjectDetectionCoral: Downloading MobileNet Tiny...Expanding... done.
Infor ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-tiny-edgetpu.zip to assets...done.
Infor ObjectDetectionCoral: Self test: Self-test passed
Infor ObjectDetectionCoral: Module setup time 00:01:37
Infor ObjectDetectionCoral: Setup complete
Infor ObjectDetectionCoral: Total setup time 00:01:38
Infor Module ObjectDetectionCoral installed successfully.
Let me thank you for your help, I will try to play around with the Coral module now. If there's anything you'd like me to test, please let me know, happy to help.
|
|
|
|
|
I searched around and couldn't find anything. I just upgraded to 2.6.2, running in Docker on an Ubuntu VM (Proxmox). Have been running 2.1.1 successfully for quite a while now. I'm using with BlueIris.
Detection seems to be working, but I'm getting these spurious errors about "catdog_m.pt" in the logs that have me a bit perplexed. I've searched around and can't find anything. Any ideas? I ask because I am hoping to get better detection of my dog, who is a fairly large breed and is often identified as a "person" on my backyard cameras. Thanks in advance!
17:10:29:Object Detection (YOLOv5 6.2): /app/preinstalled-modules/ObjectDetectionYOLOv5-6.2/custom-models/catdog_m.pt does not exist
17:10:29:Object Detection (YOLOv5 6.2): Unable to create YOLO detector for model catdog_m
17:10:29:Object Detection (YOLOv5 6.2): Detecting using catdog_m
17:10:29:Object Detection (YOLOv5 6.2): /app/preinstalled-modules/ObjectDetectionYOLOv5-6.2/custom-models/catdog_m.pt does not exist
17:10:29:Response rec'd from Object Detection (YOLOv5 6.2) command 'custom' (...7ae351)
17:10:29:Object Detection (YOLOv5 6.2): Unable to create YOLO detector for model catdog_m
|
|
|
|
|
Do you have the catdog_m.pt file in the /app/preinstalled-modules/ObjectDetectionYOLOv5-6.2/custom-models/ directory in the docker container?
cheers
Chris Maunder
|
|
|
|
|
Thanks Chris.
Oddly, catdog_m was showing up in the BlueIris list under the AI settings right after I upgraded the Docker container to 2.6.2, along with some others like 'best'.
However, for some odd reason, I checked it again the next day and the 'catdog_m' and other odd models disappeared from the list of custom models in BlueIris! The custom model list now just shows the typical 'actionnetv2' and the various 'ipcam' models. No changes on my part, it just self-resolved.
Either way, I ended up working around this by changing all my cameras in BI to use the 'ipcam-general' model, which ends up giving me faster detection time anyway. I've been meaning to do that anyway!
Thanks for such a great tool!
|
|
|
|
|
I'm using ipcam-general with Agent DVR but CPAI doesn't seem to load the custom model automatically after a restart.
Logs say:
SetFailed: Message from CPAI: No custom models found at CoreLogic.AI.ObjectRecognizer.Detect()
So Object recognition doesn't work until I click a "Get Models" button on Agent DVR (not sure what this actually triggers).
https://old.reddit.com/r/ispyconnect/comments/1cxj135/settings_bug_after_restart/[^]
modified 24-May-24 15:52pm.
|
|
|
|
|
Thanks very much for your message. Just to help narrow it down a bit, could you please share your System Info tab from your CodeProject.AI Server dashboard? Also, does this happen if you use other Object Detection modules?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
This is just a problem right after a reboot. If I choose the default model it works fine.
Server version: 2.6.2
System: Docker (be3d4b306206)
Operating System: Linux (Ubuntu 22.04)
CPUs: Intel(R) Core(TM) i5-3350P CPU @ 3.10GHz (Intel)
1 CPU x 4 cores. 4 logical processors (x64)
GPU (Primary): (NVIDIA), CUDA: (up to: ), Compute: , cuDNN: 8.9.6
System RAM: 8 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Docker
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.17
.NET SDK: Not found
Default Python: 3.10.12
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
01:18:13:System: Docker (be3d4b306206)
01:18:13:Operating System: Linux (Ubuntu 22.04)
01:18:13:CPUs: Intel(R) Core(TM) i5-3350P CPU @ 3.10GHz (Intel)
01:18:13: 1 CPU x 4 cores. 4 logical processors (x64)
01:18:13:GPU (Primary): NVIDIA GeForce GT 1030 (2 GiB) (NVIDIA)
01:18:13: Driver: 535.171.04, CUDA: 12.2 (up to: 12.2), Compute: 6.1, cuDNN: 8.9.6
01:18:13:System RAM: 8 GiB
01:18:13:Platform: Linux
01:18:13:BuildConfig: Release
01:18:13:Execution Env: Docker
01:18:13:Runtime Env: Production
01:18:13:Runtimes installed:
01:18:13: .NET runtime: 7.0.17
01:18:13: .NET SDK: Not found
01:18:13: Default Python: 3.10.12
01:18:13: Go: Not found
01:18:13: NodeJS: Not found
01:18:13: Rust: Not found
01:18:13:App DataDir: /etc/codeproject/ai
01:18:13:Video adapter info:
01:18:13:STARTING CODEPROJECT.AI SERVER
01:18:13:RUNTIMES_PATH = /app/runtimes
01:18:13:PREINSTALLED_MODULES_PATH = /app/preinstalled-modules
01:18:13:DEMO_MODULES_PATH = /app/demos/modules
01:18:13:MODULES_PATH = /app/modules
01:18:13:PYTHON_PATH = /bin/linux/%PYTHON_NAME%/venv/bin/python3
01:18:13:Data Dir = /etc/codeproject/ai
01:18:14:Server version: 2.6.2
01:18:14:Overriding address(es) 'http://+:32168, http://+:5000'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.
01:18:17:
01:18:17:Module 'Object Detection (YOLOv8)' 1.4.3 (ID: ObjectDetectionYOLOv8)
01:18:17:Valid: True
01:18:17:Module Path: <root>/modules/ObjectDetectionYOLOv8
01:18:17:AutoStart: True
01:18:17:Queue: objectdetection_queue
01:18:17:Runtime: python3.8
01:18:17:Runtime Loc: Local
01:18:17:FilePath: detect_adapter.py
01:18:17:Start pause: 1 sec
01:18:17:Parallelism: 0
01:18:17:LogVerbosity:
01:18:17:Platforms: all
01:18:17:GPU Libraries: installed if available
01:18:17:GPU Enabled: enabled
01:18:17:Accelerator:
01:18:17:Half Precis.: enable
01:18:17:Environment Variables
01:18:17:APPDIR = <root>/modules/ObjectDetectionYOLOv8
01:18:17:CUSTOM_MODELS_DIR = <root>/modules/ObjectDetectionYOLOv8/custom-models
01:18:17:MODELS_DIR = <root>/modules/ObjectDetectionYOLOv8/assets
01:18:17:MODEL_SIZE = medium
01:18:17:USE_CUDA = True
01:18:17:YOLO_VERBOSE = false
01:18:17:
01:18:17:Started Object Detection (YOLOv8) module
01:18:20:Server: This is the latest version
01:19:17:Response rec'd from Object Detection (YOLOv8) command 'custom' (...b24558)
01:19:19:Response rec'd from Object Detection (YOLOv8) command 'custom' (...9d1fa9)
-----I CLICKED "GET MODELS" NOW, DIDN'T CHANGE ANYTHING ELSE------------
01:20:38:Object Detection (YOLOv8): Detecting using ipcam-general
01:20:38:Object Detection (YOLOv8): Detecting using ipcam-general
01:20:45:Response rec'd from Object Detection (YOLOv8) command 'custom' (...ac7e57) ['No objects found'] took 7023ms
01:20:45:Object Detection (YOLOv8): Detecting using ipcam-general
01:20:45:Response rec'd from Object Detection (YOLOv8) command 'custom' (...a4f838) ['No objects found'] took 6594ms
01:20:45:Object Detection (YOLOv8): Detecting using ipcam-general
01:20:45:Response rec'd from Object Detection (YOLOv8) command 'custom' (...3b0206) ['No objects found'] took 144ms
01:20:45:Object Detection (YOLOv8): Detecting using ipcam-general
01:20:45:Response rec'd from Object Detection (YOLOv8) command 'custom' (...2e1ffa) ['No objects found'] took 88ms
|
|
|
|
|
AgentDVR has an update couple days ago (5.5.2) and one of the update information for 5.5.2 is "Add check for custom models to AI code to work around bug in CPAI". Perhaps that handles it?
|
|
|
|
|
|
Posted the wrong data earlier.
I added this error check in the YOLOv8's adapter.py and seems to be working:
elif data.command == "custom": # Perform custom object detection
# Check if there are any custom models available
if not self.custom_model_names:
# Load the custom models if they haven't been loaded yet
self._list_custom_models()
# After attempting to load, check again if there are any custom models available
if not self.custom_model_names:
# If still no custom models are found, return an error response
return { "success": False, "error": "No custom models found" }
Original code checks if there are custom models, and if there aren't, you get the error "No custom models found" right away. This handling is designed so that if it does not find any custom models, it will try to load the custom models and then re-check them again. This is a workaround for the fact that custom models are not being loaded initially, causing an error.
Hope you guys don't mind I modify your code. I can remove it if that is a problem for you guys.
|
|
|
|
|
So, I am trying to get Blue Iris to alert only on certain vehicles. I live in a cul-de-sac, so people make u-turns all the time. What I would like, is for only certain vehicles to confirm the alerts. I figure, I will have to train a model on which vehicles I would like to confirm with, but also, if I could just do certain colors, that would send me in the right direction for now. Is there a way to confirm an alert if say a red car drives by?
I realize you will probably ask, well, don't you want the strangers cars to alert you as well? Not so much. This is more for like automation confirmation and back-up than anything. But also, with this, I can set a rule to have certain alerts not trigger when my moms silver car arrives. Like, if her car arrives, and then the front door cameras detect motion, "Hey! Mom's Here!" Something like that. And no, I am not a 15 year old kid trying to make sure mom doesn't catch me doing something wrong, , I'm coming up on 40, and just like when my mom visits.
Are there tutorials out there with how to train a model, or anything about specific colors confirming alerts. Some things are just hard to search for, you know?
|
|
|
|
|
I am new to machine learning and stuff.
I wanted to do custom object detection in C# using webcam at runtime.
The thing is as per client request I did this through roboflow but client wanted fully offline due to no internet and data safety reasons since roboflow did not provide this feature, I looked into yolo. Although roboflow fulfilled object detection but offline feature meant I had to find some other way to do this. To try new method I downloaded small public dataset for balloons from roboflow in yolov5pytorch format. this dataset has blue and red balloons as classes.
Now I just needed to train this and implement it in C# Winform project.
I opened google collab yolov5 to train my dataset, I followed each step and after training I tested it on video in google collab and it was detecting red and blue balloons.
Now my question was how to implement this custom trained model in my C# code for object detection.
Since I have yolov5 custom trained model which tutorial to follow to implement this.
I tried to download yolov5 in onnx format and tried it with ml.net but did not understand,followed the tutorial where the guy was working with custom vision onnx model so followed each step which failed. I do not understand all depth of how it is working.
So now I am stuck with trained model in yolov5 in google colab. What steps should I follow or any tutorial link to integrate this in my c# project?
Also can I use this trained yolov5 model in python and intergrate python script in c#. Remember it has to detect at runtime and offline.
What I have tried:
Tried roboflow (no offline feature)
Trained custom dataset on google colab and downloaded onnx model of yolov5 and implement it in winform project with help of ml.net.
|
|
|
|
|
I don't have one of those new shiny arm64 Windows machines, but I do have an old M1 mac mini. Broadcom, the new owners of VMWare, make it insanely hard to find the VMWare Pro download, but given that VMWare now officially supports Windows on Arm, and provide a free version, it's worth the spelunking.
The server and dev setup are mostly smooth. There's a missing vs_redist that I had to manually install (will need to add that to the setup), but other than that all easy.
We have one fairly major issue with the .NET Object detection module failing to load due to what seems an old .NET bug that's marked as closed. I'll try and spend some time in the next few days hammering away at it.
And, obviously, if anyone has a spare shiny new arm64 Windows laptop they don't need...
cheers
Chris Maunder
|
|
|
|
|
I've installed CodeProject AI 2.6.4 on UBUNTU 22.04.4 LTS
The install went well
I cannot add the License Plate reader Module.
When i click on the install button, i get an error: Error in Install ALPR: 404
Any ideas?
|
|
|
|
|
I tried to install another module and this gave a 404 message, so it's not speicifc to the License Plate module. I tried the 'do not use download cache' option.
modified 21-May-24 1:43am.
|
|
|
|
|
Are you able to download the module manually?
(If you do manage to do that, you can unzip the ALPR zip into the /modules folder, then open a terminal into the ALPR folder and run bash ../../setup.sh to run the installer)
cheers
Chris Maunder
|
|
|
|
|
That worked perfectly!
|
|
|
|
|
I've been running the codeproject ai server with Blue Iris for many months without issue, but have recently reinstalled it after upgrading to a CUDA supported GPU. It's now completely broken and shuts down shortly after booting.
Here's the log error
2024-05-18 15:13:28: detect_adapter.py: Traceback (most recent call last):
2024-05-18 15:13:28: detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 12, in <module>
2024-05-18 15:13:28: detect_adapter.py: from request_data import RequestData
2024-05-18 15:13:28: detect_adapter.py: File "../../SDK/Python\request_data.py", line 8, in <module>
2024-05-18 15:13:28: detect_adapter.py: from PIL import Image
2024-05-18 15:13:28: detect_adapter.py: ModuleNotFoundError: No module named 'PIL'
I'm trying to use Object Detection (YOLOv5 6.2) since I have CUDA v11.8 on a GeForce GTX 1050 ti
How do I fix this error?
I should mention that the YOLOv5.NET isn't working either, and that both of these models aren't giving me the option of running them on the GPU.
|
|
|
|
|
Try uninstalling the modules then reinstall using Do not use download cache
|
|
|
|
|