|
Hi thanks for you reply please see below:
This one is of the log and error:
|
|
|
|
|
Describe the bug
hi, i installed License Plate Reader from codeproject ai, but when i want to run on GPU, i get in logs that GPU module not installed, how to install needed module manually?
Expected behavior
i expect to to run License Plate Reader on GPU.
system info:
Server version: 2.5.4
System: Linux
Operating System: Linux (Ubuntu 22.04)
CPUs: Intel(R) Core(TM) i3-9100F CPU @ 3.60GHz (Intel)
1 CPU x 4 cores. 4 logical processors (x64)
GPU (Primary): NVIDIA GeForce GTX 1070 (8 GiB) (NVIDIA)
Driver: 535.161.07, CUDA: 12.2 (up to: 12.2), Compute: 6.1, cuDNN:
System RAM: 8 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Native (SSH)
Runtime Env: Production
.NET framework: .NET 7.0.17
Default Python: 3.10
Go Version:
Video adapter info:
Device 1234:
Driver Version
Video Processor
GP104 [GeForce GTX 1070] (rev a1):
Driver Version
Video Processor
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 83 MiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
Log from switching on GPU:
17:36:20:Update ALPR. Setting EnableGPU=true
17:36:20:Restarting License Plate Reader to apply settings change
17:36:20:Sending shutdown request to python3/ALPR
17:36:20:Client request 'Quit' in queue 'alpr_queue' (...e44747)
17:36:20:Request 'Quit' dequeued from 'alpr_queue' (...e44747)
17:36:20:License Plate Reader: Retrieved alpr_queue command 'Quit'
17:36:31:ALPR_adapter.py: License Plate Reader started.
17:36:31:Module ALPR has shutdown
17:36:31:ALPR_adapter.py: has exited
17:36:53:ALPR went quietly
17:36:53:
17:36:53:Running module using: /usr/bin/codeproject.ai-server-2.5.4/modules/ALPR/bin/linux/python38/venv/bin/python3
17:36:53:Starting /usr...es/ALPR/bin/linux/python38/venv/bin/python3 "/usr...server-2.5.4/modules/ALPR/ALPR_adapter.py"
17:36:53:
17:36:53:Attempting to start ALPR with /usr/bin/codeproject.ai-server-2.5.4/modules/ALPR/bin/linux/python38/venv/bin/python3 "/usr/bin/codeproject.ai-server-2.5.4/modules/ALPR/ALPR_adapter.py"
17:36:53:Module 'License Plate Reader' 3.0.2 (ID: ALPR)
17:36:53:Valid: True
17:36:53:Module Path: <root>/modules/ALPR
17:36:53:AutoStart: True
17:36:53:Queue: alpr_queue
17:36:53:Runtime: python3.8
17:36:53:Runtime Loc: Local
17:36:53:FilePath: ALPR_adapter.py
17:36:53:Pre installed: False
17:36:53:Start pause: 3 sec
17:36:53:Parallelism: 0
17:36:53:LogVerbosity:
17:36:53:Platforms: all
17:36:53:GPU Libraries: not installed
17:36:53:GPU Enabled: enabled
17:36:53:Accelerator:
17:36:53:Half Precis.: enable
17:36:53:Environment Variables
17:36:53:AUTO_PLATE_ROTATE = True
17:36:53:MIN_COMPUTE_CAPABILITY = 6
17:36:53:MIN_CUDNN_VERSION = 7
17:36:53:OCR_OPTIMAL_CHARACTER_HEIGHT = 60
17:36:53:OCR_OPTIMAL_CHARACTER_WIDTH = 30
17:36:53:OCR_OPTIMIZATION = true
17:36:53:PLATE_CONFIDENCE = 0.7
17:36:53:PLATE_RESCALE_FACTOR = 2
17:36:53:PLATE_ROTATE_DEG = 0
17:36:53:
17:36:53:Started License Plate Reader module
17:36:56:ALPR_adapter.py: Running init for License Plate Reader
Installation Log:
2024-03-25 13:37:51: Setting verbosity to quiet
2024-03-25 13:37:52: Installing CodeProject.AI Analysis Module
2024-03-25 13:37:52: ======================================================================
2024-03-25 13:37:52: CodeProject.AI Installer
2024-03-25 13:37:52: ======================================================================
2024-03-25 13:37:52: 67.00 GiB of 100.01 GiB available on linux
2024-03-25 13:37:52: Installing xz-utils...
2024-03-25 13:37:52: WARNING:
2024-03-25 13:37:52: apt does not have a stable CLI interface. WARNING: Use with caution in scripts.
2024-03-25 13:37:52: apt
2024-03-25 13:37:52: does not have a stable CLI interface. Use with caution in scripts.
2024-03-25 13:37:52: Hit:1 http:
2024-03-25 13:37:52: Hit:2 http:
2024-03-25 13:37:52: General CodeProject.AI setup
2024-03-25 13:37:52: Setting permissions on downloads folder...Done
2024-03-25 13:37:52: Setting permissions on runtimes folder...Done
2024-03-25 13:37:52: Setting permissions on persisted data folder...Done
2024-03-25 13:37:52: GPU support
2024-03-25 13:37:52: CUDA (NVIDIA) Present: Yes (CUDA 11.5, No cuDNN found)
2024-03-25 13:37:52: ROCm (AMD) Present: Hit:3 http:
2024-03-25 13:37:52: No
2024-03-25 13:37:52: MPS (Apple) Present: No
2024-03-25 13:37:52: Reading module settingsHit:4 http:
2024-03-25 13:37:52: Hit:5 https:
2024-03-25 13:37:53: ....Reading package lists......Done
2024-03-25 13:37:53: Processing module ALPR 3.0.2
2024-03-25 13:37:53: Installing Python 3.8
2024-03-25 13:37:53: Python 3.8 is already installed
2024-03-25 13:37:54: Ensuring PIP in base python install...
2024-03-25 13:37:54: Building dependency tree...
2024-03-25 13:37:54: Reading state information...
2024-03-25 13:37:54: All packages are up to date.
2024-03-25 13:38:03: done
2024-03-25 13:38:08: Upgrading PIP in base python install... done
2024-03-25 13:38:08: Installing Virtual Environment tools for Linux...
2024-03-25 13:38:09: Searching for python3-pip python3-setuptools python3.8...All good.
2024-03-25 13:38:12: Creating Virtual Environment (Local)... Done
2024-03-25 13:38:12: Checking for Python 3.8...(Found Python 3.8.18) All good
2024-03-25 13:38:15: Upgrading PIP in virtual environment... done
2024-03-25 13:38:17: Installing updated setuptools in venv... Done
2024-03-25 13:38:17: deb http:
2024-03-25 13:38:38: Searching for libssl1.1...installing... Done
2024-03-25 13:38:39: Ensuring symlinks are created...Done
2024-03-25 13:38:42: Downloading OCR models...Expanding... Done.
2024-03-25 13:38:42: Moving contents of ocr-en-pp_ocrv4-paddle.zip to paddleocr...done.
2024-03-25 13:38:42: Installing Python packages for License Plate Reader
2024-03-25 13:38:42: Installing GPU-enabled libraries: No
2024-03-25 13:38:42: Searching for python3-pip...All good.
2024-03-25 13:38:43: Ensuring PIP compatibility... Done
2024-03-25 13:38:43: Python packages will be specified by requirements.linux.txt
2024-03-25 13:39:38: - Installing PaddelPaddle, the Deep Learning platform... (✅ checked) Done
2024-03-25 13:42:19: - Installing PaddleOCR, the OCR toolkit based on PaddlePaddle... (✅ checked) Done
2024-03-25 13:42:27: - Installing imutils, the image utilities library... (✅ checked) Done
2024-03-25 13:42:28: - Installing Pillow, a Python Image Library...Already installed
2024-03-25 13:42:28: - Installing OpenCV, the Computer Vision library for Python...Already installed
2024-03-25 13:42:29: - Installing NumPy, a package for scientific computing...Already installed
2024-03-25 13:42:29: Installing Python packages for the CodeProject.AI Server SDK
2024-03-25 13:42:30: Searching for python3-pip...All good.
2024-03-25 13:42:32: Ensuring PIP compatibility... Done
2024-03-25 13:42:32: Python packages will be specified by requirements.txt
2024-03-25 13:42:33: - Installing Pillow, a Python Image Library...Already installed
2024-03-25 13:42:34: - Installing Charset normalizer...Already installed
2024-03-25 13:42:46: - Installing aiohttp, the Async IO HTTP library... (✅ checked) Done
2024-03-25 13:42:51: - Installing aiofiles, the Async IO Files library... (✅ checked) Done
2024-03-25 13:42:56: - Installing py-cpuinfo to allow us to query CPU info... (✅ checked) Done
2024-03-25 13:42:57: - Installing Requests, the HTTP library...Already installed
2024-03-25 13:42:57: Executing post-install script for License Plate Reader
2024-03-25 13:42:57: Applying PaddleOCR patch
2024-03-25 13:43:01: Self test: Self-test passed
2024-03-25 13:43:01: Module setup time 00:05:09
2024-03-25 13:43:01: Setup complete
2024-03-25 13:43:01: Total setup time 00:05:09
0
Object Detection (YOLOv5 6.2) 1.9.1
Started
GPU (CUDA)
0
Sound Classifier (TensorFlow) 1.2.0
Started
CPU
0
Super Resolution 1.9.1
Started
CPU
0
Strange is that nvidia-smi say that i have installed cuda 12, but python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))" say that i don't have cuda installed
root@ubuntu:/home/ubuntu# python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
2024-03-25 16:43:13.892817: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-03-25 16:43:15.158724: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-03-25 16:43:18.191431: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-03-25 16:43:23.652032: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2024-03-25 16:43:27.289394: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:998] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https:
2024-03-25 16:43:27.294061: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2251] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https:
Skipping registering GPU devices...
[]
root@ubuntu:/home/ubuntu# nvidia-smi
Mon Mar 25 16:43:45 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.161.07 Driver Version: 535.161.07 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce GTX 1070 Off | 00000000:06:10.0 Off | N/A |
| 0% 29C P8 11W / 250W | 4MiB / 8192MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| No running processes found |
+---------------------------------------------------------------------------------------+
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
2024-03-25 17:33:34.414644: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-03-25 17:33:34.470019: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-03-25 17:33:34.684616: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-03-25 17:33:35.693581: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2024-03-25 17:33:37.085932: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:998] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https:
2024-03-25 17:33:38.488526: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2251] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https:
Skipping registering GPU devices...
[]
ubuntu@ubuntu:~$ pip install tensorrt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: tensorrt in ./.local/lib/python3.9/site-packages (8.6.1.post1)
|
|
|
|
|
Thanks very much for the report. Curious if this is fixed in 2.6.2, would you be willing to test it?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Sean I have the same setup and this does not look resolved.
|
|
|
|
|
|
Status
13:18:32:System: Windows
13:18:32:Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
13:18:32:CPUs: 13th Gen Intel(R) Core(TM) i7-1360P (Intel)
13:18:32: 1 CPU x 12 cores. 16 logical processors (x64)
13:18:32:GPU (Primary): Intel(R) Iris(R) Xe Graphics (128 MiB) (Intel Corporation)
13:18:32: Driver: 31.0.101.5333
13:18:32:System RAM: 32 GiB
13:18:32:Platform: Windows
13:18:32:BuildConfig: Release
13:18:32:Execution Env: Native
13:18:32:Runtime Env: Production
13:18:32:Runtimes installed:
13:18:32: .NET runtime: 7.0.7
13:18:32: .NET SDK: Not found
13:18:32: Default Python: Not found
13:18:32: Go: Not found
13:18:32: NodeJS: Not found
13:18:32:App DataDir: C:\ProgramData\CodeProject\AI
13:18:32:Video adapter info:
13:18:32: Intel(R) Iris(R) Xe Graphics:
13:18:32: Driver Version 31.0.101.5333
13:18:32: Video Processor Intel(R) Iris(R) Xe Graphics Family
13:18:32:STARTING CODEPROJECT.AI SERVER
13:18:32:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
13:18:32:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
13:18:32:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
13:18:32:PYTHON_PATH = \bin\windows\%PYTHON_NAME%\venv\Scripts\python
13:18:32:Data Dir = C:\ProgramData\CodeProject\AI
13:18:33:Server version: 2.5.6
13:18:36:
13:18:36:Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
13:18:36:Valid: True
13:18:36:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
13:18:36:AutoStart: True
13:18:36:Queue: objectdetection_queue
13:18:36:Runtime: python3.7
13:18:36:Runtime Loc: Shared
13:18:36:FilePath: detect_adapter.py
13:18:36:Pre installed: False
13:18:36:Start pause: 1 sec
13:18:36:Parallelism: 0
13:18:36:LogVerbosity:
13:18:36:Platforms: all,!raspberrypi,!jetson
13:18:36:GPU Libraries: installed if available
13:18:36:GPU Enabled: enabled
13:18:36:Accelerator:
13:18:36:Half Precis.: enable
13:18:36:Environment Variables
13:18:36:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
13:18:36:CPAI_MODULE_ENABLE_GPU = True
13:18:36:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
13:18:36:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
13:18:36:MODEL_SIZE = Medium
13:18:36:USE_CUDA = True
13:18:36:YOLOv5_AUTOINSTALL = false
13:18:36:YOLOv5_VERBOSE = false
13:18:36:
13:18:36:Started Object Detection (YOLOv5 6.2) module
13:18:38:Server: This is the latest version
13:18:41:Sending shutdown request to python/ObjectDetectionYOLOv5-6.2
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...c25b11) ['No objects found'] took 3328ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...ac0745) ['Found chair'] took 3336ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...6a90f4) ['Found chair'] took 3355ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...688c99) ['Found chair'] took 3375ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...286995) ['No objects found'] took 3389ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...900079) ['Found chair'] took 3452ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...b71487) ['No objects found'] took 3451ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...ac22f4) ['Found bench, chair'] took 3475ms
13:18:44:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...91c4ee) ['No objects found'] took 1236ms
13:18:44:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...90fb4e) ['No objects found'] took 1227ms
13:18:44:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...2dcaf4) ['No objects found'] took 1265ms
13:18:44:detect_adapter.py: Object Detection (YOLOv5 6.2) started.
13:18:44:detect_adapter.py: Inference processing will occur on device 'CPU'
13:18:44:detect_adapter.py: Retrieved objectdetection_queue command 'custom'
13:18:44:detect_adapter.py: Retrieved objectdetection_queue command 'custom'
13:18:44:detect_adapter.py: Error sending response: Server disconnected
13:18:44:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...8432d6) ['Found boat'] took 1098ms
13:18:45:Module ObjectDetectionYOLOv5-6.2 has shutdown
13:18:45:detect_adapter.py: has exited
13:19:14:ObjectDetectionYOLOv5-6.2 went quietly
13:19:14:
13:19:14:Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
13:19:14:Valid: True
13:19:14:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
13:19:14:AutoStart: True
13:19:14:Queue: objectdetection_queue
13:19:14:Runtime: python3.7
13:19:14:Runtime Loc: Shared
13:19:14:FilePath: detect_adapter.py
13:19:14:Pre installed: False
13:19:14:Start pause: 1 sec
13:19:14:Parallelism: 0
13:19:14:LogVerbosity:
13:19:14:Platforms: all,!raspberrypi,!jetson
13:19:14:GPU Libraries: installed if available
13:19:14:GPU Enabled: enabled
13:19:14:Accelerator:
13:19:14:Half Precis.: enable
13:19:14:Environment Variables
13:19:14:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
13:19:14:CPAI_MODULE_ENABLE_GPU = True
13:19:14:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
13:19:14:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
13:19:14:MODEL_SIZE = Medium
13:19:14:USE_CUDA = True
13:19:14:YOLOv5_AUTOINSTALL = false
13:19:14:YOLOv5_VERBOSE = false
13:19:14:
13:19:14:Started Object Detection (YOLOv5 6.2) module
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...54fbdb) ['No objects found'] took 3509ms
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...c59ae0) ['Found bench, tv, dining table'] took 3573ms
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...b64e6b) ['No objects found'] took 3637ms
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...de96f4) ['No objects found'] took 3547ms
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...2a1e1a) ['Found truck, boat'] took 3472ms
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...1ceb20) ['No objects found'] took 3736ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...cfac6a) ['No objects found'] took 2385ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...6b7179) ['No objects found'] took 2442ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...263a42) ['No objects found'] took 2440ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...7bbed0) ['No objects found'] took 2400ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...3026a3) ['No objects found'] took 2378ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...c31481) ['No objects found'] took 2368ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...5511d6) ['No objects found'] took 2455ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...2d19bd) ['No objects found'] took 2523ms
13:19:24:Object Detection (YOLOv5 6.2): Detecting using actionnetv2
Logging level
Server Log
13:18:32:System: Windows
13:18:32:Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
13:18:32:CPUs: 13th Gen Intel(R) Core(TM) i7-1360P (Intel)
13:18:32: 1 CPU x 12 cores. 16 logical processors (x64)
13:18:32:GPU (Primary): Intel(R) Iris(R) Xe Graphics (128 MiB) (Intel Corporation)
13:18:32: Driver: 31.0.101.5333
13:18:32:System RAM: 32 GiB
13:18:32:Platform: Windows
13:18:32:BuildConfig: Release
13:18:32:Execution Env: Native
13:18:32:Runtime Env: Production
13:18:32:Runtimes installed:
13:18:32: .NET runtime: 7.0.7
13:18:32: .NET SDK: Not found
13:18:32: Default Python: Not found
13:18:32: Go: Not found
13:18:32: NodeJS: Not found
13:18:32:App DataDir: C:\ProgramData\CodeProject\AI
13:18:32:Video adapter info:
13:18:32: Intel(R) Iris(R) Xe Graphics:
13:18:32: Driver Version 31.0.101.5333
13:18:32: Video Processor Intel(R) Iris(R) Xe Graphics Family
13:18:32:STARTING CODEPROJECT.AI SERVER
13:18:32:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
13:18:32:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
13:18:32:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
13:18:32:PYTHON_PATH = \bin\windows\%PYTHON_NAME%\venv\Scripts\python
13:18:32:Data Dir = C:\ProgramData\CodeProject\AI
13:18:33:Server version: 2.5.6
13:18:36:
13:18:36:Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
13:18:36:Valid: True
13:18:36:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
13:18:36:AutoStart: True
13:18:36:Queue: objectdetection_queue
13:18:36:Runtime: python3.7
13:18:36:Runtime Loc: Shared
13:18:36:FilePath: detect_adapter.py
13:18:36:Pre installed: False
13:18:36:Start pause: 1 sec
13:18:36:Parallelism: 0
13:18:36:LogVerbosity:
13:18:36:Platforms: all,!raspberrypi,!jetson
13:18:36:GPU Libraries: installed if available
13:18:36:GPU Enabled: enabled
13:18:36:Accelerator:
13:18:36:Half Precis.: enable
13:18:36:Environment Variables
13:18:36:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
13:18:36:CPAI_MODULE_ENABLE_GPU = True
13:18:36:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
13:18:36:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
13:18:36:MODEL_SIZE = Medium
13:18:36:USE_CUDA = True
13:18:36:YOLOv5_AUTOINSTALL = false
13:18:36:YOLOv5_VERBOSE = false
13:18:36:
13:18:36:Started Object Detection (YOLOv5 6.2) module
13:18:38:Server: This is the latest version
13:18:41:Sending shutdown request to python/ObjectDetectionYOLOv5-6.2
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...c25b11) ['No objects found'] took 3328ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...ac0745) ['Found chair'] took 3336ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...6a90f4) ['Found chair'] took 3355ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...688c99) ['Found chair'] took 3375ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...286995) ['No objects found'] took 3389ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...900079) ['Found chair'] took 3452ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...b71487) ['No objects found'] took 3451ms
13:18:43:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...ac22f4) ['Found bench, chair'] took 3475ms
13:18:44:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...91c4ee) ['No objects found'] took 1236ms
13:18:44:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...90fb4e) ['No objects found'] took 1227ms
13:18:44:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...2dcaf4) ['No objects found'] took 1265ms
13:18:44:detect_adapter.py: Object Detection (YOLOv5 6.2) started.
13:18:44:detect_adapter.py: Inference processing will occur on device 'CPU'
13:18:44:detect_adapter.py: Retrieved objectdetection_queue command 'custom'
13:18:44:detect_adapter.py: Retrieved objectdetection_queue command 'custom'
13:18:44:detect_adapter.py: Error sending response: Server disconnected
13:18:44:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...8432d6) ['Found boat'] took 1098ms
13:18:45:Module ObjectDetectionYOLOv5-6.2 has shutdown
13:18:45:detect_adapter.py: has exited
13:19:14:ObjectDetectionYOLOv5-6.2 went quietly
13:19:14:
13:19:14:Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
13:19:14:Valid: True
13:19:14:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
13:19:14:AutoStart: True
13:19:14:Queue: objectdetection_queue
13:19:14:Runtime: python3.7
13:19:14:Runtime Loc: Shared
13:19:14:FilePath: detect_adapter.py
13:19:14:Pre installed: False
13:19:14:Start pause: 1 sec
13:19:14:Parallelism: 0
13:19:14:LogVerbosity:
13:19:14:Platforms: all,!raspberrypi,!jetson
13:19:14:GPU Libraries: installed if available
13:19:14:GPU Enabled: enabled
13:19:14:Accelerator:
13:19:14:Half Precis.: enable
13:19:14:Environment Variables
13:19:14:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
13:19:14:CPAI_MODULE_ENABLE_GPU = True
13:19:14:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
13:19:14:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
13:19:14:MODEL_SIZE = Medium
13:19:14:USE_CUDA = True
13:19:14:YOLOv5_AUTOINSTALL = false
13:19:14:YOLOv5_VERBOSE = false
13:19:14:
13:19:14:Started Object Detection (YOLOv5 6.2) module
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...54fbdb) ['No objects found'] took 3509ms
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...c59ae0) ['Found bench, tv, dining table'] took 3573ms
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...b64e6b) ['No objects found'] took 3637ms
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...de96f4) ['No objects found'] took 3547ms
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...2a1e1a) ['Found truck, boat'] took 3472ms
13:19:21:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...1ceb20) ['No objects found'] took 3736ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...cfac6a) ['No objects found'] took 2385ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...6b7179) ['No objects found'] took 2442ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...263a42) ['No objects found'] took 2440ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...7bbed0) ['No objects found'] took 2400ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...3026a3) ['No objects found'] took 2378ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...c31481) ['No objects found'] took 2368ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...5511d6) ['No objects found'] took 2455ms
13:19:24:Response rec'd from Object Detection (YOLOv5 6.2) command 'detect' (...2d19bd) ['No objects found'] took 2523ms
13:19:24:Object Detection (YOLOv5 6.2): Detecting using actionnetv2
Logging level
Info
In
System Info
Server version: 2.5.6
System: Windows
Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
CPUs: 13th Gen Intel(R) Core(TM) i7-1360P (Intel)
1 CPU x 12 cores. 16 logical processors (x64)
GPU (Primary): Intel(R) Iris(R) Xe Graphics (128 MiB) (Intel Corporation)
Driver: 31.0.101.5333
System RAM: 32 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.7
.NET SDK: Not found
Default Python: Not found
Go: Not found
NodeJS: Not found
Video adapter info:
Intel(R) Iris(R) Xe Graphics:
Driver Version 31.0.101.5333
Video Processor Intel(R) Iris(R) Xe Graphics Family
System GPU info:
GPU 3D Usage 5%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
modified 2-Apr-24 14:39pm.
|
|
|
|
|
The restarts are because you have Auto start/stop with Blue Iris checked, uncheck this.
Also you may want to try the Object Detection (YOLOv5 .NET) module, this will use your Intel(R) Iris(R) Xe GPU and should be faster.
|
|
|
|
|
Thanks for your help. I'll make those changes.
|
|
|
|
|
I made the changes you suggested. The server is running but no detection is taking place with yolo5.net installed. Am I missing some components?
12:34:35:System: Windows
12:34:35:Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
12:34:35:CPUs: 13th Gen Intel(R) Core(TM) i7-1360P (Intel)
12:34:35: 1 CPU x 12 cores. 16 logical processors (x64)
12:34:35:GPU (Primary): Intel(R) Iris(R) Xe Graphics (128 MiB) (Intel Corporation)
12:34:35: Driver: 31.0.101.5333
12:34:35:System RAM: 32 GiB
12:34:35:Platform: Windows
12:34:35:BuildConfig: Release
12:34:35:Execution Env: Native
12:34:35:Runtime Env: Production
12:34:35:Runtimes installed:
12:34:35: .NET runtime: 7.0.7
12:34:35: .NET SDK: Not found
12:34:35: Default Python: Not found
12:34:35: Go: Not found
12:34:35: NodeJS: Not found
12:34:35:App DataDir: C:\ProgramData\CodeProject\AI
12:34:35:Video adapter info:
12:34:35: Intel(R) Iris(R) Xe Graphics:
12:34:35: Driver Version 31.0.101.5333
12:34:35: Video Processor Intel(R) Iris(R) Xe Graphics Family
12:34:35:STARTING CODEPROJECT.AI SERVER
12:34:35:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
12:34:35:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
12:34:35:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
12:34:35:PYTHON_PATH = \bin\windows\%PYTHON_NAME%\venv\Scripts\python
12:34:35:Data Dir = C:\ProgramData\CodeProject\AI
12:34:35:Server version: 2.5.6
12:34:40:Server: This is the latest version
|
|
|
|
|
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.
|
|
|
|
|