|
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.
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
|
|
|
|
|
Inside of blueiris, I can view video and 'test with AI' where it puts a box around people, cars, etc and labels them. For some reason I am unable to get this feedback in BI when using Object Detection (YOLOv8) 1.4.2.
I've tested a bunch of object detection versions and I find YOLOv8 the best but I have no way to tell if it's actually running correctly.
When I run Object Detection (YOLOv5 .NET) 1.10.1 I am able to review footage 'testing with AI' and the box comes up around whatever is detected.
Is there a way to fix YOLOv8?
This is from the logs:
13:25:54:Response rec'd from Object Detection (YOLOv8) command 'detect' (...e47814)
13:25:54:Object Detection (YOLOv8): Unable to create YOLO detector for model yolov8m
13:26:12:Object Detection (YOLOv8): C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\assets\yolov8m.pt does not exist
13:26:12:Response rec'd from Object Detection (YOLOv8) command 'detect' (...e16bc8)
13:26:12:Object Detection (YOLOv8): Unable to create YOLO detector for model yolov8m
13:26:12:Object Detection (YOLOv8): C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\assets\yolov8m.pt does not exist
|
|
|
|
|
You should be able to see YOLOv8 detections happening in the CodeProject.AI server logs, if it's working. And you should get your usual Alerts or logs within Blue Iris as normal. Make sure you don't have multiple Object Detection modules active, just YOLOv8.
I'm also wondering if your YOLOv8 simply didn't install correctly. Could you please share the installation log? It's here:
After you share that, you might simply try un-installing and re-installing it.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Thanks, the log is below:
Module 'Object Detection (YOLOv8)' 1.4.3 (ID: ObjectDetectionYOLOv8)
Valid: True
Module Path: <root>\modules\ObjectDetectionYOLOv8
AutoStart: True
Queue: objectdetection_queue
Runtime: python3.9
Runtime Loc: Local
FilePath: detect_adapter.py
Start pause: 1 sec
Parallelism: 0
LogVerbosity:
Platforms: all
GPU Libraries: installed if available
GPU Enabled: enabled
Accelerator:
Half Precis.: enable
Environment Variables
APPDIR = <root>\modules\ObjectDetectionYOLOv8
CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv8\custom-models
MODELS_DIR = <root>\modules\ObjectDetectionYOLOv8\assets
MODEL_SIZE = Medium
USE_CUDA = True
YOLO_VERBOSE = false
Status Data: {
"inferenceDevice": "GPU",
"inferenceLibrary": "CUDA",
"canUseGPU": "true",
"successfulInferences": 0,
"failedInferences": 89,
"numInferences": 89,
"averageInferenceMs": 0
}
Started: 17 Apr 2024 8:40:06 PM Eastern Standard Time
LastSeen: 17 Apr 2024 8:42:52 PM Eastern Standard Time
Status: Stopped
Requests: 96 (includes status calls)
|
|
|
|
|
I've uninstalled/reinstalled at least once before. I'm always sure to stop other YOLO instances before enabling v8.
In a comparison, yolov8 had the best benchmark scoring but for some reason it seems not to be showing up in BI.
|
|
|
|
|
Thank you kindly. One final thing, could you please share your System Info tab from your CodeProject.AI Server dashboard?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Hi,
Sorry, if I am sounding like a broken record, as this is my second time asking for help with the Coral module not starting. But since v2.2 and the one before and even with the newest v2.2.2 of the Coral object detection. I have been unable to actually get the module to work.
The last time I asked, it was an issue with selecting Multi-TPU support, which fixed it and allow the module to start.
However, ever since that release, it has been unable to start, falling back to CPU. Everything I've tried , changing models, changing size of models, re-installing, enabling Multi-TPU results in the same. The module fails to start or falls back to CPU.
The service also restarts most of the time (on windows) as well?
Below fails to start
Any suggests would be appreciated?
Thanks
12:17:58:Server version: 2.6.2
12:18:01:
12:18:01:Module 'Object Detection (Coral)' 2.2.2 (ID: ObjectDetectionCoral)
12:18:01:Valid: True
12:18:01:Module Path: <root>\modules\ObjectDetectionCoral
12:18:01:AutoStart: True
12:18:01:Queue: objectdetection_queue
12:18:01:Runtime: python3.9
12:18:01:Runtime Loc: Local
12:18:01:FilePath: objectdetection_coral_adapter.py
12:18:01:Start pause: 1 sec
12:18:01:Parallelism: 16
12:18:01:LogVerbosity:
12:18:01:Platforms: all
12:18:01:GPU Libraries: installed if available
12:18:01:GPU Enabled: enabled
12:18:01:Accelerator:
12:18:01:Half Precis.: enable
12:18:01:Environment Variables
12:18:01:CPAI_CORAL_MODEL_NAME = EfficientDet-Lite
12:18:01:CPAI_CORAL_MULTI_TPU = True
12:18:01:MODELS_DIR = <root>\modules\ObjectDetectionCoral\assets
12:18:01:MODEL_SIZE = small
12:18:01:
12:18:01:Started Object Detection (Coral) module
12:18:04:Server: This is the latest version
|
|
|
|
|
No need to apologise. Let's get this sorted.
Can you remind me what system you're on (you mentioned Windows). Are you using Blue Iris? If so, disable the start/stop CodeProject.AI within Blue Iris and just let CodeProject.AI run without being stopped.
Are you using a Coral USB or PCIe unit? USB on Windows is really unstable. Seth has done a ton of digging and feels there are memory issues with the Coral library. My personal experience is it works till it doesn't then it's a matter of shutting down the module, switching to a different USB port, restarting, then it works. No issues on Linux, though, which I assume was a focus of the Coral dev team.
cheers
Chris Maunder
|
|
|
|
|
Thanks Chris!
Yes, I'm running on Windows with BI, I felt that it would be speedier rather than having CPAI run on a different host.
I've made the adjustment in BI, ie unchecked the start/stop
I'm running the USB version of Coral on Windows, yes, I've been doing that , shutting down and switching to a different USB port. It use to work great, until v2 of the module. After, the last question about the Coral TPU on here!
|
|
|
|
|
As far as I know there are no memory problems with the Coral module in the latest code. When I ran some longer tests, the memory consumption grew, but leveled off at around 1.1 gb of usage. This points me to Python memory fragmentation, which isn’t really a problem or something I can fix. (AFAIK)
Unfortunately, I don’t have a USB module so I can’t debug anything there. It may be worthwhile for me to get one just for that reason…
|
|
|
|
|
Server version: 2.6.2
System: Windows
Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
20:58:09:Preparing to install module 'FaceProcessing'
20:58:09:Downloading module 'FaceProcessing'
20:58:09:Unable to download module 'FaceProcessing' from https://www.codeproject.com/KB/articles/5348853/FaceProcessing-1.10.2.zip. Error: No bytes downloaded
|
|
|
|
|
We missed deploying that file.
I've fixed it and you should be good to go in about 5 minutes.
"Mistakes are prevented by Experience. Experience is gained by making mistakes."
|
|
|
|
|
|
Installing the Coral Module fails with:
Unable to download module 'ObjectDetectionCoral' from https://www.codeproject.com/KB/articles/5348853/ObjectDetectionCoral-2.2.2.zip. Error: No bytes downloaded
Looks like if you change the version to 2.2.0 you can manually download it.
Server version: 2.6.2
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. 8 logical processors (x64)
GPU (Primary): Microsoft Remote Display Adapter (Microsoft)
Driver: 10.0.19041.3636
System RAM: 32 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.5
.NET SDK: Not found
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
Microsoft Remote Display Adapter:
Driver Version 10.0.19041.3636
Video Processor
Intel(R) HD Graphics 530:
Driver Version 27.20.100.9664
Video Processor Intel(R) HD Graphics Family
System GPU info:
GPU 3D Usage 2%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Came here looking for solutions to this download issue.
I've managed to get the v2.2.0.zip to download, but I'm unsure of the installation methods. Any hints you can point me to?
Cheers, -Ian
|
|
|
|
|
Directions to install/re-install a module are found above in the Readme First post.
I tried to do that after downloading 2.2.0 and the installer said it was unable to install:
Installing CodeProject.AI Analysis Module
======================================================================
CodeProject.AI Installer
======================================================================
74.0Gb of 237Gb available on
General CodeProject.AI setup
Creating Directories...done
GPU support
CUDA Present...No
ROCm Present...No
Reading ObjectDetectionCoral-2.2.0 settings.......done
Installing module ObjectDetectionCoral-2.2.0
This module cannot be installed on this system
Setup complete
Total setup time 00:00:01.92
c:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral-2.2.0>
-Jason
|
|
|
|
|
I also have this issue
|
|
|
|
|
I'm actually having issues downloading v2.2.2 - keep on getting no bytes downloaded.
Even wget has difficulties actually downloading anything?
I would assume that there are issues with the file hosting?
BTW, I have v2.2 installed but can't get v2.2 to even start, with any options
|
|
|
|
|
Seems like just a corrupted 2.2.2 package on the site.
Calling @chris-maunder to re-upload the zip file.
|
|
|
|
|
Matthew has redeployed so it may be worth trying again, with cache disabled.
cheers
Chris Maunder
|
|
|
|
|
Coral 2.2.2 Update now works for me, thanks for fixing...
Although YOLOv8 1.4.3 also fails to download with the same error I had for Coral
|
|
|
|
|
Please try again. Should be good now.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Works now, thanks for fixing
|
|
|
|
|
Running Ubuntu 22.04. Upon reboot, YOLOv5.NET keeps getting reinstalled on reboot. Any way to stop this?
Thanks
-- modified 3 days ago.
|
|
|
|
|