|
Here is the config:
Server version: 2.6.5
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Intel)
1 CPU x 4 cores. 4 logical processors (x64)
GPU (Primary): Quadro P620 (2 GiB) (NVIDIA)
Driver: 516.94, CUDA: 11.7.64 (up to: 11.7), Compute: 6.1, cuDNN: 8.5
System RAM: 32 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.20
.NET SDK: Not found
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
NVIDIA Quadro P620:
Driver Version 31.0.15.1694
Video Processor Quadro P620
Intel(R) HD Graphics 530:
Driver Version 30.0.101.1692
Video Processor Intel(R) HD Graphics Family
System GPU info:
GPU 3D Usage 6%
GPU RAM Usage 1.3 GiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Found the issue: we had bad compatibility settings. In about 5 mins your module install dashboard should show a new version of the module. Update to it and you should be good.
cheers
Chris Maunder
|
|
|
|
|
Thank you! I can confirm superresolution 2.1.2 installs and runs... but 2 questions:
1) Should I see this in the log? :
0:12:43:Update SuperResolution. Setting AutoStart=true
10:12:43:Restarting Super Resolution to apply settings change
10:12:43:
10:12:43:Module 'Super Resolution' 2.1.2 (ID: SuperResolution)
10:12:43:Valid: True
10:12:43:Module Path: <root>\modules\SuperResolution
10:12:43:Module Location: Internal
10:12:43:AutoStart: True
10:12:43:Queue: superresolution_queue
10:12:43:Runtime: python3.9
10:12:43:Runtime Location: Local
10:12:43:FilePath: superres_adapter.py
10:12:43:Start pause: 0 sec
10:12:43:Parallelism: 1
10:12:43:LogVerbosity:
10:12:43:Platforms: all
10:12:43:GPU Libraries: not installed
10:12:43:GPU: do not use
10:12:43:Accelerator:
10:12:43:Half Precision: enable
10:12:43:Environment Variables
10:12:43:PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = python
10:12:43:
10:12:43:Started Super Resolution module
10:12:47:superres_adapter.py: Unable to load OpenCV or numpy modules. Only using PIL. Mainly wondering if "Unable to load OpenCV or numpy modules" is expected?
2) Should superres detect and use GPU?
thanks again!
|
|
|
|
|
I've updated almost all the modules to handle the breaking changes in Numpy 2.0. All new installs should be good to go.
Python devs: We made the decision to avoid pinning python module versions in the requirements.txt files where possible. In fact we try not to mess around at all with the requirements files in projects we include, since we work on the basis that the original author knows best.
This generally provides benefits when updates for the python modules are released - security, performance, functionality, hardware support. It does, however, mean we get caught by situations like Numpy. Their last major release was in 2006, but it goes to show even the most stable API can eventually break due to updates. However, there are lots of auxiliary module dependencies in python modules which result in a dependency lock from a module that's often only peripherally used in a module. The "kitchen sink" approach many python devs use breaks things.
What are your thoughts on pinning vs non-pinning (or pinning to a range)? I'd be interested to know what you consider best practices.
cheers
Chris Maunder
|
|
|
|
|
Both new install and/or trying to update my Coral module still results in NumPy errors on docker v2.6.5 for some reason.
On my windows instance. The update of the module seemed to go smoothly.
Below is the 'update' on docker
<pre>22:22:56:System: Docker (dd69fa90f735)
22:22:56:Operating System: Linux (Ubuntu 22.04)
22:22:56:CPUs: 13th Gen Intel(R) Core(TM) i5-13500 (Intel)
22:22:56: 1 CPU x 14 cores. 20 logical processors (x64)
22:22:56:System RAM: 126 GiB
22:22:56:Platform: Linux
22:22:56:BuildConfig: Release
22:22:56:Execution Env: Docker
22:22:56:Runtime Env: Production
22:22:56:Runtimes installed:
22:22:56: .NET runtime: 7.0.19
22:22:56: .NET SDK: Not found
22:22:56: Default Python: 3.10.12
22:22:56: Go: Not found
22:22:56: NodeJS: Not found
22:22:56: Rust: Not found
22:22:56:App DataDir: /etc/codeproject/ai
22:22:56:Video adapter info:
22:22:56:STARTING CODEPROJECT.AI SERVER
22:22:56:RUNTIMES_PATH = /app/runtimes
22:22:56:PREINSTALLED_MODULES_PATH = /app/preinstalled-modules
22:22:56:DEMO_MODULES_PATH = /app/src/demos/modules
22:22:56:EXTERNAL_MODULES_PATH =
22:22:56:MODULES_PATH = /app/modules
22:22:56:PYTHON_PATH = /bin/linux/%PYTHON_NAME%/venv/bin/python3
22:22:56:Data Dir = /etc/codeproject/ai
22:22:56:Starting mesh broadcasting
22:22:56:Starting mesh broadcast monitoring
22:22:56:Starting known mesh server pinging
22:22:56:Server version: 2.6.5
22:22:56:Overriding address(es) 'http://+:32168, http://+:5000'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.
22:22:59:
22:22:59:Module 'Face Processing' 1.10.2 (ID: FaceProcessing)
22:22:59:Valid: True
22:22:59:Module Path: <root>/preinstalled-modules/FaceProcessing
22:22:59:Module Location: PreInstalled
22:22:59:AutoStart: True
22:22:59:Queue: faceprocessing_queue
22:22:59:Runtime: python3.8
22:22:59:Runtime Location: System
22:22:59:FilePath: intelligencelayer/face.py
22:22:59:Start pause: 3 sec
22:22:59:Parallelism: 0
22:22:59:LogVerbosity:
22:22:59:Platforms: all,!jetson
22:22:59:GPU Libraries: installed if available
22:22:59:GPU: use if supported
22:22:59:Accelerator:
22:22:59:Half Precision: enable
22:22:59:Environment Variables
22:22:59:APPDIR = <root>/preinstalled-modules/FaceProcessing/intelligencelayer
22:22:59:DATA_DIR = /etc/codeproject/ai
22:22:59:MODE = MEDIUM
22:22:59:MODELS_DIR = <root>/preinstalled-modules/FaceProcessing/assets
22:22:59:PROFILE = desktop_gpu
22:22:59:USE_CUDA = True
22:22:59:YOLOv5_AUTOINSTALL = false
22:22:59:YOLOv5_VERBOSE = false
22:22:59:
22:22:59:Started Face Processing module
22:23:01:Server: This is the latest version
22:23:23:Preparing to install module 'ObjectDetectionCoral'
22:23:23:Downloading module 'ObjectDetectionCoral'
22:23:24:Installing module 'ObjectDetectionCoral'
22:23:24:ObjectDetectionCoral: Setting verbosity to quiet
22:23:24:ObjectDetectionCoral: Hi Docker! We will disable shared python installs for downloaded modules
22:23:24:ObjectDetectionCoral: (No schemas means: we can't detect if you're in light or dark mode)
22:23:24:ObjectDetectionCoral: Installing CodeProject.AI Analysis Module
22:23:24:ObjectDetectionCoral: ======================================================================
22:23:24:ObjectDetectionCoral: CodeProject.AI Installer
22:23:24:ObjectDetectionCoral: ======================================================================
22:23:24:ObjectDetectionCoral: 10.09 GiB of 66.06 GiB available on Docker
22:23:24:ObjectDetectionCoral: Installing xz-utils...
22:23:25:ObjectDetectionCoral: General CodeProject.AI setup
22:23:25:ObjectDetectionCoral: Setting permissions on runtimes folder...done
22:23:25:ObjectDetectionCoral: Setting permissions on downloads folder...done
22:23:25:ObjectDetectionCoral: Setting permissions on modules download folder...done
22:23:25:ObjectDetectionCoral: Setting permissions on models download folder...done
22:23:25:ObjectDetectionCoral: Setting permissions on persisted data folder...done
22:23:25:ObjectDetectionCoral: GPU support
22:23:25:ObjectDetectionCoral: CUDA (NVIDIA) Present: No
22:23:25:ObjectDetectionCoral: ROCm (AMD) Present: No
22:23:25:ObjectDetectionCoral: MPS (Apple) Present: No
22:23:26:ObjectDetectionCoral: Reading module settings.......done
22:23:26:ObjectDetectionCoral: Processing module ObjectDetectionCoral 2.3.1
22:23:26:ObjectDetectionCoral: Installing Python 3.9
22:23:26:ObjectDetectionCoral: Python 3.9 is already installed
22:23:33:ObjectDetectionCoral: Ensuring PIP in base python install... done
22:23:34:ObjectDetectionCoral: Upgrading PIP in base python install... done
22:23:34:ObjectDetectionCoral: Virtual Environment already present
22:23:34:ObjectDetectionCoral: Checking for Python 3.9...(Found Python 3.9.19) All good
22:23:37:ObjectDetectionCoral: Upgrading PIP in virtual environment... done
22:23:43:ObjectDetectionCoral: Installing updated setuptools in venv... done
22:23:45:ObjectDetectionCoral: Searching for gnupg...All good.
22:23:46:ObjectDetectionCoral: Downloading edge TPU runtime... already exists...Expanding... done.
22:23:46:ObjectDetectionCoral: Moving contents of edgetpu_runtime-20221024.zip to edgetpu_runtime...done.
22:23:46:ObjectDetectionCoral: Using the reduced operating frequency for Coral USB devices.
22:23:46:ObjectDetectionCoral: Installing Edge TPU runtime library [/usr/lib/x86_64-linux-gnu/libedgetpu.so.1.0]...
22:23:46:ObjectDetectionCoral: File already exists. Replacing it...
22:23:47:ObjectDetectionCoral: Done.
22:23:47:ObjectDetectionCoral: Installing Python packages for Object Detection (Coral)
22:23:47:ObjectDetectionCoral: Installing GPU-enabled libraries: If available
22:23:48:ObjectDetectionCoral: Searching for python3-pip...All good.
22:23:50:ObjectDetectionCoral: Ensuring PIP compatibility... done
22:23:50:ObjectDetectionCoral: Python packages will be specified by requirements.txt
22:23:51:ObjectDetectionCoral: - Installing NumPy, the fundamental package for array computing with Python....Already installed
22:23:52:Response timeout. Try increasing the timeout value
22:23:56:Unable to ping mesh server 'BLUEY'. Pausing pings temporarily.
22:23:56:ObjectDetectionCoral: - Installing Tensorflow Lite... (not checked) done
22:23:57:ObjectDetectionCoral: - Installing PyCoral...Already installed
22:23:58:ObjectDetectionCoral: - Installing Pillow, a Python Image Library...Already installed
22:24:07:ObjectDetectionCoral: - Installing the CodeProject.AI SDK... (✅ checked) done
22:24:07:ObjectDetectionCoral: Installing Python packages for the CodeProject.AI Server SDK
22:24:08:ObjectDetectionCoral: Searching for python3-pip...All good.
22:24:10:ObjectDetectionCoral: Ensuring PIP compatibility... done
22:24:10:ObjectDetectionCoral: Python packages will be specified by requirements.txt
22:24:11:ObjectDetectionCoral: - Installing Pillow, a Python Image Library...Already installed
22:24:12:ObjectDetectionCoral: - Installing Charset normalizer...Already installed
22:24:13:ObjectDetectionCoral: - Installing aiohttp, the Async IO HTTP library...Already installed
22:24:14:ObjectDetectionCoral: - Installing aiofiles, the Async IO Files library...Already installed
22:24:14:ObjectDetectionCoral: - Installing py-cpuinfo to allow us to query CPU info...Already installed
22:24:15:ObjectDetectionCoral: - Installing Requests, the HTTP library...Already installed
22:24:15:ObjectDetectionCoral: Scanning modulesettings for downloadable models...Processing model list
22:24:15:ObjectDetectionCoral: [objectdetection-mobilenet-large-edgetpu.zip]
22:24:15:ObjectDetectionCoral: End-of-central-directory signature not found. Either this file is not
22:24:15:ObjectDetectionCoral: a zipfile, or it constitutes one disk of a multi-part archive. In the
22:24:15:ObjectDetectionCoral: latter case the central directory and zipfile comment will be found on
22:24:15:ObjectDetectionCoral: the last disk(s) of this archive.
22:24:15:ObjectDetectionCoral: unzip: cannot find zipfile directory in one of objectdetection-mobilenet-large-edgetpu.zip or
22:24:15:ObjectDetectionCoral: objectdetection-mobilenet-large-edgetpu.zip.zip, and cannot find objectdetection-mobilenet-large-edgetpu.zip.ZIP, period.
22:24:16:ObjectDetectionCoral: Downloading MobileNet Large... already exists...Expanding... done.
22:24:16:ObjectDetectionCoral: Downloading MobileNet Medium... already exists...Expanding... done.
22:24:16:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-medium-edgetpu.zip to assets...done.
22:24:17:ObjectDetectionCoral: Downloading MobileNet Small... already exists...Expanding... done.
22:24:17:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-small-edgetpu.zip to assets...done.
22:24:17:ObjectDetectionCoral: Downloading MobileNet Tiny... already exists...Expanding... done.
22:24:17:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-tiny-edgetpu.zip to assets...done.
22:24:21:ObjectDetectionCoral: A module that was compiled using NumPy 1.x cannot be run in
22:24:21:ObjectDetectionCoral: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
22:24:21:ObjectDetectionCoral: versions of NumPy, modules must be compiled with NumPy 2.0.
22:24:21:ObjectDetectionCoral: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
22:24:21:ObjectDetectionCoral: If you are a user of the module, the easiest solution will be to
22:24:21:ObjectDetectionCoral: downgrade to 'numpy<2' or try to upgrade the affected module.
22:24:21:ObjectDetectionCoral: We expect that some modules will need time to support NumPy 2.
22:24:21:ObjectDetectionCoral: Traceback (most recent call last): File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 229, in
22:24:21:ObjectDetectionCoral: CoralObjectDetector_adapter().start_loop()
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 278, in start_loop
22:24:21:ObjectDetectionCoral: self.initialise()
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 45, in initialise
22:24:21:ObjectDetectionCoral: self.enable_GPU = self.system_info.hasCoralTPU
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/system_info.py", line 344, in hasCoralTPU
22:24:21:ObjectDetectionCoral: from pycoral.utils.edgetpu import list_edge_tpus
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
22:24:21:ObjectDetectionCoral: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
22:24:21:ObjectDetectionCoral: AttributeError: _ARRAY_API not found
22:24:21:ObjectDetectionCoral: A module that was compiled using NumPy 1.x cannot be run in
22:24:21:ObjectDetectionCoral: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
22:24:21:ObjectDetectionCoral: versions of NumPy, modules must be compiled with NumPy 2.0.
22:24:21:ObjectDetectionCoral: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
22:24:21:ObjectDetectionCoral: If you are a user of the module, the easiest solution will be to
22:24:21:ObjectDetectionCoral: downgrade to 'numpy<2' or try to upgrade the affected module.
22:24:21:ObjectDetectionCoral: We expect that some modules will need time to support NumPy 2.
22:24:21:ObjectDetectionCoral: Traceback (most recent call last): File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 229, in
22:24:21:ObjectDetectionCoral: CoralObjectDetector_adapter().start_loop()
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 278, in start_loop
22:24:21:ObjectDetectionCoral: self.initialise()
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 54, in initialise
22:24:21:ObjectDetectionCoral: import objectdetection_coral_multitpu as odcm
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_multitpu.py", line 51, in
22:24:21:ObjectDetectionCoral: from tpu_runner import TPURunner, INTERPRETER_LIFESPAN_SECONDS
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/tpu_runner.py", line 33, in
22:24:21:ObjectDetectionCoral: from pycoral.utils import edgetpu
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
22:24:21:ObjectDetectionCoral: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
22:24:21:ObjectDetectionCoral: AttributeError: _ARRAY_API not found
22:24:21:ObjectDetectionCoral: Traceback (most recent call last):
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 229, in
22:24:21:ObjectDetectionCoral: CoralObjectDetector_adapter().start_loop()
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 278, in start_loop
22:24:21:ObjectDetectionCoral: self.initialise()
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 54, in initialise
22:24:21:ObjectDetectionCoral: import objectdetection_coral_multitpu as odcm
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_multitpu.py", line 51, in
22:24:21:ObjectDetectionCoral: from tpu_runner import TPURunner, INTERPRETER_LIFESPAN_SECONDS
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/tpu_runner.py", line 33, in
22:24:21:ObjectDetectionCoral: from pycoral.utils import edgetpu
22:24:21:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
22:24:21:ObjectDetectionCoral: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
22:24:21:ObjectDetectionCoral: SystemError: initialization of _pywrap_coral raised unreported exception
22:24:21:ObjectDetectionCoral: Self test: Self-test failed
22:24:21:ObjectDetectionCoral: Module setup time 00:00:56
22:24:21:ObjectDetectionCoral: Setup complete
22:24:21:ObjectDetectionCoral: Total setup time 00:00:57
22:24:21:Module ObjectDetectionCoral installed successfully.
22:24:21:Module ObjectDetectionCoral not configured to AutoStart.
22:24:21:Installer exited with code 0
|
|
|
|
|
Can you try uninstalling Coral, then reinstalling? A numpy issue was fixed yesterday. If it's still present I'll have another kick of the can (though it was fixed in tests).
cheers
Chris Maunder
|
|
|
|
|
This is the 'fresh' install version of the error. The NumPy install fails some check
<pre>21:45:23:System: Docker (810c9aa56d9e)
21:45:23:Operating System: Linux (Ubuntu 22.04)
21:45:23:CPUs: 13th Gen Intel(R) Core(TM) i5-13500 (Intel)
21:45:23: 1 CPU x 14 cores. 20 logical processors (x64)
21:45:23:System RAM: 126 GiB
21:45:23:Platform: Linux
21:45:23:BuildConfig: Release
21:45:23:Execution Env: Docker
21:45:23:Runtime Env: Production
21:45:23:Runtimes installed:
21:45:23: .NET runtime: 7.0.19
21:45:23: .NET SDK: Not found
21:45:23: Default Python: 3.10.12
21:45:23: Go: Not found
21:45:23: NodeJS: Not found
21:45:23: Rust: Not found
21:45:23:App DataDir: /etc/codeproject/ai
21:45:23:Video adapter info:
21:45:23:STARTING CODEPROJECT.AI SERVER
21:45:23:RUNTIMES_PATH = /app/runtimes
21:45:23:PREINSTALLED_MODULES_PATH = /app/preinstalled-modules
21:45:23:DEMO_MODULES_PATH = /app/src/demos/modules
21:45:23:EXTERNAL_MODULES_PATH =
21:45:23:MODULES_PATH = /app/modules
21:45:23:PYTHON_PATH = /bin/linux/%PYTHON_NAME%/venv/bin/python3
21:45:23:Data Dir = /etc/codeproject/ai
21:45:23:Server version: 2.6.5
21:45:23:Overriding address(es) 'http://+:32168, http://+:5000'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.
21:45:26:
21:45:26:Module 'Face Processing' 1.10.2 (ID: FaceProcessing)
21:45:26:Valid: True
21:45:26:Module Path: <root>/preinstalled-modules/FaceProcessing
21:45:26:Module Location: PreInstalled
21:45:26:AutoStart: True
21:45:26:Queue: faceprocessing_queue
21:45:26:Runtime: python3.8
21:45:26:Runtime Location: System
21:45:26:FilePath: intelligencelayer/face.py
21:45:26:Start pause: 3 sec
21:45:26:Parallelism: 0
21:45:26:LogVerbosity:
21:45:26:Platforms: all,!jetson
21:45:26:GPU Libraries: installed if available
21:45:26:GPU: use if supported
21:45:26:Accelerator:
21:45:26:Half Precision: enable
21:45:26:Environment Variables
21:45:26:APPDIR = <root>/preinstalled-modules/FaceProcessing/intelligencelayer
21:45:26:DATA_DIR = /etc/codeproject/ai
21:45:26:MODE = MEDIUM
21:45:26:MODELS_DIR = <root>/preinstalled-modules/FaceProcessing/assets
21:45:26:PROFILE = desktop_gpu
21:45:26:USE_CUDA = True
21:45:26:YOLOv5_AUTOINSTALL = false
21:45:26:YOLOv5_VERBOSE = false
21:45:26:
21:45:26:Started Face Processing module
21:45:29:Server: This is the latest version
21:45:51:Update FaceProcessing. Setting AutoStart=false
21:45:51:Stopping Face Processing
21:45:51:Sending shutdown request to pt_main_thread/FaceProcessing
21:46:01:face.py: Face Processing started.
21:46:01:Module FaceProcessing has shutdown
21:46:10:Preparing to install module 'ObjectDetectionCoral'
21:46:10:Downloading module 'ObjectDetectionCoral'
21:46:11:Installing module 'ObjectDetectionCoral'
21:46:11:ObjectDetectionCoral: Setting verbosity to quiet
21:46:11:ObjectDetectionCoral: Hi Docker! We will disable shared python installs for downloaded modules
21:46:11:ObjectDetectionCoral: (No schemas means: we can't detect if you're in light or dark mode)
21:46:11:ObjectDetectionCoral: Installing CodeProject.AI Analysis Module
21:46:11:ObjectDetectionCoral: ======================================================================
21:46:11:ObjectDetectionCoral: CodeProject.AI Installer
21:46:11:ObjectDetectionCoral: ======================================================================
21:46:11:ObjectDetectionCoral: 17.01 GiB of 66.06 GiB available on Docker
21:46:11:ObjectDetectionCoral: Installing xz-utils...
21:46:12:ObjectDetectionCoral: General CodeProject.AI setup
21:46:12:ObjectDetectionCoral: Setting permissions on runtimes folder...done
21:46:12:ObjectDetectionCoral: Setting permissions on downloads folder...done
21:46:12:ObjectDetectionCoral: Setting permissions on modules download folder...done
21:46:12:ObjectDetectionCoral: Setting permissions on models download folder...done
21:46:12:ObjectDetectionCoral: Setting permissions on persisted data folder...done
21:46:12:ObjectDetectionCoral: GPU support
21:46:12:ObjectDetectionCoral: CUDA (NVIDIA) Present: No
21:46:12:ObjectDetectionCoral: ROCm (AMD) Present: No
21:46:12:ObjectDetectionCoral: MPS (Apple) Present: No
21:46:12:ObjectDetectionCoral: Reading module settings.......done
21:46:12:ObjectDetectionCoral: Processing module ObjectDetectionCoral 2.3.1
21:46:12:ObjectDetectionCoral: Installing Python 3.9
21:46:12:ObjectDetectionCoral: Python 3.9 is already installed
21:46:17:ObjectDetectionCoral: Ensuring PIP in base python install... done
21:46:18:ObjectDetectionCoral: Upgrading PIP in base python install... done
21:46:18:ObjectDetectionCoral: Installing Virtual Environment tools for Linux...
21:46:20:ObjectDetectionCoral: Searching for python3-pip python3-setuptools python3.9...All good.
21:46:24:FaceProcessing went quietly
21:46:25:ObjectDetectionCoral: Creating Virtual Environment (Local)... done
21:46:25:ObjectDetectionCoral: Checking for Python 3.9...(Found Python 3.9.19) All good
21:46:33:ObjectDetectionCoral: Upgrading PIP in virtual environment... done
21:46:36:ObjectDetectionCoral: Installing updated setuptools in venv... done
21:46:37:ObjectDetectionCoral: Searching for gnupg...All good.
21:46:38:ObjectDetectionCoral: Downloading edge TPU runtime... already exists...Expanding... done.
21:46:38:ObjectDetectionCoral: Moving contents of edgetpu_runtime-20221024.zip to edgetpu_runtime...done.
21:46:38:ObjectDetectionCoral: Using the reduced operating frequency for Coral USB devices.
21:46:38:ObjectDetectionCoral: Installing Edge TPU runtime library [/usr/lib/x86_64-linux-gnu/libedgetpu.so.1.0]...
21:46:38:ObjectDetectionCoral: File already exists. Replacing it...
21:46:38:ObjectDetectionCoral: Done.
21:46:38:ObjectDetectionCoral: Installing Python packages for Object Detection (Coral)
21:46:38:ObjectDetectionCoral: Installing GPU-enabled libraries: If available
21:46:39:ObjectDetectionCoral: Searching for python3-pip...All good.
21:46:40:ObjectDetectionCoral: Ensuring PIP compatibility... done
21:46:40:ObjectDetectionCoral: Python packages will be specified by requirements.txt
21:46:40:Response timeout. Try increasing the timeout value
21:46:41:ObjectDetectionCoral: - Installing NumPy, the fundamental package for array computing with Python.... (❌ failed check) done
21:46:47:ObjectDetectionCoral: - Installing Tensorflow Lite... (not checked) done
21:46:54:ObjectDetectionCoral: - Installing PyCoral... (✅ checked) done
21:46:54:ObjectDetectionCoral: - Installing Pillow, a Python Image Library...Already installed
21:46:58:ObjectDetectionCoral: - Installing the CodeProject.AI SDK... (✅ checked) done
21:46:58:ObjectDetectionCoral: Installing Python packages for the CodeProject.AI Server SDK
21:46:59:ObjectDetectionCoral: Searching for python3-pip...All good.
21:47:00:ObjectDetectionCoral: Ensuring PIP compatibility... done
21:47:00:ObjectDetectionCoral: Python packages will be specified by requirements.txt
21:47:01:ObjectDetectionCoral: - Installing Pillow, a Python Image Library...Already installed
21:47:01:ObjectDetectionCoral: - Installing Charset normalizer...Already installed
21:47:02:ObjectDetectionCoral: - Installing aiohttp, the Async IO HTTP library...Already installed
21:47:02:ObjectDetectionCoral: - Installing aiofiles, the Async IO Files library...Already installed
21:47:03:ObjectDetectionCoral: - Installing py-cpuinfo to allow us to query CPU info...Already installed
21:47:03:ObjectDetectionCoral: - Installing Requests, the HTTP library...Already installed
21:47:03:ObjectDetectionCoral: Scanning modulesettings for downloadable models...Processing model list
21:47:04:ObjectDetectionCoral: Downloading MobileNet Large... already exists...Expanding... done.
21:47:04:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-large-edgetpu.zip to assets...done.
21:47:04:ObjectDetectionCoral: Downloading MobileNet Medium... already exists...Expanding... done.
21:47:04:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-medium-edgetpu.zip to assets...done.
21:47:05:ObjectDetectionCoral: Downloading MobileNet Small... already exists...Expanding... done.
21:47:05:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-small-edgetpu.zip to assets...done.
21:47:05:ObjectDetectionCoral: Downloading MobileNet Tiny... already exists...Expanding... done.
21:47:05:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-tiny-edgetpu.zip to assets...done.
21:47:08:ObjectDetectionCoral: A module that was compiled using NumPy 1.x cannot be run in
21:47:08:ObjectDetectionCoral: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
21:47:08:ObjectDetectionCoral: versions of NumPy, modules must be compiled with NumPy 2.0.
21:47:08:ObjectDetectionCoral: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
21:47:08:ObjectDetectionCoral: If you are a user of the module, the easiest solution will be to
21:47:08:ObjectDetectionCoral: downgrade to 'numpy<2' or try to upgrade the affected module.
21:47:08:ObjectDetectionCoral: We expect that some modules will need time to support NumPy 2.
21:47:08:ObjectDetectionCoral: Traceback (most recent call last): File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 229, in
21:47:08:ObjectDetectionCoral: CoralObjectDetector_adapter().start_loop()
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 278, in start_loop
21:47:08:ObjectDetectionCoral: self.initialise()
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 45, in initialise
21:47:08:ObjectDetectionCoral: self.enable_GPU = self.system_info.hasCoralTPU
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/system_info.py", line 344, in hasCoralTPU
21:47:08:ObjectDetectionCoral: from pycoral.utils.edgetpu import list_edge_tpus
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
21:47:08:ObjectDetectionCoral: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
21:47:08:ObjectDetectionCoral: AttributeError: _ARRAY_API not found
21:47:08:ObjectDetectionCoral: A module that was compiled using NumPy 1.x cannot be run in
21:47:08:ObjectDetectionCoral: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
21:47:08:ObjectDetectionCoral: versions of NumPy, modules must be compiled with NumPy 2.0.
21:47:08:ObjectDetectionCoral: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
21:47:08:ObjectDetectionCoral: If you are a user of the module, the easiest solution will be to
21:47:08:ObjectDetectionCoral: downgrade to 'numpy<2' or try to upgrade the affected module.
21:47:08:ObjectDetectionCoral: We expect that some modules will need time to support NumPy 2.
21:47:08:ObjectDetectionCoral: Traceback (most recent call last): File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 229, in
21:47:08:ObjectDetectionCoral: CoralObjectDetector_adapter().start_loop()
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 278, in start_loop
21:47:08:ObjectDetectionCoral: self.initialise()
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 54, in initialise
21:47:08:ObjectDetectionCoral: import objectdetection_coral_multitpu as odcm
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_multitpu.py", line 51, in
21:47:08:ObjectDetectionCoral: from tpu_runner import TPURunner, INTERPRETER_LIFESPAN_SECONDS
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/tpu_runner.py", line 33, in
21:47:08:ObjectDetectionCoral: from pycoral.utils import edgetpu
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
21:47:08:ObjectDetectionCoral: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
21:47:08:ObjectDetectionCoral: AttributeError: _ARRAY_API not found
21:47:08:ObjectDetectionCoral: Traceback (most recent call last):
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 229, in
21:47:08:ObjectDetectionCoral: CoralObjectDetector_adapter().start_loop()
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 278, in start_loop
21:47:08:ObjectDetectionCoral: self.initialise()
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 54, in initialise
21:47:08:ObjectDetectionCoral: import objectdetection_coral_multitpu as odcm
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_multitpu.py", line 51, in
21:47:08:ObjectDetectionCoral: from tpu_runner import TPURunner, INTERPRETER_LIFESPAN_SECONDS
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/tpu_runner.py", line 33, in
21:47:08:ObjectDetectionCoral: from pycoral.utils import edgetpu
21:47:08:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
21:47:08:ObjectDetectionCoral: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
21:47:08:ObjectDetectionCoral: SystemError: initialization of _pywrap_coral raised unreported exception
21:47:08:ObjectDetectionCoral: Self test: Self-test failed
21:47:08:ObjectDetectionCoral: Module setup time 00:00:56
21:47:08:ObjectDetectionCoral: Setup complete
21:47:08:ObjectDetectionCoral: Total setup time 00:00:57
21:47:08:Module ObjectDetectionCoral installed successfully.
21:47:08:Installer exited with code 0
21:47:08:Module ObjectDetectionCoral not configured to AutoStart.
|
|
|
|
|
We made a fix elsewhere that may have resolved this. Can you please check to see if a new version of the Coral module is available? If so, please try that one.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Issue appears the same with update and fresh install of module 2.3.2
First issues seems to be
Installing NumPy, the fundamental package for array computing with Python.... (❌ failed check) done
<pre>07:54:35:Preparing to install module 'ObjectDetectionCoral'
07:54:35:Downloading module 'ObjectDetectionCoral'
07:54:36:Installing module 'ObjectDetectionCoral'
07:54:36:ObjectDetectionCoral: Setting verbosity to quiet
07:54:36:ObjectDetectionCoral: Hi Docker! We will disable shared python installs for downloaded modules
07:54:36:ObjectDetectionCoral: (No schemas means: we can't detect if you're in light or dark mode)
07:54:36:ObjectDetectionCoral: Installing CodeProject.AI Analysis Module
07:54:36:ObjectDetectionCoral: ======================================================================
07:54:36:ObjectDetectionCoral: CodeProject.AI Installer
07:54:36:ObjectDetectionCoral: ======================================================================
07:54:36:ObjectDetectionCoral: 16.03 GiB of 66.06 GiB available on Docker
07:54:36:ObjectDetectionCoral: Installing xz-utils...
07:54:37:ObjectDetectionCoral: General CodeProject.AI setup
07:54:37:ObjectDetectionCoral: Setting permissions on runtimes folder...done
07:54:37:ObjectDetectionCoral: Setting permissions on downloads folder...done
07:54:37:ObjectDetectionCoral: Setting permissions on modules download folder...done
07:54:37:ObjectDetectionCoral: Setting permissions on models download folder...done
07:54:37:ObjectDetectionCoral: Setting permissions on persisted data folder...done
07:54:37:ObjectDetectionCoral: GPU support
07:54:37:ObjectDetectionCoral: CUDA (NVIDIA) Present: No
07:54:37:ObjectDetectionCoral: ROCm (AMD) Present: No
07:54:37:ObjectDetectionCoral: MPS (Apple) Present: No
07:54:37:ObjectDetectionCoral: Reading module settings.......done
07:54:37:ObjectDetectionCoral: Processing module ObjectDetectionCoral 2.3.2
07:54:37:ObjectDetectionCoral: Installing Python 3.9
07:54:37:ObjectDetectionCoral: Python 3.9 is already installed
07:54:41:ObjectDetectionCoral: Ensuring PIP in base python install... done
07:54:42:ObjectDetectionCoral: Upgrading PIP in base python install... done
07:54:42:ObjectDetectionCoral: Installing Virtual Environment tools for Linux...
07:54:44:ObjectDetectionCoral: Searching for python3-pip python3-setuptools python3.9...All good.
07:54:49:ObjectDetectionCoral: Creating Virtual Environment (Local)... done
07:54:49:ObjectDetectionCoral: Checking for Python 3.9...(Found Python 3.9.19) All good
07:54:54:ObjectDetectionYOLOv5Net went quietly
07:54:57:ObjectDetectionCoral: Upgrading PIP in virtual environment... done
07:55:00:ObjectDetectionCoral: Installing updated setuptools in venv... done
07:55:01:ObjectDetectionCoral: Searching for gnupg...All good.
07:55:02:ObjectDetectionCoral: Downloading edge TPU runtime... already exists...Expanding... done.
07:55:02:ObjectDetectionCoral: Moving contents of edgetpu_runtime-20221024.zip to edgetpu_runtime...done.
07:55:02:ObjectDetectionCoral: Using the reduced operating frequency for Coral USB devices.
07:55:02:ObjectDetectionCoral: Installing Edge TPU runtime library [/usr/lib/x86_64-linux-gnu/libedgetpu.so.1.0]...
07:55:02:ObjectDetectionCoral: File already exists. Replacing it...
07:55:02:ObjectDetectionCoral: Done.
07:55:02:ObjectDetectionCoral: Installing Python packages for Object Detection (Coral)
07:55:02:ObjectDetectionCoral: Installing GPU-enabled libraries: If available
07:55:03:ObjectDetectionCoral: Searching for python3-pip...All good.
07:55:04:ObjectDetectionCoral: Ensuring PIP compatibility... done
07:55:04:ObjectDetectionCoral: Python packages will be specified by requirements.txt
07:55:05:Response timeout. Try increasing the timeout value
07:55:05:ObjectDetectionCoral: - Installing NumPy, the fundamental package for array computing with Python.... (❌ failed check) done
07:55:13:ObjectDetectionCoral: - Installing Tensorflow Lite... (not checked) done
07:55:19:ObjectDetectionCoral: - Installing PyCoral... (✅ checked) done
07:55:20:ObjectDetectionCoral: - Installing Pillow, a Python Image Library...Already installed
07:55:25:ObjectDetectionCoral: - Installing the CodeProject.AI SDK... (✅ checked) done
07:55:25:ObjectDetectionCoral: Installing Python packages for the CodeProject.AI Server SDK
07:55:26:ObjectDetectionCoral: Searching for python3-pip...All good.
07:55:27:ObjectDetectionCoral: Ensuring PIP compatibility... done
07:55:27:ObjectDetectionCoral: Python packages will be specified by requirements.txt
07:55:27:ObjectDetectionCoral: - Installing Pillow, a Python Image Library...Already installed
07:55:28:ObjectDetectionCoral: - Installing Charset normalizer...Already installed
07:55:28:ObjectDetectionCoral: - Installing aiohttp, the Async IO HTTP library...Already installed
07:55:29:ObjectDetectionCoral: - Installing aiofiles, the Async IO Files library...Already installed
07:55:29:ObjectDetectionCoral: - Installing py-cpuinfo to allow us to query CPU info...Already installed
07:55:29:ObjectDetectionCoral: - Installing Requests, the HTTP library...Already installed
07:55:29:ObjectDetectionCoral: Scanning modulesettings for downloadable models...Processing model list
07:55:30:ObjectDetectionCoral: Downloading MobileNet Large... already exists...Expanding... done.
07:55:30:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-large-edgetpu.zip to assets...done.
07:55:31:ObjectDetectionCoral: Downloading MobileNet Medium... already exists...Expanding... done.
07:55:31:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-medium-edgetpu.zip to assets...done.
07:55:31:ObjectDetectionCoral: Downloading MobileNet Small... already exists...Expanding... done.
07:55:31:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-small-edgetpu.zip to assets...done.
07:55:32:ObjectDetectionCoral: Downloading MobileNet Tiny... already exists...Expanding... done.
07:55:32:ObjectDetectionCoral: Moving contents of objectdetection-mobilenet-tiny-edgetpu.zip to assets...done.
07:55:34:ObjectDetectionCoral: A module that was compiled using NumPy 1.x cannot be run in
07:55:34:ObjectDetectionCoral: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
07:55:34:ObjectDetectionCoral: versions of NumPy, modules must be compiled with NumPy 2.0.
07:55:34:ObjectDetectionCoral: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
07:55:34:ObjectDetectionCoral: If you are a user of the module, the easiest solution will be to
07:55:34:ObjectDetectionCoral: downgrade to 'numpy<2' or try to upgrade the affected module.
07:55:34:ObjectDetectionCoral: We expect that some modules will need time to support NumPy 2.
07:55:34:ObjectDetectionCoral: Traceback (most recent call last): File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 229, in
07:55:34:ObjectDetectionCoral: CoralObjectDetector_adapter().start_loop()
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 278, in start_loop
07:55:34:ObjectDetectionCoral: self.initialise()
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 45, in initialise
07:55:34:ObjectDetectionCoral: self.enable_GPU = self.system_info.hasCoralTPU
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/system_info.py", line 344, in hasCoralTPU
07:55:34:ObjectDetectionCoral: from pycoral.utils.edgetpu import list_edge_tpus
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
07:55:34:ObjectDetectionCoral: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
07:55:34:ObjectDetectionCoral: AttributeError: _ARRAY_API not found
07:55:34:ObjectDetectionCoral: A module that was compiled using NumPy 1.x cannot be run in
07:55:34:ObjectDetectionCoral: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
07:55:34:ObjectDetectionCoral: versions of NumPy, modules must be compiled with NumPy 2.0.
07:55:34:ObjectDetectionCoral: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
07:55:34:ObjectDetectionCoral: If you are a user of the module, the easiest solution will be to
07:55:34:ObjectDetectionCoral: downgrade to 'numpy<2' or try to upgrade the affected module.
07:55:34:ObjectDetectionCoral: We expect that some modules will need time to support NumPy 2.
07:55:34:ObjectDetectionCoral: Traceback (most recent call last): File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 229, in
07:55:34:ObjectDetectionCoral: CoralObjectDetector_adapter().start_loop()
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 278, in start_loop
07:55:34:ObjectDetectionCoral: self.initialise()
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 54, in initialise
07:55:34:ObjectDetectionCoral: import objectdetection_coral_multitpu as odcm
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_multitpu.py", line 51, in
07:55:34:ObjectDetectionCoral: from tpu_runner import TPURunner, INTERPRETER_LIFESPAN_SECONDS
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/tpu_runner.py", line 33, in
07:55:34:ObjectDetectionCoral: from pycoral.utils import edgetpu
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
07:55:34:ObjectDetectionCoral: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
07:55:34:ObjectDetectionCoral: AttributeError: _ARRAY_API not found
07:55:34:ObjectDetectionCoral: Traceback (most recent call last):
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 229, in
07:55:34:ObjectDetectionCoral: CoralObjectDetector_adapter().start_loop()
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 278, in start_loop
07:55:34:ObjectDetectionCoral: self.initialise()
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 54, in initialise
07:55:34:ObjectDetectionCoral: import objectdetection_coral_multitpu as odcm
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/objectdetection_coral_multitpu.py", line 51, in
07:55:34:ObjectDetectionCoral: from tpu_runner import TPURunner, INTERPRETER_LIFESPAN_SECONDS
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/tpu_runner.py", line 33, in
07:55:34:ObjectDetectionCoral: from pycoral.utils import edgetpu
07:55:34:ObjectDetectionCoral: File "/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
07:55:34:ObjectDetectionCoral: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
07:55:34:ObjectDetectionCoral: SystemError: initialization of _pywrap_coral raised unreported exception
07:55:34:ObjectDetectionCoral: Self test: Self-test failed
07:55:34:ObjectDetectionCoral: Module setup time 00:00:57
07:55:34:ObjectDetectionCoral: Setup complete
07:55:34:ObjectDetectionCoral: Total setup time 00:00:58
07:55:34:Module ObjectDetectionCoral installed successfully.
07:55:34:Installer exited with code 0
07:55:34:Module ObjectDetectionCoral not configured to AutoStart.
|
|
|
|
|
New module uploaded. Can you please try now?
cheers
Chris Maunder
|
|
|
|
|
Success! Update to 2.3.3 worked first go. Now running Multi-TPU on docker (UnRaid) just fine
Thank you!
23:30:41:ObjectDetectionCoral: - Installing NumPy, the fundamental package for array computing with Python.... (✅ checked) done
23:31:10:ObjectDetectionCoral: Self test: Self-test passed
|
|
|
|
|
It seems to be stuck.
I've already reinstalled and restarted the installation program and computer several times.
|
|
|
|
|
CodeProject.AI server seems to be running. Have you tested using the explorer? (blue button top centre)
Do you have Blue Iris running? If so, what's it doing and have you checked out the Blue Iris support forums?
cheers
Chris Maunder
|
|
|
|
|
Issue:
Installation default is Python 3.9 which apparently comes in with Numpy 2.x while Yolov8 module install expect Numpy (1.2.x)
Impact
Unable to use Yolov8 and broke my Blue Iris AI detection
Request
> Please fix the module install
What I have tried:
Hack / My workaround - .bat/.json update
> Made a change in the setup.bat - hard coded 3.8 for python version
> Made a change in the yolov8 modulesettings.windows.json - hard coded python3.8 for launch setting runtime
This brought it back to the previous Python version / Numpy 1.2.x
Everything is back operational
Very appreciative of the platform -- Nicely integrates with Blue Iris
Allo!
|
|
|
|
|
Running CPAI on Proxmox/LXC/Docker with M.2 Coral TPU and BlueIris on the same host Win11 VM.
BI is reporting "AI: Error 500" 50% of the time on success detection and "AI: Error 400" when nothing is detected also 50% of the time.
Now I've seen Blue Iris Webcam Software - CodeProject.AI Server v2.6.2 but I'm running BI Release 5.9.3.2 x64 (2024-06-13) so I think this is not related. Also, in BI AI analysis logs I see a lot of "error:"Unable to run inference: There is at least 1 reference to internal data in the interpreter in the form of a numpy array or slice. Be sure to only hold the function returned" but I can't figure what it is.
Average detection time on CPAI is sub 80ms. BI is configured to send 5 pre and 5 post images for analysis with 200ms delay.
Any suggestions ?
CPAI Details:
06:16:12:System: Docker (CodeProject)
06:16:12:Operating System: Linux (Ubuntu 22.04)
06:16:12:CPUs: 13th Gen Intel(R) Core(TM) i9-13900H (Intel)
06:16:12: 1 CPU x 14 cores. 20 logical processors (x64)
06:16:12:System RAM: 94 GiB
06:16:12:Platform: Linux
06:16:12:BuildConfig: Release
06:16:12:Execution Env: Docker
06:16:12:Runtime Env: Production
06:16:12:Runtimes installed:
06:16:12: .NET runtime: 7.0.19
06:16:12: .NET SDK: Not found
06:16:12: Default Python: 3.10.12
06:16:12: Go: Not found
06:16:12: NodeJS: Not found
06:16:12: Rust: Not found
06:16:12:App DataDir: /etc/codeproject/ai
06:16:12:Video adapter info:
06:16:12:STARTING CODEPROJECT.AI SERVER
06:16:12:RUNTIMES_PATH = /app/runtimes
06:16:12:PREINSTALLED_MODULES_PATH = /app/preinstalled-modules
06:16:12:DEMO_MODULES_PATH = /app/src/demos/modules
06:16:12:EXTERNAL_MODULES_PATH =
06:16:12:MODULES_PATH = /app/modules
06:16:12:PYTHON_PATH = /bin/linux/%PYTHON_NAME%/venv/bin/python3
06:16:12:Data Dir = /etc/codeproject/ai
06:16:12:Server version: 2.6.5
06:16:12:Overriding address(es) 'http://+:32168, http://+:5000'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.
06:16:15:
06:16:15:Module 'Object Detection (Coral)' 2.2.2 (ID: ObjectDetectionCoral)
06:16:15:Valid: True
06:16:15:Module Path: <root>/modules/ObjectDetectionCoral
06:16:15:Module Location: Internal
06:16:15:AutoStart: True
06:16:15:Queue: objectdetection_queue
06:16:15:Runtime: python3.9
06:16:15:Runtime Location: Local
06:16:15:FilePath: objectdetection_coral_adapter.py
06:16:15:Start pause: 1 sec
06:16:15:Parallelism: 16
06:16:15:LogVerbosity:
06:16:15:Platforms: all
06:16:15:GPU Libraries: installed if available
06:16:15:GPU: do not use
06:16:15:Accelerator:
06:16:15:Half Precision: Enable
06:16:15:Environment Variables
06:16:15:CPAI_CORAL_MODEL_NAME = MobileNet SSD
06:16:15:CPAI_CORAL_MULTI_TPU = true
06:16:15:MODELS_DIR = <root>/modules/ObjectDetectionCoral/assets
06:16:15:MODEL_SIZE = Tiny
|
|
|
|
|
Sounds like a Coral issue which, I'm afraid, is all too common on Windows.
I would honestly stick to the .NET Object detector for Windows. It uses DirectML so takes advantage of whatever hardware is present, and is reliable.
cheers
Chris Maunder
|
|
|
|
|
My Coral instance is running on the prebuilt linux docker.
06:16:12:System: Docker (CodeProject)
06:16:12:Operating System: Linux (Ubuntu 22.04)
06:16:12:CPUs: 13th Gen Intel(R) Core(TM) i9-13900H (Intel)
06:16:12: 1 CPU x 14 cores. 20 logical processors (x64)
06:16:12:System RAM: 94 GiB
06:16:12:Platform: Linux
06:16:12:BuildConfig: Release
06:16:12:Execution Env: Docker
06:16:12:Runtime Env: Production
06:16:12:Runtimes installed:
06:16:12: .NET runtime: 7.0.19
06:16:12: .NET SDK: Not found
06:16:12: Default Python: 3.10.12
06:16:12: Go: Not found
06:16:12: NodeJS: Not found
06:16:12: Rust: Not found
|
|
|
|
|
Ken from BI tells me it is related to :
Unable to run inference: There is at least 1 reference to internal data in the interpreter in the form of a numpy array or slice. Be sure to only hold the function returned but I can't figure what that mean !
|
|
|
|
|
I've seen that before on Coral. Seems like a driver or Coral library issue
cheers
Chris Maunder
|
|
|
|
|
I have similar Error 500 issues with my Win10Pro install using Coral USB.
Chris, do you mean that when using CoralUSB in Windows, I should NOT activate the Coral module, but use only YOLOv5.NET Object detection?
For now I've had BOTH Coral and .NET modules running and got fairly good ~30ms response times, but with some errors. With YOLO only response is easily ~200ms and I have no idea if CPAI is using my Coral module this way.
Running 2.6.2 at the moment.
/nico
|
|
|
|
|
I followed the process described here:
CodeProject.AI Server: AI the easy way.[^]
to uninstall Numpy 2.0 and install Numpy 1.2.3
That resolved the issue I had been having getting the Coral module 2.2.2 to work on my Windows 10 machine.
The module just would not "see" the Coral M.2 Accelerator.
Current system info:
Server version: 2.6.2
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz (Intel)
1 CPU x 4 cores. 4 logical processors (x64)
GPU (Primary): Intel(R) HD Graphics 630 (1,024 MiB) (Intel Corporation)
Driver: 31.0.101.2111
System RAM: 16 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.20
.NET SDK: 7.0.410
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
Intel(R) HD Graphics 630:
Driver Version 31.0.101.2111
Video Processor Intel(R) HD Graphics Family
System GPU info:
GPU 3D Usage 10%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
Current Coral module info:
Module 'Object Detection (Coral)' 2.2.2 (ID: ObjectDetectionCoral)
Valid: True
Module Path: <root>\modules\ObjectDetectionCoral
AutoStart: True
Queue: objectdetection_queue
Runtime: python3.9
Runtime Loc: Local
FilePath: objectdetection_coral_adapter.py
Start pause: 1 sec
Parallelism: 16
LogVerbosity:
Platforms: all
GPU Libraries: installed if available
GPU Enabled: enabled
Accelerator:
Half Precis.: enable
Environment Variables
CPAI_CORAL_MODEL_NAME = MobileNet SSD
CPAI_CORAL_MULTI_TPU = true
MODELS_DIR = <root>\modules\ObjectDetectionCoral\assets
MODEL_SIZE = Small
Status Data: {
"inferenceDevice": "Multi-TPU",
"inferenceLibrary": "TF-Lite",
"canUseGPU": "false",
"successfulInferences": 201,
"failedInferences": 43,
"numInferences": 244,
"averageInferenceMs": 12.26865671641791
}
Started: 21 Jun 2024 2:26:35 PM Central Standard Time
LastSeen: 21 Jun 2024 2:36:43 PM Central Standard Time
Status: Started
Requests: 279 (includes status calls)
I was also having problems when I tried to change the model from MobileNet SSD to YOLOv5 or v8, or change the model size from small to medium. Either of those attempts would change the module from Multi TPU to CPU.
I read somewhere that the Mobilenet SSD model uses an image size of 320x320. Perhaps that is why the model returns so many false inferences. I would like to see if I can improve the accuracy of the Coral module with the Coral M.2 accelerator.
I am going to leave the Model and the model size the same now since it seems to be working.
This has taken the better part of the week so far.
|
|
|
|
|
We've updated to Coral module to 2.3.3, and I've tested it again. Could you please uninstall, and reinstall the module again?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Updated from 2.3.2 to 2.3.3, and running it now.
|
|
|
|
|
Module 'Object Detection (Coral)' 2.3.3 (ID: ObjectDetectionCoral)
Valid: True
Module Path: <root>\modules\ObjectDetectionCoral
Module Location: Internal
AutoStart: True
Queue: objectdetection_queue
Runtime: python3.9
Runtime Location: Local
FilePath: objectdetection_coral_adapter.py
Start pause: 1 sec
Parallelism: 16
LogVerbosity:
Platforms: all
GPU Libraries: installed if available
GPU: use if supported
Accelerator:
Half Precision: enable
Environment Variables
CPAI_CORAL_MODEL_NAME = MobileNet SSD
CPAI_CORAL_MULTI_TPU = true
MODELS_DIR = <root>\modules\ObjectDetectionCoral\assets
MODEL_SIZE = Small
Status Data: {
"inferenceDevice": "Multi-TPU",
"inferenceLibrary": "TF-Lite",
"canUseGPU": "false",
"successfulInferences": 300,
"failedInferences": 54,
"numInferences": 354,
"averageInferenceMs": 12.77
}
Started: 27 Jun 2024 2:34:53 PM Central Standard Time
LastSeen: 27 Jun 2024 2:37:20 PM Central Standard Time
Status: Started
Requests: 658 (includes status calls)
Server version: 2.6.5
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz (Intel)
1 CPU x 4 cores. 4 logical processors (x64)
GPU (Primary): Intel(R) HD Graphics 630 (1,024 MiB) (Intel Corporation)
Driver: 31.0.101.2111
System RAM: 16 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.20
.NET SDK: 7.0.410
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
Intel(R) HD Graphics 630:
Driver Version 31.0.101.2111
Video Processor Intel(R) HD Graphics Family
System GPU info:
GPU 3D Usage 11%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
How do you uninstall a module without uninstalling the entire program?
I don't see how to do that.
I just updated the module.
|
|
|
|
|