|
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
|
|
|
|
|
Hello all, everytime i try to install any of the modules i get a Error in install:404
thought maybe it was a issue with my firewall that im using UFW. im running ubuntu server 24.04
not sure if there is more ports i need to open other then the port that code project uses 32168
Server version: 2.6.4
System: Linux
Operating System: Linux (Ubuntu 24.04)
CPUs: 12th Gen Intel(R) Core(TM) i7-12700K (Intel)
1 CPU x 12 cores. 20 logical processors (x64)
GPU (Primary): NVIDIA GeForce RTX 2060 (6 GiB) (NVIDIA)
Driver: 535.161.08, CUDA: 12.2 (up to: 12.2), Compute: 7.5, cuDNN:
System RAM: 31 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.18
.NET SDK: 7.0.118
Default Python: 3.12.3
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
TU104 [GeForce RTX 2060] (rev a1):
Driver Version
Video Processor
System GPU info:
GPU 3D Usage 10%
GPU RAM Usage 1.5 GiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Hello,
I have been having this issue where I do not get motion alert at night, even though AI detects a car in my driveway at over 90%, but then it says "nothing found" and I do not get an alert.
My son comes home at night around 2am, so I am able to test this very regularly.
This only happens at night. My driveway is very well lit and very clear. Some nights it works fine and other nights it's a complete miss.
Why would AI not send an alert if it sees a car at 93%, but other other times it will send it?
My CPU hovers around 8-10% with 8 cameras and I use sub streams. I also have 16 Gigs of ram.. so I doubt it's a system limitation.
Any ideas?
|
|
|
|
|
I tend to see a large amount of failed inferences using the Coral ver 2.2.2 module as opposed to using the YOLOv5 .NET module. What are failed inferences? What does this mean?
Coral ver 2.2.2:
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": "TPU",
"inferenceLibrary": "TF-Lite",
"canUseGPU": "false",
"successfulInferences": 22839,
"failedInferences": 9402,
"numInferences": 32241,
"averageInferenceMs": 7.730373483952888
}
Started: 08 May 2024 3:36:09 PM Central Standard Time
LastSeen: 09 May 2024 5:05:38 PM Central Standard Time
Status: Stopped
Requests: 32268 (includes status calls)
YOLOv5 .NET:
Module 'Object Detection (YOLOv5 .NET)' 1.10.0 (ID: ObjectDetectionYOLOv5Net)
Valid: True
Module Path: <root>\modules\ObjectDetectionYOLOv5Net
AutoStart: True
Queue: objectdetection_queue
Runtime: dotnet
Runtime Loc: System
FilePath: bin\ObjectDetectionYOLOv5Net.exe
Start pause: 1 sec
Parallelism: 0
LogVerbosity:
Platforms: all
GPU Libraries: installed if available
GPU Enabled: enabled
Accelerator:
Half Precis.: enable
Environment Variables
CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5Net\custom-models
MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5Net\assets
MODEL_SIZE = MEDIUM
Status Data: {
"InferenceDevice": "GPU",
"inferenceLibrary": "DirectML",
"canUseGPU": true,
"successfulInferences": 62370,
"failedInferences": 0,
"numInferences": 62370,
"averageInferenceMs": 278,
"Histogram": {
"car": 112067,
"truck": 2855,
"person": 3756,
"bus": 166,
"bird": 6,
"motorcycle": 43,
"bicycle": 332,
"dog": 18,
"squirrel": 17,
"horse": 4,
"cow": 2,
"cat": 5,
"Car": 5310,
"Person": 81,
"Motorcycle": 3,
"Dog": 9
},
"NumItemsFound": 124674
}
Started: 10 May 2024 6:30:55 AM Central Standard Time
LastSeen: 11 May 2024 2:21:28 PM Central Standard Time
Status: Started
Requests: 62372 (includes status calls)
For reference, 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.5
.NET SDK: Not found
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 4%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
I am seeing the YOLOv5 .NET module displaying CPU (DirectML) despite the module info screen showing that GPU is enabled. Did I read somewhere that there is something wrong in the code that displays CPU instead of GPU on the status screen? I don't remember where I heard this.
|
|
|
|
|
i have a fresh install of code project 2.6.4 on ubuntu server 24.04, object detection installed fine on on the install but trying to install LPR and Training and i get a 404 error for both of them
Server version: 2.6.4
System: Linux
Operating System: Linux (Ubuntu 24.04)
CPUs: 12th Gen Intel(R) Core(TM) i7-12700K (Intel)
1 CPU x 12 cores. 20 logical processors (x64)
GPU (Primary): NVIDIA GeForce RTX 2060 (6 GiB) (NVIDIA)
Driver: 535.161.08, CUDA: 12.2 (up to: 12.2), Compute: 7.5, cuDNN:
System RAM: 31 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.18
.NET SDK: 7.0.118
Default Python: 3.12.3
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
TU104 [GeForce RTX 2060] (rev a1):
Driver Version
Video Processor
System GPU info:
GPU 3D Usage 10%
GPU RAM Usage 1.9 GiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Upgraded to 2.6.2, Blue Iris intermittent AI Error 500 are back.
Can anyone explain the actual root cause of these errors? I'm getting a bit tired of the game between BI and CodeProject where updating one or the other has a 75% chance of re-introducing these errors.
Thanks
|
|
|
|
|
I'm sure you've reported stuff before but it's extremely difficult for us to remember everyone's details on everything.
Can you please let us know
- what version of the server you're using
- on which module you're seeing the error
- The actual error (screen shot would be good)
- Have you tested the image that's throwing the 500 using the CodeProject.AI Explorer. It uses the same API as Blue Iris
cheers
Chris Maunder
|
|
|
|
|
For sure. For reference I was on 2.5.4 w/ Blue Iris 5.8.8.12 and had no AI errors.
Updated to CodeProject 2.6.2. Intermittent errors started every 15-30min on random cameras.
Decided to upgrade BI to latest 5.9.0.5. Still exist.
I'm using Coral TPU, tried various models and sizes. Multi-TPU disabled.
I don't know what images it's failing on unfortunately; BI doesn't give me the optics into that.
09-05-24-1817 hosted at ImgBB — ImgBB[^]
|
|
|
|
|
Does it work better if multi-TPU is enabled?
|
|
|
|
|
10:25:08:Unable to download module 'ObjectDetectionCoral' from https:
Is the url correct? It is under KB article. I tested downloading license plate module without issue.
|
|
|
|
|
Thanks very much for your report. Could you please share your System Info tab from your CodeProject.AI Server dashboard?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Please below
Server version: 2.5.1
System: Docker
Operating System: Linux (Linux 6.6.20-production+truenas #1 SMP PREEMPT_DYNAMIC Tue Apr 23 01:22:22 UTC 2024)
CPUs: Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz (Intel)
2 CPUs x 6 cores. 12 logical processors (x64)
System RAM: 31 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Docker
Runtime Env: Production
.NET framework: .NET 7.0.15
Default Python: 3.10
Video adapter info:
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Thanks very much for that. This is an older version, and I would recommend upgrading and see if that helps you.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
It doesn't matter what I have turned on... facial recognition, license plates, object detection - the resulting video turns all of the background a crunchy grey and only the moving objects are visible
|
|
|
|
|
I'm sorry but I don't even know where to start. Can you please explain what your are doing, what systems you are using, maybe a step-by-step of what you are doing and then we can start dissescting this.
cheers
Chris Maunder
|
|
|
|
|
I have been a BlueIris user for over 10years now and I just discovered CodeProject.AI
I installed it with no trouble. Version 2.6.2
I have been running it for about a week, day and night, on three PTZ Sunba cams.
I just have to say this because I don't get an opportunity to say this enough.
WOW
CodeProject.AI is way cool and it has far exceeded my expectations.
Currently I am adding to the field called To Cancel because I have nothing in the field To Confirm. So this is cancelling out at night when a big bug flys by the cam and AI thinks it is a frisbee. After every night this is getting better and better, for me anyway.
Many thanks to all of the people that have written code to make this as intelligent as it is. This really is impressive.
You just have to love open source....
Thank You
Pete
|
|
|
|
|
Thanks for dropping us the note - it's very much appreciated!
cheers
Chris Maunder
|
|
|
|
|
I've installed the latest version of AI server and I've been having issues with it. The service stopped working and would not load manually, so I removed AI server and deleted the programdata and program files folders. I reinstalled the server and now i'm getting another error with aiohttp. I installed aiohttp via python CLI, but that didn't seem to work.
15:00:11:System: Windows
15:00:11:Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
15:00:11:CPUs: AMD Ryzen 7 7800X3D 8-Core Processor (AMD)
15:00:11: 1 CPU x 8 cores. 16 logical processors (x64)
15:00:11:GPU (Primary): NVIDIA GeForce RTX 4090 (24 GiB) (NVIDIA)
15:00:11: Driver: 551.86, CUDA: 12.4 (up to: 12.4), Compute: 8.9, cuDNN: 8.5
15:00:11:System RAM: 63 GiB
15:00:11:Platform: Windows
15:00:11:BuildConfig: Release
15:00:11:Execution Env: Native
15:00:11:Runtime Env: Production
15:00:11:Runtimes installed:
15:00:11: .NET runtime: 8.0.2
15:00:11: .NET SDK: Not found
15:00:11: Default Python: 3.12.2
15:00:11: Go: Not found
15:00:11: NodeJS: Not found
15:00:11: Rust: Not found
15:00:11:App DataDir: C:\ProgramData\CodeProject\AI
15:00:11:Video adapter info:
15:00:11: AMD Radeon(TM) Graphics:
15:00:11: Driver Version 31.0.24002.92
15:00:11: Video Processor AMD Radeon Graphics Processor (0x164E)
15:00:11: NVIDIA GeForce RTX 4090:
15:00:11: Driver Version 31.0.15.5186
15:00:11: Video Processor NVIDIA GeForce RTX 4090
15:00:11:STARTING CODEPROJECT.AI SERVER
15:00:11:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
15:00:11:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
15:00:11:DEMO_MODULES_PATH = C:\Program Files\CodeProject\AI\demos\modules
15:00:11:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
15:00:11:PYTHON_PATH = \bin\windows\%PYTHON_NAME%\venv\Scripts\python
15:00:11:Data Dir = C:\ProgramData\CodeProject\AI
15:00:11:Server version: 2.6.2
15:00:14:
15:00:14:Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
15:00:14:Valid: True
15:00:14:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
15:00:14:AutoStart: True
15:00:14:Queue: objectdetection_queue
15:00:14:Runtime: python3.7
15:00:14:Runtime Loc: Shared
15:00:14:FilePath: detect_adapter.py
15:00:14:Start pause: 1 sec
15:00:14:Parallelism: 0
15:00:14:LogVerbosity:
15:00:14:Platforms: all,!raspberrypi,!jetson
15:00:14:GPU Libraries: installed if available
15:00:14:GPU Enabled: enabled
15:00:14:Accelerator:
15:00:15:Half Precis.: enable
15:00:15:Environment Variables
15:00:15:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
15:00:15:CPAI_MODULE_ENABLE_GPU = True
15:00:15:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
15:00:15:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
15:00:15:MODEL_SIZE = Medium
15:00:15:USE_CUDA = True
15:00:15:YOLOv5_AUTOINSTALL = false
15:00:15:YOLOv5_VERBOSE = false
15:00:15:
15:00:15:Started Object Detection (YOLOv5 6.2) module
15:00:15:detect_adapter.py: Traceback (most recent call last):
15:00:15:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 13, in
15:00:15:detect_adapter.py: from module_runner import ModuleRunner
15:00:15:detect_adapter.py: File "../../SDK/Python\module_runner.py", line 30, in
15:00:15:detect_adapter.py: import aiohttp
15:00:15:detect_adapter.py: ModuleNotFoundError: No module named 'aiohttp'
15:00:15:Module ObjectDetectionYOLOv5-6.2 has shutdown
15:00:15:detect_adapter.py: has exited
15:00:16:Server: This is the latest version
15:02:55:
15:02:55:Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
15:02:55:Valid: True
15:02:55:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
15:02:55:AutoStart: True
15:02:55:Queue: objectdetection_queue
15:02:55:Runtime: python3.7
15:02:55:Runtime Loc: Shared
15:02:55:FilePath: detect_adapter.py
15:02:55:Start pause: 1 sec
15:02:55:Parallelism: 0
15:02:55:LogVerbosity:
15:02:55:Platforms: all,!raspberrypi,!jetson
15:02:55:GPU Libraries: installed if available
15:02:55:GPU Enabled: enabled
15:02:55:Accelerator:
15:02:55:Half Precis.: enable
15:02:55:Environment Variables
15:02:55:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
15:02:55:CPAI_MODULE_ENABLE_GPU = True
15:02:55:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
15:02:55:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
15:02:55:MODEL_SIZE = Medium
15:02:55:USE_CUDA = True
15:02:55:YOLOv5_AUTOINSTALL = false
15:02:55:YOLOv5_VERBOSE = false
15:02:55:
15:02:55:Started Object Detection (YOLOv5 6.2) module
15:02:55:detect_adapter.py: Traceback (most recent call last):
15:02:55:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 13, in
15:02:55:detect_adapter.py: from module_runner import ModuleRunner
15:02:55:detect_adapter.py: File "../../SDK/Python\module_runner.py", line 30, in
15:02:55:detect_adapter.py: import aiohttp
15:02:55:detect_adapter.py: ModuleNotFoundError: No module named 'aiohttp'
15:02:55:Module ObjectDetectionYOLOv5-6.2 has shutdown
15:02:55:detect_adapter.py: has exited
|
|
|
|
|
I'm having the same issue. just did a install and i'm getting the same error. here is log file:
20:51:49:Update ObjectDetectionYOLOv5-6.2. Setting Restart=now
20:51:49:
20:51:49:Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
20:51:49:Valid: True
20:51:49:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
20:51:49:AutoStart: True
20:51:49:Queue: objectdetection_queue
20:51:49:Runtime: python3.7
20:51:49:Runtime Loc: Shared
20:51:49:FilePath: detect_adapter.py
20:51:49:Start pause: 1 sec
20:51:49:Parallelism: 0
20:51:49:LogVerbosity:
20:51:49:Platforms: all,!raspberrypi,!jetson
20:51:49:GPU Libraries: installed if available
20:51:49:GPU Enabled: enabled
20:51:49:Accelerator:
20:51:49:Half Precis.: enable
20:51:49:Environment Variables
20:51:49:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
20:51:49:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
20:51:49:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
20:51:49:MODEL_SIZE = Medium
20:51:49:USE_CUDA = True
20:51:49:YOLOv5_AUTOINSTALL = false
20:51:49:YOLOv5_VERBOSE = false
20:51:49:
20:51:49:Started Object Detection (YOLOv5 6.2) module
20:51:50:detect_adapter.py: Traceback (most recent call last):
20:51:50:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 13, in
20:51:50:detect_adapter.py: from module_runner import ModuleRunner
20:51:50:detect_adapter.py: File "../../SDK/Python\module_runner.py", line 30, in
20:51:50:detect_adapter.py: import aiohttp
20:51:50:detect_adapter.py: ModuleNotFoundError: No module named 'aiohttp'
20:51:50:Module ObjectDetectionYOLOv5-6.2 has shutdown
20:51:50:detect_adapter.py: has exited
Logging level
|
|
|
|
|
saw this else where:
startup notepad as admin,
edit file C:\Program Files\CodeProject\AI\setup.bat
change line in file from false the true.
set oneStepPIP=true
open command prompt line as admin
i need it to work on object detection, so goto folder
C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2
from there run this command:
C:\Program Files\CodeProject\AI\setup.bat
now whats happening is it looks like the entire Object detection module is downloading again.
goto al server web page and attempt to restart object detection. on my side it appears to be working.
but there was an error message. see below, version issue.
i'm rushed right now i'll be gone for a few hours, let me know if it works on your side. sorry for poor instructions.
CodeProject.AI Installer
======================================================================
356.0Gb of 487Gb available on Windows
General CodeProject.AI setup
Creating Directories...done
GPU support
CUDA Present...No
ROCm Present...No
Reading ObjectDetectionYOLOv5-6.2 settings.......done
Installing module Object Detection (YOLOv5 6.2) 1.9.1
Installing Python 3.7
Python 3.7 is already installed
Creating Virtual Environment (Shared)...Virtual Environment already present
Confirming we have Python 3.7 in our virtual environment...present
Downloading Standard YOLO models...already exists...Expanding...done.
Copying contents of models-yolo5-pt.zip to assets...done
Downloading Custom YOLO models...already exists...Expanding...done.
Copying contents of custom-models-yolo5-pt.zip to custom-models...done
Installing Python packages for Object Detection (YOLOv5 6.2)
Installing GPU-enabled libraries: If available
Ensuring Python package manager (pip) is installed...done
Ensuring Python package manager (pip) is up to date...done
Python packages specified by requirements.txt
Installing Packages into Virtual Environment...Success
Installing Python packages for the CodeProject.AI Server SDK
Ensuring Python package manager (pip) is installed...done
Ensuring Python package manager (pip) is up to date...done
Python packages specified by requirements.txt
Installing Packages into Virtual Environment...ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
botocore 1.33.13 requires urllib3<1.27,>=1.25.4; python_version < "3.10", but you have urllib3 2.0.7 which is incompatible.
Success
Scanning modulesettings for downloadable models...No models specified
Self test: Fusing layers...
YOLOv5.1m summary: 391 layers, 21805053 parameters, 0 gradients
Adding AutoShape...
Self-test passed
Module setup time 00:14:04.38
Setup complete
Total setup time 00:14:05.03
|
|
|
|
|
Thanks very much for your report. Could you please try re-installing the module? Typically this is an indication that installing the module failed.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
I have the same error "No module named 'aiohttp'"
How do you install the module aiohttp?
|
|
|
|
|
take a look at my instuctions above, its for windows. in a nutshell what i did was go to the batch file called C:\Program Files\CodeProject\AI\setup.bat. within that batch file i changed a line of code from false to true. after saving the file go to the folder that contains the module you need to work, in my case it was object detection yolov5-6.2. so from the command prompt as admin i went to this folder: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2 then from that folder call the setup.bat file. so do something like this command from the command prompt line:
C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2 C:\Program Files\CodeProject\AI\setup.bat
of course all on one line. try it and see what happens.
|
|
|
|
|