|
Not sure where you set configuration for image, but look for
image: codeproject/ai-server:latest
and change it to
image: codeproject/ai-server:2.6.2
|
|
|
|
|
Thanks very much for your report. Could you please share your System Info tab from your CodeProject.AI Server dashboard?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Server version: 2.6.5
System: Docker (d1e1925ba47f)
Operating System: Linux (Ubuntu 22.04)
CPUs: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz (Intel)
1 CPU x 2 cores. 4 logical processors (x64)
System RAM: 8 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Docker
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.19
.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
|
|
|
|
|
After 2.6.5 upgrade, starting the module shows these errors..
22:15:19:Started Object Detection (Coral) module
22:15:21:objectdetection_coral_adapter.py: Exception ignored in:
22:15:21:objectdetection_coral_adapter.py: Traceback (most recent call last):
22:15:21:objectdetection_coral_adapter.py: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/tflite_runtime/interpreter.py", line 124, in __del__
22:15:21:objectdetection_coral_adapter.py: if self._library is not None:
22:15:21:objectdetection_coral_adapter.py: AttributeError: 'Delegate' object has no attribute '_library'
22:15:21:objectdetection_coral_adapter.py: An exception occurred initialising the module: libedgetpu.so.1: cannot open shared object file: No such file or directory
22:15:22:Object Detection (Coral): [ImportError] : Error during main_loop: Traceback (most recent call last):
File "/app/modules/ObjectDetectionCoral/../../SDK/Python/module_runner.py", line 576, in main_loop
output = await callbacktask
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 107, in process
response = self._do_detection(img, threshold)
File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 179, in _do_detection
from objectdetection_coral_singletpu import do_detect
File "/app/modules/ObjectDetectionCoral/objectdetection_coral_singletpu.py", line 65, in
from pycoral.utils.edgetpu import make_interpreter
File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
ImportError: libedgetpu.so.1: cannot open shared object file: No such file or directory
|
|
|
|
|
Thanks very much for that. What command line did you run to setup CodeProject.AI Server / what parameters did you use?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|