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)
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.
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.
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.
We've had some unexpected weirdness in 2.5.5 that we're scratching our heads over, so until we work the kinks out of it we'll switch back to 2.5.4 being the current version. We expect an update out tomorrow.
I'm in a bit of a tizz. My media server was stalling and my first thought was I wonder if there is an update for CodeProjectAI, there was 2.5.5. It failed to install due to some issue. I then "stupidly" decided to uninstall to try a fresh installation. Still nothing.
So I rolled back to my previous version 2.1.8 and noticed the YOLOv5 .NET option was no longer there. Okay, luckily I have a version lower 2.1.6, great the option is there. However it fails to install, I believe the module is no longer in the S3 location it's looking at as it fails to download.
How can I get this module? It cut my detection time down to 100ms now my detection time is 3 seconds or more and freezing my entire server.
This is an older PC and the new modules just don't work efficiently. I'm cursing myself out for not having a backup. Please can someone help?
Here is the error:
15:10:25:ObjectDetectionNet: Start-BitsTransfer : The resource loader cache doesn't have loaded MUI entry. (Exception from HRESULT: 0x80073B01)
15:10:25:ObjectDetectionNet: At line:1 char:1
15:10:25:ObjectDetectionNet: + Start-BitsTransfer -Source 'https://codeproject-ai.s3.ca-central-1.am ...15:10:25:ObjectDetectionNet: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15:10:25:ObjectDetectionNet: + CategoryInfo : NotSpecified: (:) [Start-BitsTransfer], COMException
15:10:25:ObjectDetectionNet: + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.BackgroundIntelligentTransfer.Mana
Server version: 2.1.6-Beta
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: AMD A10-7800 Radeon R7, 12 Compute Cores 4C+8G
1 CPU x 2 cores. 4 logical processors (x64)
GPU: Microsoft Remote Display Adapter (Microsoft)
System RAM: 7 GiB
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.5
System GPU info:
GPU 3D Usage 1%
GPU RAM Usage 1.2 GiB
Video adapter info:
Microsoft Remote Display Adapter:
Driver Version 10.0.19041.3636
AMD Radeon(TM) R7 Graphics:
Driver Version 27.20.1034.6
Video Processor AMD Radeon Graphics Processor (0x130F)
Global Environment variables:
CPAI_APPROOTPATH = C:\Program Files\CodeProject\AI
CPAI_PORT = 32168
Is this option on 2.5.4 again then? I think it was removed in an older 2.1 something?
Edit - I've installed it and checked and it is indeed back as an option. Thank you this has solved my problem. Back to 200ms detection on my aging server. Thank you so much, I nearly had a mental breakdown yesterday.
hello all, I tried updating to version 2.5.5 and it didn't go well. after install the service will not start. I tried everything I can think of including using an uninstaller program that finds left behind files and registry keys and removes them to remove 2.5.5 and reinstall with no change. I reinstalled 2.5.4 and it starts and runs without issue. any ideas what the issue might be? I tried redownloading the installer to hopefully rule out a corrupt install file but same issue.
Xeon E5-2680 v4 @ 2.40GHz (14 core)
16GB ECC DDR4
Server 2022 Standard 21H2 with all updates installed.
GTX 1050 TI with "studio" driver
Blue Iris 220.127.116.11
yeah. its acting like its missing something that either didn't install or needs to be installing like a certain version of .NET framework and the installer doesn't tell you. I'm dead in the water with 4.5.5 not sure how to pull the logs since the service wont even start.