|
IF YOU ARE HAVING A PROBLEM
- Take a look at the logs in
C:\Program Files\CodeProject\AI\logs and see if there's anything in there that screams 'something broke'.
- Check the FAQs in the CodeProject.AI Server documentation
- Make sure you've tested the server using the Explorer (blue link, top middle of the dashboard) to ensure it's a server issue rather than something else such as Blue Iris or another app using CodeProject.AI server.
- If there's no obvious answer, then copy and paste into a message the contents of the System Info tab, describe what you are doing, and what you see, and what you would expect.
Always include a copy and paste from the System Info tab of the dashboard. It gives us a ton of info on your setup. If an individual module is failing, click the 'Info' button to the right of the module's name in the status list and copy and paste that info too.
How to reinstall a module
Option 1. Go to the install modules tab on the dashboard and try re-installing the package. Make sure you have enough disk space and a reliable internet connection.
Option 2: (Option 1 with a vengeance): If that fails, head to the module's folder ([app root]\modules\module-id), open a terminal in admin mode, and run ..\..\setup . This will force a manual reinstall using the install script.
Docker: In Docker you will need to open a terminal into the docker container. You can do this using Docker Desktop, or Visual Studio Code with the Docker remote extension, or on the command using using docker attach . Then do a cd /app/modules/module-id where module-id is the id of the module you need to resinstall. Next, run sudo bash ../../setup.sh --verbosity info to force a manual reinstall of that module. (Set verbosity as quiet, info or loud to get less or more info)
cheers
Chris Maunder
modified 18-Feb-24 15:48pm.
|
|
|
|
|
If you are a Blue Iris user and you are using custom models, then you would notice that the option, in Blue Iris, to set the custom model location is greyed out. This is because Blue Iris does not currently make changes to CodeProject.AI Server's settings. It can be done by manually starting CodeProject.AI with command line parameters (not a great solution), or editing the module settings files (a little messy), or setting system-wide environment variables (way easier). For version 1.6 we added an API to allow any app to change our settings programmatically, and we take care of stopping/restarting things and persisting the changes.
So: Blue Iris doesn't currently change CodeProject.AI Server's settings, so it doesn't provide you a way to change the custom model folder location from within Blue Iris.
Blue Iris will still use the contents of this folder to determine the calls it makes. If you don't specify a model to use in the Custom Models textbox, then Blue Iris will use all models in the custom models folder that it knows about.
![](/Uploads/Content/Images/a449062f-c6cf-4d2c-808c-b65e788c9bbc-small.png)
Here we've specified a specific model to use. The Blue Iris help file explains more about how this works, including inclusive and exclusive filters on the models it finds.
CodeProject.AI Server doesn't know about Blue Iris' folder, so it can't tell what models it may be expected to use, nor can it tell Blue Iris about what models CodeProject.AI server has available. Our API allows Blue Iris to get a list of the AI models installed with CodeProject.AI Server, and also to set the folder where these models reside. But Blue Iris doesn't, yet, use that API.
So we do a hack.
At install time we sniff the registry to find where Blue Iris thinks the custom models should be. We then make empty copies of the models that we have, and copy them into that folder. If the folder doesn't exist (eg you were using C:\Program Files\CodeProject\AI\AnalysisLayer\CustomObjectDetection\assets , which no longer exists) then we create that folder, and then copy over the empty files.
When Blue Iris looks in that folder to decide what custom calls it can make, it sees the models, notes their names, and uses those names in the calls. CodeProject.AI Server has those models, so when the calls come through we can process them.
Blue Iris doesn't use the models. It uses the list of model names.
If you have your own models in the Blue Iris folder
You will need to copy them to the CodeProject.AI server's custom model folder (by default this is C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\custom-models )
If you've modified the registry and have your own custom models
If you were using a folder in C:\Program Files\CodeProject\AI\AnalysisLayer\CustomObjectDetection\ (which no longer existed after the upgrade, but was recreated by our hack) you'll need to re-copy your custom model into that folder.
The simplest solutions are:
- Modify the registry (Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Perspective Software\Blue Iris\Options\AI, key 'deepstack_custompath') so Blue Iris looks in
C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\custom-models for custom models, and copy your models into there.
or
- Modify
C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\modulesettings.json file and set CUSTOM_MODELS_DIR to be whatever Blue Iris thinks the custom model folder is.
cheers
Chris Maunder
|
|
|
|
|
Starts up okay but then changes back to CPU.
Log shows:
11:05:40:Started Object Detection (Coral) module
11:05:45:objectdetection_coral_adapter.py: Unable to load OpenCV or numpy modules. Only using PIL.
11:05:45:objectdetection_coral_adapter.py: Using Edge TPU
Tried installing numpy manually in a similar fashion to how we had to downgrade on the previous module but just get errors:
ERROR: Exception:
Traceback (most recent call last):
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 179, in exc_logging_wrapper
status = run_func(*args)
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
return func(self, options, args)
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_internal\commands\install.py", line 324, in run
session = self.get_default_session(options)
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_internal\cli\index_command.py", line 71, in get_default_session
self._session = self.enter_context(self._build_session(options))
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_internal\cli\index_command.py", line 100, in _build_session
session = PipSession(
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_internal\network\session.py", line 344, in __init__
self.headers["User-Agent"] = user_agent()
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_internal\network\session.py", line 177, in user_agent
setuptools_dist = get_default_environment().get_distribution("setuptools")
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_internal\metadata\__init__.py", line 76, in get_default_environment
return select_backend().Environment.default()
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_internal\metadata\__init__.py", line 64, in select_backend
from . import pkg_resources
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_internal\metadata\pkg_resources.py", line 16, in <module>
from pip._vendor import pkg_resources
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3292, in <module>
def _initialize_master_working_set():
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3266, in _call_aside
f(*args, **kwargs)
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3304, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 591, in _build_master
ws = cls()
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 584, in __init__
self.add_entry(entry)
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 640, in add_entry
for dist in find_distributions(entry, True):
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2102, in find_on_path
yield from factory(fullpath)
File "c:\program files\codeproject\ai\modules\objectdetectioncoral\bin\windows\python39\venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2159, in distributions_from_metadata
if len(os.listdir(path)) == 0:
PermissionError: [WinError 5] Access is denied: 'c:\\program files\\codeproject\\ai\\modules\\objectdetectioncoral\\bin\\windows\\python39\\venv\\lib\\site-packages\\aiofiles-24.1.0.dist-info'
|
|
|
|
|
Hi all,
I thought CodeProject included custom models with YOLOv5 6.2 in the past? I just upgraded my installation, and my v6.2 folder does not have any models or custom models (both actionnet and ipcam are missing).
However, my YOLOv5 v3.1 folder does seem to have models.
Should I move the models from v3.1 to v6.2, or do I need to manually download them?
I deleted the whole folder and reinstalled and am still having the same error. In the logs, I see the following:
22:45:29:Object Detection (YOLOv5 6.2): [FileNotFoundError] : Error during main_loop: Traceback (most recent call last):
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\codeproject_ai_sdk\module_runner.py", line 576, in main_loop
output = await callbacktask
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 115, in process
response = self._list_models(self.opts.custom_models_dir)
File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 219, in _list_models
self.model_names = [entry.name[:-3] for entry in os.scandir(models_path)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Program Files\\CodeProject\\AI\\modules\\ObjectDetectionYOLOv5-6.2\\custom-models'
Thanks.
modified 7hrs 10mins ago.
|
|
|
|
|
Not sure how to roll back either... Everything was working with the last version of V8. It's only saying CPU now on the status screen. GPU is not being detected even though the info shows cuda device available
13:55:11:Started Object Detection (YOLOv8) module
13:55:11:detect_adapter.py: Traceback (most recent call last):
13:55:11:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\detect_adapter.py", line 10, in
13:55:11:detect_adapter.py: from codeproject_ai_sdk import RequestData, ModuleRunner, LogMethod, JSON
13:55:11:detect_adapter.py: ModuleNotFoundError: No module named 'codeproject_ai_sdk'
13:55:11:Module ObjectDetectionYOLOv8 has shutdown
|
|
|
|
|
Is there a way that CodeProject in Blue Iris can read a text from a video NOT just for license plates? At one time, I was getting logos of shirts read and I think it is way cool especially for my front door .
|
|
|
|
|
Hello,
I'm trying to install Codeproject on Ubuntu 22.04 via the installer.
Codeproject installer requires "apt-get install dotnet-sdk-7.0", but that version is no longer available on Ubuntu 22.04.
I tried to install the outdated version manually 7.0.410, but the installer stilll doesn't work and try to install "apt-get install dotnet-sdk-7.0", which doesn't exist.
Checking for .NET 7.0.../usr/bin/codeproject.ai-server-2.6.5/SDK/Scripts/utils.sh: line 587: dotnet: command not found
Upgrading: .NET is (None)
Already added link to .bashrc
/usr/bin/codeproject.ai-server-2.6.5/SDK/Scripts/utils.sh: line 542: dotnet: command not found
.NET was not installed correctly. You may need to run the following:
sudo apt-get remove 'dotnet*'
sudo apt-get remove 'aspnetcore*'
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
sudo apt-get install dotnet-sdk-7.0
Processing CodeProject.AI Server
Processing Included CodeProject.AI Server Modules
Reading module settings.......done
Processing module
This module cannot be installed on this system
How do I install Codeproject on Ubuntu 22.04 ? What specific version of the SDK do you require ?
Thank you.
|
|
|
|
|
|
Already tried but it doesn't change anything.
The installer still failed with the exact same error message.
|
|
|
|
|
Can you try, as per the output:
sudo apt-get remove 'dotnet*'
sudo apt-get remove 'aspnetcore*'
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
sudo apt-get install dotnet-sdk-7.0
And let me know what happens?
cheers
Chris Maunder
|
|
|
|
|
root@cam:~
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package dotnet-sdk-7.0
E: Couldn't find any package by glob 'dotnet-sdk-7.0'
E: Couldn't find any package by regex 'dotnet-sdk-7.0'
|
|
|
|
|
I'm seeing this with these three module versions. Both my win boxes show same and I only use TextToImage on one. I do not use ALPR or Super resolution on either. The TextToImage pulls 1.1.2 on install...
![](/Uploads/Content/Images/f5284ea7-d223-4d79-b5d4-1361b5b8372e-small.png)
|
|
|
|
|
Thanks very much for the report. Could you please try refreshing your browser, or restarting the server?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Did both multiple times...
Others are reporting this version mismatch
My modules page shows this, where I have TextToImage installed.
![](/Uploads/Content/Images/9c734000-1022-40e2-9b34-bf9ac31a7563-small.png)
TextToImage should show 1.2.0...
My guess is that it has something to do with moving the SDK files into a python package.
ie:
CodeProject-AI-SDK # Installing the CodeProject.AI SDK in the requirements files
I still have a SDK folder...
Nuking the whole thing to reinstall seems like diagnostics with a hammer.
I have two working systems.
|
|
|
|
|
Hello,
I just noted that a new version of superresolution was available, but when I tried to update, I get this error message:
09:07:24:Unable to download module 'SuperResolution' from https: I also see a new version of YOLO v8, but a little gun-shy to try to update it until I understand if the problem might be on my end.
thanks!
|
|
|
|
|
Your dashboard should update soon to show a 2.1.1 version for download.
The problem occurred because I uploaded a module update list that referenced modules I'd not yet uploaded. I did a full refresh about an hour ago that is back in sync.
cheers
Chris Maunder
|
|
|
|
|
Hi Chris,
I am still seeing this today when trying to install (the previous update attempt removed this module then failed):
06:58:27:Downloading module 'SuperResolution'
06:58:27:Unable to download module 'SuperResolution' from https: Is there something manual I need to do to update the modules list?
thanks!
|
|
|
|
|
Thanks very much for the report. Please try downloading the module again.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
![Go to Parent](https://www.codeproject.com/App_Themes/CodeProject/Img/arrow-up24.png) Superresolution 2.1.1 does install now...but it shows as unavailable? (the service is greyed out at the bottom of the status page and just says Not Available...)
Also, in the install log, I see it does not install GPU code. Should it?
What can I do to debug further?
22:06:19:Call to run Uninstall on module SuperResolution has completed.
22:06:50:Preparing to install module 'SuperResolution'
22:06:50:Downloading module 'SuperResolution'
22:06:51:Installing module 'SuperResolution'
22:06:51:SuperResolution: Installing CodeProject.AI Analysis Module
22:06:51:SuperResolution: ======================================================================
22:06:51:SuperResolution: CodeProject.AI Installer
22:06:51:SuperResolution: ======================================================================
22:06:51:SuperResolution: 387.9Gb of 487Gb available on Windows
22:06:51:SuperResolution: os, arch = windows x86_64
22:06:51:SuperResolution: systemName, platform = Windows, windows
22:06:52:SuperResolution: edgeDevice =
22:06:52:SuperResolution: setupMode = SetupModule
22:06:52:SuperResolution: executionEnvironment = Production
22:06:52:SuperResolution: rootDirPath = C:\Program Files\CodeProject\AI
22:06:52:SuperResolution: appRootDirPath = C:\Program Files\CodeProject\AI\
22:06:52:SuperResolution: setupScriptDirPath = C:\Program Files\CodeProject\AI\
22:06:52:SuperResolution: sdkScriptsDirPath = C:\Program Files\CodeProject\AI\SDK\Scripts
22:06:52:SuperResolution: runtimesDirPath = C:\Program Files\CodeProject\AI\runtimes
22:06:52:SuperResolution: modulesDirPath = C:\Program Files\CodeProject\AI\modules
22:06:52:SuperResolution: externalModulesDirPath = C:\Program Files\CodeProject\AI\..\CodeProject.AI-Modules
22:06:52:SuperResolution: modelsDirPath = C:\Program Files\CodeProject\AI\models
22:06:52:SuperResolution: downloadDirPath = C:\Program Files\CodeProject\AI\downloads
22:06:52:SuperResolution: General CodeProject.AI setup
22:06:52:SuperResolution: Creating Directories...done
22:06:52:SuperResolution: GPU support
22:06:53:SuperResolution: CUDA Present...Yes (CUDA 11.7, cuDNN 8.5)
22:06:53:SuperResolution: ROCm Present...No
22:06:53:SuperResolution: Checking for .NET 7.0...Checking SDKs...Upgrading: .NET is 0
22:06:53:SuperResolution: Current version is 0. Installing newer version.
22:06:53:SuperResolution: The system cannot execute the specified program.
22:06:54:SuperResolution: Reading SuperResolution settingsUsed modulesettings.json to get value Super Resolution
22:06:54:SuperResolution: .Used modulesettings.json to get value 2.1.1
22:06:54:SuperResolution: .Used modulesettings.windows.json to get value python3.9
22:06:55:SuperResolution: .Used modulesettings.json to get value Local
22:06:55:SuperResolution: .Used modulesettings.json to get value superres_adapter.py
22:06:55:SuperResolution: .Used modulesettings.json to get value false
22:06:56:SuperResolution: .Used modulesettings.json to get value ["all"]
22:06:56:SuperResolution: .done
22:06:56:SuperResolution: Installing module Super Resolution 2.1.1
22:06:56:SuperResolution: Variable Dump
22:06:56:SuperResolution: moduleName = Super Resolution
22:06:56:SuperResolution: moduleId = SuperResolution
22:06:56:SuperResolution: moduleVersion = 2.1.1
22:06:56:SuperResolution: runtime = python3.9
22:06:56:SuperResolution: runtimeLocation = Local
22:06:56:SuperResolution: installGPU = false
22:06:56:SuperResolution: pythonVersion = 3.9
22:06:56:SuperResolution: virtualEnvDirPath = C:\Program Files\CodeProject\AI\modules\SuperResolution\bin\windows\python39\venv
22:06:56:SuperResolution: venvPythonCmdPath = C:\Program Files\CodeProject\AI\modules\SuperResolution\bin\windows\python39\venv\Scripts\python.exe
22:06:56:SuperResolution: packagesDirPath = C:\Program Files\CodeProject\AI\modules\SuperResolution\bin\windows\python39\venv\Lib\site-packages
22:06:57:SuperResolution: moduleStartFilePath = superres_adapter.py
22:06:57:SuperResolution: Installing Python 3.9
22:06:57:SuperResolution: Installing python39 in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python39
22:06:57:SuperResolution: Python 3.9 is already installed
22:06:57:SuperResolution: Creating Virtual Environment (Local)...Virtual Environment doesn't exist. Creating at C:\Program Files\CodeProject\AI\modules\SuperResolution\bin\windows\python39\venv
22:07:02:SuperResolution: done
22:07:03:SuperResolution: Confirming we have Python 3.9 in our virtual environment...present
22:07:03:SuperResolution: No custom setup steps for this module.
22:07:03:SuperResolution: Installing Python packages for Super Resolution
22:07:03:SuperResolution: [0;Installing GPU-enabled libraries: No
22:07:05:SuperResolution: Ensuring Python package manager (pip) is installed...Looking in links: c:\Windows\TEMP\tmpqhzj8lja
22:07:05:SuperResolution: Requirement already satisfied: setuptools in c:\program files\codeproject\ai\modules\superresolution\bin\windows\python39\venv\lib\site-packages (56.0.0)
22:07:05:SuperResolution: Requirement already satisfied: pip in c:\program files\codeproject\ai\modules\superresolution\bin\windows\python39\venv\lib\site-packages (21.1.3)
22:07:05:SuperResolution: done
22:07:13:SuperResolution: Ensuring Python package manager (pip) is up to date...done
22:07:13:SuperResolution: Requirements Search Path is C:\Program Files\CodeProject\AI\modules\SuperResolution
22:07:13:SuperResolution: Searching for a suitable requirements.txts file in C:\Program Files\CodeProject\AI\modules\SuperResolution
22:07:13:SuperResolution: Python packages specified by requirements.txt
22:07:13:SuperResolution: Choosing Python packages from C:\Program Files\CodeProject\AI\modules\SuperResolution\requirements.txt
22:07:20:Response timeout. Try increasing the timeout value
22:07:25:SuperResolution: - Installing NumPy, a package for scientific computing...(✅ checked) done
22:07:56:SuperResolution: - Installing ONNX, the Open Neural Network Exchange library...(✅ checked) done
22:09:08:SuperResolution: - Installing ONNX runtime, the scoring engine for ONNX models...(✅ checked) done
22:09:21:SuperResolution: - Installing resizeimage, which provides functions for easily resizing images...(✅ checked) done
22:09:22:SuperResolution: - Installing Pillow, a Python Image Library...Already installed
22:10:34:SuperResolution: - Installing PyTorch, for Tensor computation and Deep neural networks...(✅ checked) done
22:10:47:SuperResolution: - Installing the CodeProject.AI SDK...(✅ checked) done
22:10:47:SuperResolution: Installing Python packages for the CodeProject.AI Server SDK
22:10:50:SuperResolution: Ensuring Python package manager (pip) is installed...Looking in links: c:\Windows\TEMP\tmppbyx_sp6
22:10:50:SuperResolution: Requirement already satisfied: setuptools in c:\program files\codeproject\ai\modules\superresolution\bin\windows\python39\venv\lib\site-packages (70.1.1)
22:10:50:SuperResolution: Requirement already satisfied: pip in c:\program files\codeproject\ai\modules\superresolution\bin\windows\python39\venv\lib\site-packages (24.1)
22:10:50:SuperResolution: done
22:10:53:SuperResolution: Ensuring Python package manager (pip) is up to date...done
22:10:53:SuperResolution: Requirements Search Path is C:\Program Files\CodeProject\AI\SDK\Python
22:10:53:SuperResolution: Searching for a suitable requirements.txts file in C:\Program Files\CodeProject\AI\SDK\Python
22:10:53:SuperResolution: Python packages specified by requirements.txt
22:10:53:SuperResolution: Choosing Python packages from C:\Program Files\CodeProject\AI\SDK\Python\requirements.txt
22:10:54:SuperResolution: - Installing Pillow, a Python Image Library...Already installed
22:10:56:SuperResolution: - Installing Charset normalizer...Already installed
22:10:57:SuperResolution: - Installing aiohttp, the Async IO HTTP library...Already installed
22:10:58:SuperResolution: - Installing aiofiles, the Async IO Files library...Already installed
22:10:59:SuperResolution: - Installing py-cpuinfo to allow us to query CPU info...Already installed
22:11:00:SuperResolution: - Installing Requests, the HTTP library...Already installed
22:11:01:SuperResolution: Scanning modulesettings for downloadable models...No models specified
22:11:01:SuperResolution: SELF TEST START ======================================================
22:11:08:SuperResolution: Unable to load OpenCV or numpy modules. Only using PIL.
22:11:08:SuperResolution: Creating torch model with scaling factor 3, model resolution 224
22:11:08:SuperResolution: Info: Self-test for SuperResolution. Success: True
22:11:09:SuperResolution: Self-test passed
22:11:09:SuperResolution: SELF TEST END ======================================================
22:11:09:SuperResolution: Module setup time 00:04:15.29
22:11:09:SuperResolution: Setup complete
22:11:09:SuperResolution: Total setup time 00:04:17.52
22:11:09:Module SuperResolution installed successfully.
22:11:09:Module SuperResolution not configured to AutoStart.
22:11:09:Installer exited with code 0
|
|
|
|
|
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
|
|
|
|
|
![Go to Parent](https://www.codeproject.com/App_Themes/CodeProject/Img/arrow-up24.png) 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
|
|
|
|
|
It seems to be stuck.
I've already reinstalled and restarted the installation program and computer several times.
![](/Uploads/Content/Images/e5159449-d53b-4cf5-91ea-ea3ded2cd37a-small.png)
|
|
|
|
|
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!
|
|
|
|
|