|
Thanks very much for your follow-up. If you open up the CodeProject.AI Server Explorer, and attempt a manual test of the Object Detection (YOLOv5 .NET) module there, does it work?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
I am trying in vain to install the Ubuntu version of Codeproject AI in a Proxmox LXC container. In both the privileged and unprivileged container, a meaningless error message simply appears. Which packages are required by default. What can I try to make it work? I do not want to use Docker.
<pre>root@ubuntu:/home/install# pushd "/usr/bin/codeproject.ai-server-2.5.4/" && bash setup.sh && popd
/usr/bin/codeproject.ai-server-2.5.4 /home/install
/usr/bin/codeproject.ai-server-2.5.4/SDK/Scripts/utils.sh: line 2525: gsettings: command not found
(No schemas means: we can't detect if you're in light or dark mode)
Installing CodeProject.AI Analysis Module
======================================================================
CodeProject.AI Installer
======================================================================
7.08 GiB of 9.07 GiB available on linux
Installing xz-utils...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-security InRelease
0% [Working]
General CodeProject.AI setup
Setting permissions on downloads folder...Done
Setting permissions on runtimes folder...Done
Setting permissions on persisted data folder...Done
GPU support
CUDA (NVIDIA) Present: No
No esent:
MPS (Apple) Present: No
Reading module settings.......Done
Processing module codeproject.ai-server-2.5.4
This module cannot be installed on this system
Setup complete
Total setup time 00:00:00
/home/install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
modified 2-Apr-24 14:06pm.
|
|
|
|
|
|
The installation under Debian 12 behaves exactly the same as under Ubuntu. It does not work. Did you do something special?
======================================================================
CodeProject.AI Installer
======================================================================
8.01 GiB of 9.07 GiB available on linux
Installing xz-utils...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://packages.microsoft.com/debian/12/prod bookworm InRelease
Installing jq...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://packages.microsoft.com/debian/12/prod bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
General CodeProject.AI setup
Setting permissions on downloads folder...Done
Setting permissions on runtimes folder...Done
Setting permissions on persisted data folder...Done
GPU support
CUDA (NVIDIA) Present: No
ROCm (AMD) Present: (attempt to install rocminfo...) No
MPS (Apple) Present: No
Reading module settings.......Done
Processing module codeproject.ai-server-2.5.4
This module cannot be installed on this system
Setup complete
Total setup time 00:00:04
|
|
|
|
|
In the FWIW department, I also ran into this problem. I tried a ton of different things to no avail. When I finally gave up, I had figured out how to change the debug level in the setup script and found that the setup.sh script was trying to install module settings from 1) A directory that didn't exist and 2) Files that didn't exist.
From my notes, this was the output that I got:
Reading module settingsCannot find .Modules."codeproject.ai-server-2.5.4".Name in modulesettings in /usr/bin/codeproject.ai-server-2.5.4/modules/codeproject.ai-server-2.5.4
.Cannot find .Modules."codeproject.ai-server-2.5.4".Version in modulesettings in /usr/bin/codeproject.ai-server-2.5.4/modules/codeproject.ai-server-2.5.4
.Cannot find .Modules."codeproject.ai-server-2.5.4".LaunchSettings.Runtime in modulesettings in /usr/bin/codeproject.ai-server-2.5.4/modules/codeproject.ai-server-2.5.4
.Cannot find .Modules."codeproject.ai-server-2.5.4".LaunchSettings.RuntimeLocation in modulesettings in /usr/bin/codeproject.ai-server-2.5.4/modules/codeproject.ai-server-2.5.4
.Cannot find .Modules."codeproject.ai-server-2.5.4".LaunchSettings.FilePath in modulesettings in /usr/bin/codeproject.ai-server-2.5.4/modules/codeproject.ai-server-2.5.4
.Cannot find .Modules."codeproject.ai-server-2.5.4".GpuOptions.InstallGPU in modulesettings in /usr/bin/codeproject.ai-server-2.5.4/modules/codeproject.ai-server-2.5.4
.Cannot find .Modules."codeproject.ai-server-2.5.4".InstallOptions.Platforms in modulesettings in /usr/bin/codeproject.ai-server-2.5.4/modules/codeproject.ai-server-2.5.4
I was able to get it a little bit further down the path by simply manually starting the service.
sudo bash /usr/bin/codeproject.ai-server-2.5.4/start.sh
This did a whole bunch of stuff, including getting me the webpage. But, it threw a lot of errors and I never got a functional system going. In my case, the modules just did not function at all. If I had to guess, there's either some missing pre-req's, missing steps in the instructions and/or some issues with the underlying code. I couldn't tear apart what was actually wrong or missing, but it might be possible by studying the errors more closely.
I would love to get this going myself as I want a functional mesh system and I've given up on trying to make that work using Docker.
|
|
|
|
|
Can you please do a ls on the root folder (/usr/bin/codeproject.ai-server-2.5.4) and the modules folder (/usr/bin/codeproject.ai-server-2.5.4/modules)?
Could I also offer you version 2.6.2. It's still in Insider testing but give it a spin and let me know if it helps
cheers
Chris Maunder
modified 2-Apr-24 14:48pm.
|
|
|
|
|
Can you please try something for me?
Instead of running the setup script, can you simply launch CodeProject.AI directly?
bash start.sh . You may even want to sudo that, just in case.
On first startup, the modules will be installed
cheers
Chris Maunder
|
|
|
|
|
|
I tried the version 2.6.2 and got a lot of errors.
Not one single module starts
Here is the output from your request:
<pre lang="Terminal">root@debian-docker:~# ls /usr/bin/codeproject.ai-server-2.6.2
LICENCE.md SDK codeproject.ai-server.service downloads logs models modules runtimes server setup.sh start.sh uninstall.sh
root@debian-docker:~# ls /usr/bin/codeproject.ai-server-2.6.2/modules
FaceProcessing ObjectDetectionYOLOv5-6.2 ObjectDetectionYOLOv5Net
Here is the installation output:
root@debian-docker:~# dpkg -i codeproject.ai-server_2.6.2_Ubuntu_x64.deb
Selecting previously unselected package codeproject.ai-server.
(Reading database ... 28288 files and directories currently installed.)
Preparing to unpack codeproject.ai-server_2.6.2_Ubuntu_x64.deb ...
Unpacking codeproject.ai-server (2.6.2) ...
Setting up codeproject.ai-server (2.6.2) ...
Post installation process started
Creating settings folder
Setting execute permissions
Settings application folder permissions
Setting file permissions
Adding application shortcut to /usr/local/bin
Adding CodeProject.AI Server to Daemon list
Post installation process finished
CodeProject.AI Server will launch on startup. If you need to launch manually, run:
sudo bash /usr/bin/codeproject.ai-server-2.6.2/start.sh
To uninstall, run
sudo dpkg -r codeproject.ai-server
PLEASE INSTALL FINAL REQUIREMENTS by running:
pushd "/usr/bin/codeproject.ai-server-2.6.2/" && bash setup.sh && popd
root@debian-docker:~# pushd "/usr/bin/codeproject.ai-server-2.6.2/" && bash setup.sh && popd
/usr/bin/codeproject.ai-server-2.6.2 ~
/usr/bin/codeproject.ai-server-2.6.2/SDK/Scripts/utils.sh: line 2618: gsettings: command not found
(No schemas means: we can't detect if you're in light or dark mode)
Setting up CodeProject.AI Development Environment
======================================================================
CodeProject.AI Installer
======================================================================
8.06 GiB of 15.01 GiB available on linux
Installing xz-utils...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Installing jq...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1762 (apt)
E: Unable to lock directory /var/lib/apt/lists/
General CodeProject.AI setup
Setting permissions on downloads folder...done
Setting permissions on modules download folder...done
Creating models download folder...done
Setting permissions on models download folder...done
Setting permissions on runtimes folder...done
Setting permissions on persisted data folder...done
GPU support
CUDA (NVIDIA) Present: No
ROCm (AMD) Present: (attempt to install rocminfo...) No
MPS (Apple) Present: No
Searching for libssl1.1...installing... done
Ensuring symlinks are created...Done
Processing CodeProject.AI SDK
Searching for apt-utils...All good.
Searching for ca-certificates gnupg libc6-dev libfontc...installing... done
Searching for ffmpeg libsm6 libxext6 mesa-utils curl r...installing... done
Checking for .NET 7.0...All good. .NET is 7.0.17
Confirming .NET aspnetcore install present. Version is 7.0.17
Processing CodeProject.AI Server
Reading module settings.......done
Processing module *
This module cannot be installed on this system
Module setup Complete
Setup complete
Total setup time 00:00:48
~
root@debian-docker:~# bash /usr/bin/codeproject.ai-server-2.6.2/start.sh
/bin/bash: line 1: pstree: command not found
Creating downloaded modules package path '/usr/bin/codeproject.ai-server-2.6.2/downloads/modules'
Creating downloaded models path '/usr/bin/codeproject.ai-server-2.6.2/downloads/models'
Debug Settings file: /usr/bin/codeproject.ai-server-2.6.2/server/installmodules.json exists: False
Infor ** System: Linux
Infor ** Operating System: Linux (Debian GNU/Linux 12)
Infor ** CPUs: AMD Ryzen 5 PRO 5650GE with Radeon Graphics (AMD)
Infor ** 1 CPU x 6 cores. 12 logical processors (x64)
Infor ** GPU (Primary): Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev dc) (Advanced Micro Devices, Inc.)
Infor ** System RAM: 8 GiB
Infor ** Platform: Linux
Infor ** BuildConfig: Release
Infor ** Execution Env: Native
Infor ** Runtime Env: Production
Infor ** Runtimes installed:
Infor ** .NET runtime: 7.0.17
Infor ** .NET SDK: 7.0.407
Infor ** Default Python: 3.11.2
Infor ** Go: Not found
Infor ** NodeJS: Not found
Infor ** Rust: Not found
Infor ** App DataDir: /etc/codeproject/ai
Infor Video adapter info:
Infor ASPEED Technology, Inc. ASPEED Graphics Family (rev 41):
Infor Driver Version
Infor Video Processor
Infor Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev dc):
Infor Driver Version
Infor Video Processor
Infor *** STARTING CODEPROJECT.AI SERVER
Infor RUNTIMES_PATH = /usr/bin/codeproject.ai-server-2.6.2/runtimes
Infor PREINSTALLED_MODULES_PATH = /usr/bin/codeproject.ai-server-2.6.2/preinstalled-modules
Infor DEMO_MODULES_PATH = /usr/bin/codeproject.ai-server-2.6.2/demos/modules
Infor MODULES_PATH = /usr/bin/codeproject.ai-server-2.6.2/modules
Infor PYTHON_PATH = /bin/linux/%PYTHON_NAME%/venv/bin/python3
Infor Data Dir = /etc/codeproject/ai
Infor ** Server version: 2.6.2
Server is listening on port 32168
Server is also listening on legacy port 5000
Trace ModuleRunner Start
Trace Starting Background AI Modules
Infor ** Setting up initial modules. Please be patient...
Infor ** Installing initial module FaceProcessing.
Infor Preparing to install module 'FaceProcessing'
Infor Downloading module 'FaceProcessing'
Warning: unknown mime-type for "http://localhost:32168" -- using "application/octet-stream"
Error: no such file "http://localhost:32168"
Infor Installing module 'FaceProcessing'
Debug Installer script at '/usr/bin/codeproject.ai-server-2.6.2/setup.sh'
Infor FaceProcessing: Setting verbosity to quiet
Error FaceProcessing: /usr/bin/codeproject.ai-server-2.6.2/SDK/Scripts/utils.sh: line 2618: gsettings: command not found
Infor FaceProcessing: (No schemas means: we can't detect if you're in light or dark mode)
Infor FaceProcessing: Installing CodeProject.AI Analysis Module
Infor FaceProcessing: ======================================================================
Infor FaceProcessing: CodeProject.AI Installer
Infor FaceProcessing: ======================================================================
Infor FaceProcessing: 8.03 GiB of 15.01 GiB available on linux
Infor FaceProcessing: Installing xz-utils...
Warni FaceProcessing: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Warni FaceProcessing: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Error FaceProcessing: stty: 'standard input': Inappropriate ioctl for device
Infor FaceProcessing: General CodeProject.AI setup
Infor FaceProcessing: Setting permissions on downloads folder...done
Infor FaceProcessing: Setting permissions on modules download folder...done
Infor FaceProcessing: Setting permissions on models download folder...done
Infor FaceProcessing: Setting permissions on runtimes folder...done
Infor FaceProcessing: Setting permissions on persisted data folder...done
Infor FaceProcessing: GPU support
Infor FaceProcessing: CUDA (NVIDIA) Present: No
Infor FaceProcessing: ROCm (AMD) Present: No
Infor FaceProcessing: MPS (Apple) Present: No
Debug Current Version is 2.6.2
Infor *** Server: This is a new, unreleased version
Infor FaceProcessing: Reading module settings.......done
Infor FaceProcessing: Processing module FaceProcessing 1.10.1
Infor FaceProcessing: Installing Python 3.8
Infor FaceProcessing: Searching for build-essential make...installing... done
Error FaceProcessing: stty: 'standard input': Inappropriate ioctl for device
Infor FaceProcessing: Searching for openssl-dev libssl-dev libncurses5-dev l...installing... done
Error FaceProcessing: stty: 'standard input': Inappropriate ioctl for device
Infor FaceProcessing: Installing Python needs to be done manually
Infor FaceProcessing: Please run this command in a terminal:
Infor FaceProcessing: cd /usr/bin/codeproject.ai-server-2.6.2/modules/FaceProcessing && sudo bash ../../setup.sh
Infor FaceProcessing: then restart CodeProject.AI Server
Infor Module FaceProcessing installed successfully.
Infor Installer exited with code 0
Infor ** Installing initial module ObjectDetectionYOLOv5Net.
Infor Preparing to install module 'ObjectDetectionYOLOv5Net'
Infor Downloading module 'ObjectDetectionYOLOv5Net'
Trace Running module using: /usr/bin/codeproject.ai-server-2.6.2/runtimes/bin/linux/python38/venv/bin/python3
Debug
Debug Attempting to start FaceProcessing with /usr/bin/codeproject.ai-server-2.6.2/runtimes/bin/linux/python38/venv/bin/python3 "/usr/bin/codeproject.ai-server-2.6.2/modules/FaceProcessing/intelligencelayer/face.py"
Trace Starting /usr...untimes/bin/linux/python38/venv/bin/python3 "/usr.../FaceProcessing/intelligencelayer/face.py"
Infor
Infor ** Module 'Face Processing' 1.10.1 (ID: FaceProcessing)
Infor ** Valid: True
Infor ** Module Path: <root>/modules/FaceProcessing
Infor ** AutoStart: True
Infor ** Queue: faceprocessing_queue
Infor ** Runtime: python3.8
Infor ** Runtime Loc: Shared
Infor ** FilePath: intelligencelayer/face.py
Infor ** Start pause: 3 sec
Infor ** Parallelism: 0
Infor ** LogVerbosity:
Infor ** Platforms: all,!raspberrypi,!jetson
Infor ** GPU Libraries: installed if available
Infor ** GPU Enabled: enabled
Infor ** Accelerator:
Infor ** Half Precis.: enable
Infor ** Environment Variables
Infor ** APPDIR = <root>/modules/FaceProcessing/intelligencelayer
Infor ** DATA_DIR = /etc/codeproject/ai
Infor ** MODE = MEDIUM
Infor ** MODELS_DIR = <root>/modules/FaceProcessing/assets
Infor ** PROFILE = desktop_gpu
Infor ** USE_CUDA = True
Infor ** YOLOv5_AUTOINSTALL = false
Infor ** YOLOv5_VERBOSE = false
Infor
Error Error trying to start Face Processing (intelligencelayer/face.py)
Error Error is: An error occurred trying to start process '/usr/bin/codeproject.ai-server-2.6.2/runtimes/bin/linux/python38/venv/bin/python3' with working directory '/usr/bin/codeproject.ai-server-2.6.2/modules/FaceProcessing'. No such file or directory
Error at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module, String installSummary)
Error *** Please check the CodeProject.AI installation completed successfully
Infor Module FaceProcessing started successfully.
Infor Installing module 'ObjectDetectionYOLOv5Net'
Debug Installer script at '/usr/bin/codeproject.ai-server-2.6.2/setup.sh'
Infor ObjectDetectionYOLOv5Net: Setting verbosity to quiet
Error ObjectDetectionYOLOv5Net: /usr/bin/codeproject.ai-server-2.6.2/SDK/Scripts/utils.sh: line 2618: gsettings: command not found
Infor ObjectDetectionYOLOv5Net: (No schemas means: we can't detect if you're in light or dark mode)
Infor ObjectDetectionYOLOv5Net: Installing CodeProject.AI Analysis Module
Infor ObjectDetectionYOLOv5Net: ======================================================================
Infor ObjectDetectionYOLOv5Net: CodeProject.AI Installer
Infor ObjectDetectionYOLOv5Net: ======================================================================
Infor ObjectDetectionYOLOv5Net: 7.04 GiB of 15.01 GiB available on linux
Infor ObjectDetectionYOLOv5Net: Installing xz-utils...
Warni ObjectDetectionYOLOv5Net: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Warni ObjectDetectionYOLOv5Net: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Error ObjectDetectionYOLOv5Net: stty: 'standard input': Inappropriate ioctl for device
Infor ObjectDetectionYOLOv5Net: General CodeProject.AI setup
Infor ObjectDetectionYOLOv5Net: Setting permissions on downloads folder...done
Infor ObjectDetectionYOLOv5Net: Setting permissions on modules download folder...done
Infor ObjectDetectionYOLOv5Net: Setting permissions on models download folder...done
Infor ObjectDetectionYOLOv5Net: Setting permissions on runtimes folder...done
Infor ObjectDetectionYOLOv5Net: Setting permissions on persisted data folder...done
Infor ObjectDetectionYOLOv5Net: GPU support
Infor ObjectDetectionYOLOv5Net: CUDA (NVIDIA) Present: No
Infor ObjectDetectionYOLOv5Net: ROCm (AMD) Present: No
Infor ObjectDetectionYOLOv5Net: MPS (Apple) Present: No
Infor ObjectDetectionYOLOv5Net: Reading module settings.......done
Infor ObjectDetectionYOLOv5Net: Processing module ObjectDetectionYOLOv5Net 1.10.0
Infor ObjectDetectionYOLOv5Net: Downloading ObjectDetectionYOLOv5Net-CPU-1.10.0.zip...Expanding... done.
Infor ObjectDetectionYOLOv5Net: Moving contents of ObjectDetectionYOLOv5Net-CPU-1.10.0.zip to bin...done.
Infor ObjectDetectionYOLOv5Net: Downloading YOLO ONNX models...Expanding... done.
Infor ObjectDetectionYOLOv5Net: Moving contents of yolonet-models.zip to assets...done.
Infor ObjectDetectionYOLOv5Net: Downloading Custom YOLO ONNX models...Expanding... done.
Infor ObjectDetectionYOLOv5Net: Moving contents of yolonet-custom-models.zip to custom-models...done.
Infor ObjectDetectionYOLOv5Net: Scanning modulesettings for downloadable models...No models specified
Infor ObjectDetectionYOLOv5Net: Self test: Self-test failed
Infor ObjectDetectionYOLOv5Net: Module setup time 00:02:29
Infor ObjectDetectionYOLOv5Net: Setup complete
Infor ObjectDetectionYOLOv5Net: Total setup time 00:02:30
Infor Module ObjectDetectionYOLOv5Net installed successfully.
Infor Installer exited with code 0
Infor ** Installing initial module ObjectDetectionYOLOv5-6.2.
Infor Preparing to install module 'ObjectDetectionYOLOv5-6.2'
Infor Downloading module 'ObjectDetectionYOLOv5-6.2'
Infor Module ObjectDetectionYOLOv5Net not configured to AutoStart.
Infor Installing module 'ObjectDetectionYOLOv5-6.2'
Debug Installer script at '/usr/bin/codeproject.ai-server-2.6.2/setup.sh'
Infor ObjectDetectionYOLOv5-6.2: Setting verbosity to quiet
Error ObjectDetectionYOLOv5-6.2: /usr/bin/codeproject.ai-server-2.6.2/SDK/Scripts/utils.sh: line 2618: gsettings: command not found
Infor ObjectDetectionYOLOv5-6.2: (No schemas means: we can't detect if you're in light or dark mode)
Infor ObjectDetectionYOLOv5-6.2: Installing CodeProject.AI Analysis Module
Infor ObjectDetectionYOLOv5-6.2: ======================================================================
Infor ObjectDetectionYOLOv5-6.2: CodeProject.AI Installer
Infor ObjectDetectionYOLOv5-6.2: ======================================================================
Infor ObjectDetectionYOLOv5-6.2: 6.08 GiB of 15.01 GiB available on linux
Infor ObjectDetectionYOLOv5-6.2: Installing xz-utils...
Warni ObjectDetectionYOLOv5-6.2: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Warni ObjectDetectionYOLOv5-6.2: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Error ObjectDetectionYOLOv5-6.2: stty: 'standard input': Inappropriate ioctl for device
Infor ObjectDetectionYOLOv5-6.2: General CodeProject.AI setup
Infor ObjectDetectionYOLOv5-6.2: Setting permissions on downloads folder...done
Infor ObjectDetectionYOLOv5-6.2: Setting permissions on modules download folder...done
Infor ObjectDetectionYOLOv5-6.2: Setting permissions on models download folder...done
Infor ObjectDetectionYOLOv5-6.2: Setting permissions on runtimes folder...done
Infor ObjectDetectionYOLOv5-6.2: Setting permissions on persisted data folder...done
Infor ObjectDetectionYOLOv5-6.2: GPU support
Infor ObjectDetectionYOLOv5-6.2: CUDA (NVIDIA) Present: No
Infor ObjectDetectionYOLOv5-6.2: ROCm (AMD) Present: No
Infor ObjectDetectionYOLOv5-6.2: MPS (Apple) Present: No
Infor ObjectDetectionYOLOv5-6.2: Reading module settings.......done
Infor ObjectDetectionYOLOv5-6.2: Processing module ObjectDetectionYOLOv5-6.2 1.9.1
Infor ObjectDetectionYOLOv5-6.2: Installing Python 3.8
Infor ObjectDetectionYOLOv5-6.2: Searching for build-essential make...All good.
Error ObjectDetectionYOLOv5-6.2: stty: 'standard input': Inappropriate ioctl for device
Infor ObjectDetectionYOLOv5-6.2: Searching for openssl-dev libssl-dev libncurses5-dev l...installing... done
Error ObjectDetectionYOLOv5-6.2: stty: 'standard input': Inappropriate ioctl for device
Infor ObjectDetectionYOLOv5-6.2: Installing Python needs to be done manually
Infor ObjectDetectionYOLOv5-6.2: Please run this command in a terminal:
Infor ObjectDetectionYOLOv5-6.2: cd /usr/bin/codeproject.ai-server-2.6.2/modules/ObjectDetectionYOLOv5-6.2 && sudo bash ../../setup.sh
Infor ObjectDetectionYOLOv5-6.2: then restart CodeProject.AI Server
Infor Module ObjectDetectionYOLOv5-6.2 installed successfully.
Trace Running module using: /usr/bin/codeproject.ai-server-2.6.2/runtimes/bin/linux/python38/venv/bin/python3
Debug
Debug Attempting to start ObjectDetectionYOLOv5-6.2 with /usr/bin/codeproject.ai-server-2.6.2/runtimes/bin/linux/python38/venv/bin/python3 "/usr/bin/codeproject.ai-server-2.6.2/modules/ObjectDetectionYOLOv5-6.2/detect_adapter.py"
Trace Starting /usr...untimes/bin/linux/python38/venv/bin/python3 "/usr...jectDetectionYOLOv5-6.2/detect_adapter.py"
Infor
Infor ** Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
Infor ** Valid: True
Infor ** Module Path: <root>/modules/ObjectDetectionYOLOv5-6.2
Infor ** AutoStart: True
Infor ** Queue: objectdetection_queue
Infor ** Runtime: python3.8
Infor ** Runtime Loc: Shared
Infor ** FilePath: detect_adapter.py
Infor ** Start pause: 1 sec
Infor ** Parallelism: 0
Infor ** LogVerbosity:
Infor ** Platforms: all,!raspberrypi,!jetson
Infor ** GPU Libraries: installed if available
Infor ** GPU Enabled: enabled
Infor ** Accelerator:
Infor ** Half Precis.: enable
Infor ** Environment Variables
Infor ** APPDIR = <root>/modules/ObjectDetectionYOLOv5-6.2
Infor ** CUSTOM_MODELS_DIR = <root>/modules/ObjectDetectionYOLOv5-6.2/custom-models
Infor ** MODELS_DIR = <root>/modules/ObjectDetectionYOLOv5-6.2/assets
Infor ** MODEL_SIZE = Medium
Infor ** USE_CUDA = True
Infor ** YOLOv5_AUTOINSTALL = false
Infor ** YOLOv5_VERBOSE = false
Infor
Error Error trying to start Object Detection (YOLOv5 6.2) (detect_adapter.py)
Error Error is: An error occurred trying to start process '/usr/bin/codeproject.ai-server-2.6.2/runtimes/bin/linux/python38/venv/bin/python3' with working directory '/usr/bin/codeproject.ai-server-2.6.2/modules/ObjectDetectionYOLOv5-6.2'. No such file or directory
Error at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module, String installSummary)
Error *** Please check the CodeProject.AI installation completed successfully
Infor Module ObjectDetectionYOLOv5-6.2 started successfully.
Infor Installer exited with code 0
|
|
|
|
|
Installing Python needs to be done manually
Infor ObjectDetectionYOLOv5-6.2: Please run this command in a terminal:
Infor ObjectDetectionYOLOv5-6.2: cd /usr/bin/codeproject.ai-server-2.6.2/modules/ObjectDetectionYOLOv5-6.2 && sudo bash ../../setup.sh
Infor ObjectDetectionYOLOv5-6.2: then restart CodeProject.AI Server
Debian is...difficult. Run this command manually and it should work for the YOLOv5 module.
The .NET module is a head scratcher though. Is there a install.log in /usr/bin/codeproject.ai-server-2.6.2/modules/ObjectDetectionYOLOv5Net?
cheers
Chris Maunder
|
|
|
|
|
i installed python 3.9.19 and got the following errors on YOLOv5 6.2.
Infor Started Object Detection (YOLOv5 6.2) module
Error detect_adapter.py: Traceback (most recent call last):
Error detect_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.2/modules/ObjectDetectionYOLOv5-6.2/detect_adapter.py", line 20, in <module>
Error detect_adapter.py: from detect import do_detection
Error detect_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.2/modules/ObjectDetectionYOLOv5-6.2/detect.py", line 8, in <module>
Error detect_adapter.py: from yolov5.models.common import DetectMultiBackend, AutoShape
Error detect_adapter.py: ModuleNotFoundError: No module named 'yolov5'
Infor ** Module ObjectDetectionYOLOv5-6.2 has shutdown
Infor detect_adapter.py: has exited
|
|
|
|
|
We've just updated the Ubuntu version to 2.6.4. Curious to know if 2.6.4 works better for you.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Hi everyone.
CodeProject environment:
-hw:raspberry PI5 8G+CoralUsb
-latest pi os lite 64Bit
-latest docker engine
Downloaded and installed the rpi64 2.5.6.1 docker image.
Disabled all modules and activated only the coral module (disable GPU, EfficientDetLite, Tiny, No MultiTPU).
Configured automatic boot.
Everything works fine but after a few hours the system no longer responds at blueiris call.
I have to restore it by restarting the coral module from the web interface (the log appears blocked) or with a system reboot.
Do you have any suggestions on what to do? What can I check?
Thank you
Mike
modified 2-Apr-24 13:18pm.
|
|
|
|
|
I have been running it pretty flawlessly. Did you install the coral driver on the pi5?
I think you might have to compile gasket-dkms from source from what I remember
|
|
|
|
|
thank you for the message. if it were a problem with the coral usb driver I think the system would never work. the raspberry responds correctly to blueiris even for many hours but then unexpectedly freezes even if the operating system and the codeproject web interface continue to work. no information on the codeproject interface. just restart the raspberry and everything will be perfect again for another few hours
|
|
|
|
|
I have found the exact same issue both on my Pi4 and Pi5 on 2.5.6.1 with the USB Coral. I noticed that if I have the Model Size on Tiny it takes longer before the crash/timeout.
I purchased the Pineberry HATAI! and a Google Coral A+E Key. I have installed latest Ubuntu 23.10 server and after a bit of messing with PCIe Apex & Gasket drivers I finally got it up and running on 2.5.6.1 and it has been working for a few days now and Blue Iris alerts are working perfectly.
I definitely think there is an issue with the USB side of things as the m.2 bottom hat seems to be much more stable.
|
|
|
|
|
The USB is unreliable. I had one and had random freezes with it. I switched over to their physical cards on all my systems and they never stop working.
I do run the pi hat on my pi5 and its rock solid. The other systems I have use the dual edge tpu with the pci card from makerfabs
|
|
|
|
|
It’s fixed quickly when CPAI is restarted, so even if the USB is unreliable, it should be trivial to handle. CPAI should be monitoring it and restart itself (or the Docker container) when it stops responding.
|
|
|
|
|
I have the same issue. It just silently dies.
|
|
|
|
|
Hi, I have the same configuration without freezing but with a strange behaviour:
After the first connexion or after some time working, delay is considerably increased :
08:52:30:Started Object Detection (Coral) module
08:52:33:objectdetection_coral_adapter.py: Using Edge TPU
08:53:48:Response rec'd from Object Detection (Coral) command 'detect' (...87bb02) ['Found person, person, person...'] took 2697ms
08:53:55:Response rec'd from Object Detection (Coral) command 'detect' (...f8a055) ['Found person, person, person...'] took 21ms
08:56:01:Response rec'd from Object Detection (Coral) command 'detect' (...d82031) ['Found person, person, person...'] took 22ms
Just after it becomes OK.
After a long delay I get these messages in dmesg:
usb 2-1: reset SuperSpeed USB device number 3 using xhci-hcd
usb 2-1: LPM exit latency is zeroed, disabling LPM.
Is that intentionnal ? or may be usb malfunctionning ?
|
|
|
|
|
I'm testing ocr via codeproject/explorer.
When I place an image with a resolution of 4032x3024, it does not read the characters that appear in the center of the image, but when I cut it and save it in another file with a resolution of 966x747, it returns successfully.
What can it be? I'm new to using codeproject...
Files: OCR - Google Drive[^]
|
|
|
|
|
Thanks very much for your message. When CodeProject.AI Server processes an image, it gets scaled down. So generally, if you can't read the text in an image, CodeProject.AI Server probably won't be able to read the text in the image.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Thanks for the feedback. Isn't there some configuration in the ocr module files to avoid this reduction? Because in the file I placed on Google Drive, for example, you can read both images. I put the results of the OCR scan on Google Drive.
modified 22-Mar-24 20:28pm.
|
|
|
|
|
Hello Everyone,
I am not a tech person. Blue Iris is perfect for my home security and I love that I can get answers to my questions using Code Project when I switched from Deep Stack. I am facing problems with downloading the module for for License Plate reading. I am so confused with having to to get paddle ocr from github on the backend. Is there any easy way from a kid from the 1980's to just download the software? I did use Rekor Scout and that was amazing but costly.
|
|
|
|
|
Thanks very much for your message. Could you please share your System Info tab from your CodeProject.AI Server dashboard? I can help better if I know what your setup is.
Thanks,
Sean Ewington
CodeProject
|
|
|
|