|
Installation is via a docker compose file (posted below). I have created NFS volumes for data/config so that I can move the docker container to any server.
volumes:
codeprojectai-config:
external: true
codeprojectai-app:
external: true
services:
codeprojectai:
container_name: codeprojectai
restart: unless-stopped
privileged: true
image: codeproject/ai-server:latest
ports:
- '32168:32168'
- '5000:5000'
# environment:
volumes:
- codeprojectai-config:/etc/codeproject/ai
- codeprojectai-app:/app/modules
devices:
- /dev/bus/usb:/dev/bus/usb
|
|
|
|
|
Have you shut down and recreated the docker container? There is a known issue that this will result in a missing libedgetpu library and you'll need to reinstall the coral object detection module.
What host operating system are you running Docker in? Windows or Linux?
cheers
Chris Maunder
|
|
|
|
|
I run this on a Linux system (Ubuntu)
I have stopped, deleted container, deleted image and recreated with latest image and it fails
Note the Config/App directories are persistent.
|
|
|
|
|
Fresh install of 2.6.5. Getting this error when starting a Large YoloV8 Model with Coral. It seemingly works fine but switches over from TPU to CPU silently off and on (even though the error states it's using CPU)
00:43:45:Module 'Object Detection (Coral)' 2.2.2 (ID: ObjectDetectionCoral)
00:43:45:Valid: True
00:43:45:Module Path: <root>\modules\ObjectDetectionCoral
00:43:45:Module Location: Internal
00:43:45:AutoStart: True
00:43:45:Queue: objectdetection_queue
00:43:45:Runtime: python3.9
00:43:45:Runtime Location: Local
00:43:45:FilePath: objectdetection_coral_adapter.py
00:43:45:Start pause: 1 sec
00:43:45:Parallelism: 16
00:43:45:LogVerbosity:
00:43:45:Platforms: all
00:43:45:GPU Libraries: installed if available
00:43:45:GPU: use if supported
00:43:45:Accelerator:
00:43:45:Half Precision: enable
00:43:45:Environment Variables
00:43:45:CPAI_CORAL_MODEL_NAME = YOLOv8
00:43:45:CPAI_CORAL_MULTI_TPU = True
00:43:45:MODELS_DIR = <root>\modules\ObjectDetectionCoral\assets
00:43:45:MODEL_SIZE = large
00:43:45:
00:43:45:Started Object Detection (Coral) module
00:43:47:objectdetection_coral_adapter.py: TPU detected
00:43:47:objectdetection_coral_adapter.py: Attempting multi-TPU initialisation
00:43:47:objectdetection_coral_adapter.py: Supporting multiple Edge TPUs
00:46:30:objectdetection_coral_adapter.py: ERROR:root:TFLite file C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\assets\tf2_ssd_mobilenet_v1_fpn_640x640_coco17_ptq_segment_0_of_2_edgetpu.tflite doesn't exist
00:46:30:objectdetection_coral_adapter.py: WARNING:root:Model file not found: [Errno 2] No such file or directory: 'C:\\Program Files\\CodeProject\\AI\\modules\\ObjectDetectionCoral\\assets\\tf2_ssd_mobilenet_v1_fpn_640x640_coco17_ptq_segment_0_of_2_edgetpu.tflite'
00:46:30:objectdetection_coral_adapter.py: WARNING:root:No Coral TPUs found or able to be initialized. Using CPU.
00:46:30:objectdetection_coral_adapter.py: WARNING:root:Unable to load delegate for TPU cpu: Failed to load delegate from edgetpu.dll
00:46:30:objectdetection_coral_adapter.py: WARNING:root:Unable to create interpreter for CPU using edgeTPU library: cpu
00:46:30:objectdetection_coral_adapter.py: ERROR:root:TFLite file C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\assets\tf2_ssd_mobilenet_v1_fpn_640x640_coco17_ptq_segment_0_of_2_edgetpu.tflite doesn't exist
00:46:30:objectdetection_coral_adapter.py: WARNING:root:Model file not found: [Errno 2] No such file or directory: 'C:\\Program Files\\CodeProject\\AI\\modules\\ObjectDetectionCoral\\assets\\tf2_ssd_mobilenet_v1_fpn_640x640_coco17_ptq_segment_0_of_2_edgetpu.tflite'
00:46:30:objectdetection_coral_adapter.py: WARNING:root:No Coral TPUs found or able to be initialized. Using CPU.
00:46:30:objectdetection_coral_adapter.py: WARNING:root:Unable to load delegate for TPU cpu: Failed to load delegate from edgetpu.dll
00:4
Server version: 2.6.5
System: Windows
Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
CPUs: AMD Ryzen 9 3950X 16-Core Processor (AMD)
1 CPU x 16 cores. 32 logical processors (x64)
GPU (Primary): NVIDIA GeForce RTX 3060 (12 GiB) (NVIDIA)
Driver: 555.85, CUDA: 12.2.140 (up to: 12.5), Compute: 8.6, cuDNN: 8.5
System RAM: 64 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 8.0.3
.NET SDK: 8.0.203
Default Python: Not found
Go: Not found
NodeJS: 21.7.2
Rust: Not found
Video adapter info:
NVIDIA GeForce RTX 3060:
Driver Version 32.0.15.5585
Video Processor NVIDIA GeForce RTX 3060
System GPU info:
GPU 3D Usage 31%
GPU RAM Usage 6.3 GiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Looks like the model file isn’t getting parsed correctly for your 2-TPU system. It looks like you’ve requested the YOLOv8 model but it’s looking for the MobileNet files for some reason. I don’t have much insight into how that process works I’m afraid.
As a temporary workaround, try the medium model size?
|
|
|
|
|
I've had a computer running Windows 10 w/version 2.5.4 great. I decided to upgrade to Windows 11. That may have been a complete mistake but please try to help me anyway. Of course I also updated to version 2.6.2, so I have changed two variables at once, so yes, I may be an idiot, but please try to help me anyway.
The good news is that CodeProject still works, BUT the status window only shows "CPU (DirectML)" rather than "GPU (DirectML)" using the YOLOv5Net version. Further below, I am pasting the "System Info" information from both before and after at the bottom of this post. I do note that the format has changed in 2.6.2 and show, "Runtimes installed" which shows that the .Net SDK is not installed, but I don't believe I had that installed before so that doesn't seem to be the problem, but let me know if I'm wrong about that.
I have looked at the logs, and don't see any indication of a problem. In fact, I see "GPU enabled: enabled" in the logs. I will include a screenshot of that here, with the logging turned up to "trace" prior to restarting.
I am fully aware that the status window did not always update to show GPU usage until after some actual use, even with 2.5.4, so I thought that perhaps might be the problem, but even after running some test images, the status window still shows "CPU":
Perhaps the only issue is a problem with the status window in 2.6.2? Any ideas? Does "GPU enabled: enabled" indicate the GPU is being used, or is the status window correct that CPU is still being used? For what it's worth, this is a screenshot of it working with Windows 10 and 2.5.4. I really did have it all working great, which makes this even more frustrating if this was self-inflicted damage, and I cannot tell whether it's a difference in 2.6.2 or with Windows 11.
Before (Windows 10, 2.5.4)
Server version: 2.5.4
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: AMD Ryzen 9 5900HX with Radeon Graphics (AMD)
1 CPU x 8 cores. 16 logical processors (x64)
GPU (Primary): Microsoft Remote Display Adapter (Microsoft)
Driver: 10.0.19041.4355
System RAM: 31 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.5
Default Python:
Video adapter info:
Microsoft Remote Display Adapter:
Driver Version 10.0.19041.4355
Video Processor
AMD Radeon(TM) Graphics:
Driver Version 31.0.12027.9001
Video Processor AMD Radeon Graphics Processor (0x1638)
System GPU info:
GPU 3D Usage 7%
GPU RAM Usage 514.3 MiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
After (Windows 11, 2.6.2)
Server version: 2.6.2
System: Windows
Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
CPUs: AMD Ryzen 9 5900HX with Radeon Graphics (AMD)
1 CPU x 8 cores. 16 logical processors (x64)
GPU (Primary): AMD Radeon(TM) Graphics (512 MiB) (Advanced Micro Devices, Inc.)
Driver: 31.0.21912.14
System RAM: 15 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.19
.NET SDK: Not found
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
AMD Radeon(TM) Graphics:
Driver Version 31.0.21912.14
Video Processor AMD Radeon Graphics Processor (0x1638)
System GPU info:
GPU 3D Usage 2%
GPU RAM Usage 514.8 MiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Thanks very much for the report. There is a bug with 2.6.2 where the dashboard displays CPU, but it is actually using GPU (which the DirectML indicates). So you should actually be using GPU. Unless you have some monitoring tools that indicate that's not happening, you might actually be OK here.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
My pleasure, and thanks for looking. I really thought the only thing I was reporting was that I was an idiot for changing two major things at once. Looks like I would have saved us both (especially me!) a lot of effort if I upgraded to 2.6.2 separate from the Windows change.
|
|
|
|
|
I run CodeProject.AI server on Windows 10 and 11 and things work pretty much the same on both. The upgrade from 10 to 11 brings its own set of stresses, but so far CodeProject.AI isn't one of them.
cheers
Chris Maunder
|
|
|
|
|
I downloaded CodeProject.AI-Server-win-x64-2.6.2 and ran the install. The process was done within one minue and said successful. However, the service never started, there was no log file in /program files/codeproject/ai. The Codeproject dashboard at http://localhost:32168/ loaded but the sever window read "Unable to contact AI Server" and the "info" tab had no information.
I was able to install CodeProject.AI.Server-1.6.7.0.
I have tried several times with no luck. Each time I uninstalled the prior version and deleted codeproject directories in Program Files and Program Data.
I was able to install on another Windows 10 computer with no problems. Very frustrating.
Here are some of the system info screens.
OS Name Microsoft Windows 10 Pro
Version 10.0.19045 Build 19045
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name POWERSPEC-B743
System Manufacturer MicroElectronics
System Model B743
System Type x64-based PC
System SKU 984096
Processor Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz, 3601 Mhz, 8 Core(s), 8 Logical Processor(s)
BIOS Version/Date American Megatrends Inc. P1.10A, 9/11/2019
SMBIOS Version 3.1
Embedded Controller Version 255.255
BIOS Mode UEFI
BaseBoard Manufacturer ASRock
BaseBoard Product Z390 Phantom Gaming 4S/ac
BaseBoard Version
Platform Role Desktop
Secure Boot State Off
PCR7 Configuration Elevation Required to View
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume5
Locale United States
Hardware Abstraction Layer Version = "10.0.19041.3636"
User Name Not Available
Time Zone Eastern Daylight Time
Installed Physical Memory (RAM) 32.0 GB
Total Physical Memory 31.7 GB
ZES_ENABLE_SYSMAN 1 <SYSTEM>
windir %SystemRoot% <SYSTEM>
VBOX_MSI_INSTALL_PATH C:\Program Files\Oracle\VirtualBox\ <SYSTEM>
USERNAME SYSTEM <SYSTEM>
TMP %SystemRoot%\TEMP <SYSTEM>
TMP %USERPROFILE%\AppData\Local\Temp NT AUTHORITY\SYSTEM
TMP %USERPROFILE%\AppData\Local\Temp POWERSPEC-B743\jrswa
TEMP %SystemRoot%\TEMP <SYSTEM>
TEMP %USERPROFILE%\AppData\Local\Temp NT AUTHORITY\SYSTEM
TEMP %USERPROFILE%\AppData\Local\Temp POWERSPEC-B743\jrswa
QTJAVA C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip <SYSTEM>
PSModulePath %ProgramFiles%\WindowsPowerShell\Modules;%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules <SYSTEM>
PROCESSOR_REVISION 9e0d <SYSTEM>
PROCESSOR_LEVEL 6 <SYSTEM>
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 158 Stepping 13, GenuineIntel <SYSTEM>
PROCESSOR_ARCHITECTURE AMD64 <SYSTEM>
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC <SYSTEM>
Path C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Intel\Intel(R) Memory and Storage Tool\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\OpenVPN\bin <SYSTEM>
Path %USERPROFILE%\AppData\Local\Microsoft\WindowsApps; NT AUTHORITY\SYSTEM
Path C:\Users\jrswa\AppData\Local\Programs\Python\Launcher\;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps; POWERSPEC-B743\jrswa
OS Windows_NT <SYSTEM>
OneDriveConsumer C:\Users\jrswa\OneDrive POWERSPEC-B743\jrswa
OneDrive C:\Users\jrswa\OneDrive POWERSPEC-B743\jrswa
NUMBER_OF_PROCESSORS 8 <SYSTEM>
DriverData C:\Windows\System32\Drivers\DriverData <SYSTEM>
configsetroot %SystemRoot%\ConfigSetRoot <SYSTEM>
ComSpec %SystemRoot%\system32\cmd.exe <SYSTEM>
CLASSPATH .;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
John
modified 27-May-24 13:52pm.
|
|
|
|
|
I have this exact same problem.
|
|
|
|
|
Is there anything in C:\Program Files\CodeProject\AI ?
If so, can you go to C:\Program Files\CodeProject\AI\server , open a terminal, and in the terminal type CodeProject.AI.Server.exe (and ENTER) to launch the server?
Let us know what you see in the terminal, and whether the dashboard works.
cheers
Chris Maunder
|
|
|
|
|
Chris,
Thank you, that got me up and running. The first time I ran CodeProject.AI.Server.exe I got a the message: "You must install .NET to run this application" with a link to down that software. I downloaded and installed the .NET runtime.
A second execution of CodeProject.AI.Server.exe yielded the message "You must install or update .NET to run this application" with a link to download that software.
I did so and then CodeProject appears to have loaded the service and I can get to the Dashboard. Blue Iris also recognizes CodeProject. I have yet to try and do anything with CodeProject but I am a lot further than before.
Thank you very much for your quick response.
|
|
|
|
|
Hi, trying to setup CodeProject.AI (2.6.4, latest release available) for use with object detection and the Google Coral USB.
Two issues:
1. When I try to install the Coral module, I get "Error in Install ObjectDetectionCoral: 404" in the web ui. Nothing in the logs, even with setting install verbosity to "loud". Any other way of installing?
2. (Not sure if important): YOLOv5 6.2 keeps throwing errors. It couldn't be installed, because torch couldn't be found/installed. Had the same issue with Facerecognition, but was able to uninstall facerecognition.
16:52:12:Started Object Detection (YOLOv5 6.2) module
16:52:12:detect_adapter.py: Traceback (most recent call last):
16:52:12:detect_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/ObjectDetectionYOLOv5-6.2/detect_adapter.py", line 20, in
16:52:12:detect_adapter.py: from detect import do_detection
16:52:12:detect_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/ObjectDetectionYOLOv5-6.2/detect.py", line 7, in
16:52:12:detect_adapter.py: import torch
16:52:12:detect_adapter.py: ModuleNotFoundError: No module named 'torch'
16:52:12:Module ObjectDetectionYOLOv5-6.2 has shutdown
I really only want to run the Coral module, so not sure if #2 is even relevant for me.
|
|
|
|
|
|
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!
|
|
|
|