|
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
If there's no easy answer, then post a message describing your setup (paste what's in the System Info tab, please), what you are doing and what you see. 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.
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.
Here are the latest tips for those having issues installing our latest version. Be sure you're using the latest 2.2.4.
1. You see Python errors complaining about a version compatibility mismatch in urllib.
This is a known issue due to the massive, and conflicting, dependencies in some of the modules, most notably the yolo python modules. It's safe to ignore this error.
2. Object Detection fails: Unable to create YOLO detector for model
Please go to C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\assets. You should see a set of .pt files. If not, your installer failed.
Solution Reinstall the module (see below)
3. You see any error regarding a module not starting, a package not found, something failing or shutting down.
Please go to C:\Program Files\CodeProject\AI\modules[Module in question] and look at install.log. This may point to the installation failing or something failing to be downloaded
Solution Reinstall the module (see below)
4. I'm on Windows 10 and CodeProject.AI randomly stopped working after a Windows update
The KB5025221 update has been reported as causing troubles. If you have this update installed, try rolling it back. Microsoft has a tool to show/hide problematic updates.
5. I get "ModuleNotFoundError: No module named 'PIL'"
This means the module that threw the error wasn't installed fully, most likely due to a timeout.
Solution Reinstall the module (see below)
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 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.
In Docker you will need to open a terminal into the docker container. Docker Desktop, Visual Studio Code, or using docker attach . cd to /app/modules/module-id where module-id is the id of the module you need to resinstall. Run sudo bash ../../setup.sh to force a manual reinstall of that module.
NONE OF THESE HELP?
Post a message, ensuring you include the info we mentioned at the top of this message, and we'll dive in and see what we can do
IF ALL ELSE FAILS
Here are previous version downloads that will allow you to roll back
Version 2.1.10
Prev. generation: Version 2.0.8
cheers
Chris Maunder
modified 20-Sep-23 15:25pm.
|
|
|
|
|
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
|
|
|
|
|
If you've come across an issue in building, installing, running or configuring CodeProject.AI Server we're here to help. We just ask that you provide enough info for us to dig in quickly.
Please include:
Environment:
- What version of CodeProject.AI Server are you using?
- What Operating system (include Windows version, or if docker just 'Docker')
- Are you using a GPU? If so:
- What brand / model of GPU
- What driver version
- If the card is Nvidia, what version of CUDA is installed?
Some tips:
- In the root directory of CodeProject.AI Server is a logs/ directory. Take a look in there to see if you spot any logs that might be worth including in your post (remove personal info though!)
- Have you changed any settings? If so, let us know.
- We can usually only help with questions around CodeProject.AI Server. Questions about third party apps are usually outside our scope, so please keep the focus on CodeProject.AI Server.
cheers
Chris Maunder
modified 19-Dec-22 18:14pm.
|
|
|
|
|
Every since I updated to v2.1.X, I have had nothing but issues. Is there a place I can download previous versions that I know worked well with BlueIris? Specifically 2.0.8?
|
|
|
|
|
|
Cool, thank you. I hope this fixes my issues. 
|
|
|
|
|
I has issues getting (YOLOv5 6.2) 1.6.1 installed. I get the same read timeout errors when attempting to install Object Detection (YOLOv5 6.2) 1.6.1. Is there an issue with the https://download.pytorch.org site? All the pulls keep timing out for me. The only way I can install pytorch is to run "pip3 install torch"
I was able to get (YOLOv5 6.2) 1.6.1 installed by doing the following manual steps:
Open command prompt with admin rights
run "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\activate"
run cd "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo"
## commented out torch install lines from requirements.windows.cuda.txt
run pip3 install torch
run pip install -r requirements.windows.cuda.txt
However, I can't get it to use the GPU. It will only run in CPU mode. The Object Detection (YOLOv5 .NET) 1.6 will run in GPU mode. Why won't (YOLOv5 6.2) 1.6.1 run in GPU mode?
Server version: 2.2.4-Beta
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (Intel)
1 CPU x 4 cores. 8 logical processors (x64)
GPU: NVIDIA GeForce GT 1030 (2 GiB) (NVIDIA)
Driver: 536.23 CUDA: 11.7.64 (max supported: 12.2) Compute: 6.1
System RAM: 16 GiB
Target: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.5
Video adapter info:
NVIDIA GeForce GT 1030:
Driver Version 31.0.15.3623
Video Processor NVIDIA GeForce GT 1030
Intel(R) HD Graphics 630:
Driver Version 31.0.101.2111
Video Processor Intel(R) HD Graphics Family
System GPU info:
GPU 3D Usage 12%
GPU RAM Usage 414 MiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
Module 'Object Detection (YOLOv5 6.2)' 1.6.1 (ID: ObjectDetectionYolo)
Module Path: <root>\modules\ObjectDetectionYolo
AutoStart: True
Queue: objectdetection_queue
Platforms: all
GPU: Support enabled
Parallelism: 0
Accelerator:
Half Precis.: enable
Runtime: python37
Runtime Loc: Shared
FilePath: detect_adapter.py
Pre installed: False
Start pause: 1 sec
LogVerbosity:
Valid: True
Environment Variables
APPDIR = <root>\modules\ObjectDetectionYolo
CPAI_MODULE_SUPPORT_GPU = True
CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYolo\custom-models
MODELS_DIR = <root>\modules\ObjectDetectionYolo\assets
MODEL_SIZE = Medium
USE_CUDA = True
YOLOv5_AUTOINSTALL = false
YOLOv5_VERBOSE = false
Started: 28 Sep 2023 3:31:19 PM Eastern Standard Time
LastSeen: 28 Sep 2023 4:01:08 PM Eastern Standard Time
Status: Stopped
Processed: 296
Provider:
CanUseGPU: False
HardwareType: CPU
Installation Log
2023-09-27 18:27:53: Installing CodeProject.AI Analysis Module
2023-09-27 18:27:53: ========================================================================
2023-09-27 18:27:53: CodeProject.AI Installer
2023-09-27 18:27:53: ========================================================================
2023-09-27 18:27:53: Checking GPU support
2023-09-27 18:27:53: CUDA Present...True
2023-09-27 18:27:53: Allowing GPU Support: Yes
2023-09-27 18:27:53: Allowing CUDA Support: Yes
2023-09-27 18:27:53: General CodeProject.AI setup
2023-09-27 18:27:53: Creating Directories...Done
2023-09-27 18:27:53: Processing Core SDK
2023-09-27 18:27:53: Installing module ObjectDetectionYolo 1.6.1
2023-09-27 18:27:53: Checking for python37 download...Present
2023-09-27 18:27:53: Creating Virtual Environment (Shared)...Python 3.7 Already present
2023-09-27 18:27:53: Enabling our Virtual Environment...Done
2023-09-27 18:27:53: Confirming we have Python 3.7...present
2023-09-27 18:27:53: CUDA version is 11.7
2023-09-27 18:27:54: Ensuring Python package manager (pip) is installed...Done
2023-09-27 18:27:55: Ensuring Python package manager (pip) is up to date...Done
2023-09-27 18:27:55: Choosing Python packages from requirements.windows.cuda.txt
2023-09-27 18:28:33: ERROR: Exception:
2023-09-27 18:28:33: Traceback (most recent call last):
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
2023-09-27 18:28:33: yield
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
2023-09-27 18:28:33: data = self._fp_read(amt) if not fp_closed else b""
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in _fp_read
2023-09-27 18:28:33: data = self._fp.read(chunk_amt)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 90, in read
2023-09-27 18:28:33: data = self.__fp.read(amt)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\http\client.py", line 461, in read
2023-09-27 18:28:33: n = self.readinto(b)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\http\client.py", line 505, in readinto
2023-09-27 18:28:33: n = self.fp.readinto(b)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\socket.py", line 589, in readinto
2023-09-27 18:28:33: return self._sock.recv_into(b)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\ssl.py", line 1071, in recv_into
2023-09-27 18:28:33: return self.read(nbytes, buffer)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\ssl.py", line 929, in read
2023-09-27 18:28:33: return self._sslobj.read(len, buffer)
2023-09-27 18:28:33: socket.timeout: The read operation timed out
2023-09-27 18:28:33: During handling of the above exception, another exception occurred:
2023-09-27 18:28:33: Traceback (most recent call last):
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
2023-09-27 18:28:33: status = run_func(*args)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
2023-09-27 18:28:33: return func(self, options, args)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\commands\install.py", line 378, in run
2023-09-27 18:28:33: reqs, check_supported_wheels=not options.target_dir
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 93, in resolve
2023-09-27 18:28:33: collected.requirements, max_rounds=limit_how_complex_resolution_can_be
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
2023-09-27 18:28:33: state = resolution.resolve(requirements, max_rounds=max_rounds)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve
2023-09-27 18:28:33: self._add_to_criteria(self.state.criteria, r, parent=None)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
2023-09-27 18:28:33: if not criterion.candidates:
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
2023-09-27 18:28:33: return bool(self._sequence)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
2023-09-27 18:28:33: return any(self)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in
2023-09-27 18:28:33: return (c for c in iterator if id(c) not in self._incompatible_ids)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
2023-09-27 18:28:33: candidate = func()
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 211, in _make_candidate_from_link
2023-09-27 18:28:33: version=version,
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 299, in __init__
2023-09-27 18:28:33: version=version,
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__
2023-09-27 18:28:33: self.dist = self._prepare()
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
2023-09-27 18:28:33: dist = self._prepare_distribution()
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 304, in _prepare_distribution
2023-09-27 18:28:33: return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 538, in prepare_linked_requirement
2023-09-27 18:28:33: return self._prepare_linked_requirement(req, parallel_builds)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 615, in _prepare_linked_requirement
2023-09-27 18:28:33: hashes,
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 170, in unpack_url
2023-09-27 18:28:33: hashes=hashes,
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 107, in get_http_url
2023-09-27 18:28:33: from_path, content_type = download(link, temp_dir.path)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\network\download.py", line 147, in __call__
2023-09-27 18:28:33: for chunk in chunks:
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\network\utils.py", line 87, in response_chunks
2023-09-27 18:28:33: decode_content=False,
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
2023-09-27 18:28:33: data = self.read(amt=amt, decode_content=decode_content)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 587, in read
2023-09-27 18:28:33: raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\contextlib.py", line 130, in __exit__
2023-09-27 18:28:33: self.gen.throw(type, value, traceback)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
2023-09-27 18:28:33: raise ReadTimeoutError(self._pool, None, "Read timed out.")
2023-09-27 18:28:33: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.
2023-09-27 18:28:33: Installing Packages into Virtual Environment...Success
2023-09-27 18:28:38: Downloading Standard YOLO models...Expanding...Done.
2023-09-27 18:28:46: Downloading Custom YOLO models...Expanding...Done.
2023-09-27 18:28:46: Installing Server SDK support:
2023-09-27 18:28:46: CUDA version is 11.7
2023-09-27 18:28:47: Ensuring Python package manager (pip) is installed...Done
2023-09-27 18:28:48: Ensuring Python package manager (pip) is up to date...Done
2023-09-27 18:28:48: Choosing Python packages from requirements.txt
2023-09-27 18:28:53: Installing Packages into Virtual Environment...Success
2023-09-27 18:28:53: Setup complete
Installer exited with code 0
|
|
|
|
|
Uninstalled CodeProject AI, updated video driver, installed CUDA 12.2, ran install_CDnn.bat and rebooted. Reinstalled CodeProject AI 2.2.4. Module installs failed again with a timeout on the pytorch install. I had to manually install torch and torchvision running the following steps:
###################################################################################
##
## RUN THESE COMMANDS TO INSTALL PACKAGES SINCE THE PYTORCH.ORG LINKS TIMEOUT
##
###################################################################################
## ObjectDetectionYolo
"C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\activate"
cd "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo"
## commented out torch install lines from requirements.windows.cuda.txt
pip3 install torch torchvision
pip install -r requirements.windows.cuda.txt
## FaceProcessing
cd "C:\Program Files\CodeProject\AI\modules\FaceProcessing"
## commented out torch install lines from requirements.windows.cuda.txt
pip install -r requirements.windows.cuda.txt
(YOLOv5 6.2) 1.6.1 is still not using GPU!
|
|
|
|
|
CodeProject AI 2.2.4 install still fails to download modules. I had this on Windows Server 2022, now a clean install on Windows 11 gives me exact thesame result:
21:58:18:Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
21:58:18:CPUs: 12th Gen Intel(R) Core(TM) i7-1265U (Intel)
21:58:18: 1 CPU x 10 cores. 12 logical processors (x64)
21:58:18:GPU: NVIDIA GeForce MX550 (2 GiB) (NVIDIA)
21:58:18: Driver: 537.42 CUDA: 12.2.140 (max supported: 12.2) Compute: 7.5
21:58:18:System RAM: 16 GiB
21:58:18:Target: Windows
21:58:18:BuildConfig: Release
21:58:18:Execution Env: Native
21:58:18:Runtime Env: Production
21:58:18:.NET framework: .NET 7.0.11
21:58:18:App DataDir: C:\ProgramData\CodeProject\AI
21:58:18:Video adapter info:
21:58:18: NVIDIA GeForce MX550:
21:58:18: Driver Version 31.0.15.3742
21:58:18: Video Processor NVIDIA GeForce MX550
21:58:18: Intel(R) UHD Graphics:
21:58:18: Driver Version 31.0.101.4316
21:58:18: Video Processor Intel(R) UHD Graphics Family
21:58:18:STARTING CODEPROJECT.AI SERVER
21:58:18:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
21:58:18:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
21:58:18:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
21:58:18:PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
21:58:18:Data Dir = C:\ProgramData\CodeProject\AI
21:58:18:Server version: 2.2.4-Beta
21:58:18:ModuleRunner Start
21:58:18:Starting Background AI Modules
21:58:21:Setting up initial modules. Please be patient...
21:58:21:Installing initial module FaceProcessing.
21:58:21:Preparing to install module 'FaceProcessing'
21:58:22:Unable to install FaceProcessing: Unable to find the download info for 'FaceProcessing'
21:58:22:Installing initial module ObjectDetectionNet.
21:58:22:Preparing to install module 'ObjectDetectionNet'
21:58:23:Unable to install ObjectDetectionNet: Unable to find the download info for 'ObjectDetectionNet'
21:58:23:Installing initial module ObjectDetectionYolo.
21:58:23:Preparing to install module 'ObjectDetectionYolo'
21:58:23:Current Version is 2.2.4-Beta
21:58:23:Server: This is the latest version
21:58:23:Unable to install ObjectDetectionYolo: Unable to find the download info for 'ObjectDetectionYolo'
I suppose the url in the setup.bat script is not supposed to be plain browsable ?
https://codeproject-ai.s3.ca-central-1.amazonaws.com/sense/installer/dev/[^]
|
|
|
|
|
Could you please try un-installing then re-installing the modules?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
And how can I do that? No modules shown in the webinterface, nothing downloded either.
In the past the only possibility was to download and install the modules manually...
|
|
|
|
|
Do you see this in your Install Modules tab? You should be able to Uninstall and then re-install here.

Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Don't know what changed, waited for about 2 hours yesterday for the modules to come up (even cache clears, incognito mode, restart service, etc ...) , but no go .
Today on the same machine: Bingo ! The install modules page was populated so installation was possible.
Using YOLOv5 6.2 in combo with CUDA 12.2, working great, getting results, roundtrip ok -> nice !
Will try to upgrade my production server too
|
|
|
|
|
Object Detection (YOLOv5 3.1) startup error: ModuleNotFoundError: No module named 'cv2'
Module 'Object Detection (YOLOv5 3.1)' 1.5 (ID: YOLOv5-3.1)
Module Path: <root>\modules\YOLOv5-3.1
AutoStart: False
Queue: objectdetection_queue
Platforms: windows,linux,linux-arm64,macos
GPU: Support enabled
Parallelism: 0
Accelerator:
Half Precis.: enable
Runtime: python37
Runtime Loc: Local
FilePath: yolo_adapter.py
Pre installed: False
Start pause: 1 sec
LogVerbosity:
Valid: True
Environment Variables
APPDIR = <root>\modules\YOLOv5-3.1
CPAI_MODULE_SUPPORT_GPU = True
DATA_DIR = C:\ProgramData\CodeProject\AI
MODE = MEDIUM
MODELS_DIR = <root>\modules\YOLOv5-3.1\assets
PROFILE = desktop_gpu
TEMP_PATH = <root>\modules\YOLOv5-3.1\tempstore
USE_CUDA = True
YOLOv5_VERBOSE = false
Started: 27 Sep 2023 11:20:10 PM Eastern Standard Time
LastSeen: Not seen
Status: Started
Processed: 0
Provider:
CanUseGPU: False
HardwareType: CPU
Module 'Object Detection (YOLOv5 3.1)' 1.5 (ID: YOLOv5-3.1)
Module Path: <root>\modules\YOLOv5-3.1
AutoStart: False
Queue: objectdetection_queue
Platforms: windows,linux,linux-arm64,macos
GPU: Support enabled
Parallelism: 0
Accelerator:
Half Precis.: enable
Runtime: python37
Runtime Loc: Local
FilePath: yolo_adapter.py
Pre installed: False
Start pause: 1 sec
LogVerbosity:
Valid: True
Environment Variables
APPDIR = <root>\modules\YOLOv5-3.1
CPAI_MODULE_SUPPORT_GPU = True
DATA_DIR = C:\ProgramData\CodeProject\AI
MODE = MEDIUM
MODELS_DIR = <root>\modules\YOLOv5-3.1\assets
PROFILE = desktop_gpu
TEMP_PATH = <root>\modules\YOLOv5-3.1\tempstore
USE_CUDA = True
YOLOv5_VERBOSE = false
Started: 27 Sep 2023 11:20:10 PM Eastern Standard Time
LastSeen: Not seen
Status: Started
Processed: 0
Provider:
CanUseGPU: False
HardwareType: CPU
Installation Log
2023-09-27 18:39:19: Installing CodeProject.AI Analysis Module
2023-09-27 18:39:19: ========================================================================
2023-09-27 18:39:19: CodeProject.AI Installer
2023-09-27 18:39:19: ========================================================================
2023-09-27 18:39:19: Checking GPU support
2023-09-27 18:39:19: CUDA Present...True
2023-09-27 18:39:20: Allowing GPU Support: Yes
2023-09-27 18:39:20: Allowing CUDA Support: Yes
2023-09-27 18:39:20: General CodeProject.AI setup
2023-09-27 18:39:20: Creating Directories...Done
2023-09-27 18:39:20: Processing Core SDK
2023-09-27 18:39:20: Installing module YOLOv5-3.1 1.5
2023-09-27 18:39:20: Checking for python37 download...Present
2023-09-27 18:39:26: Creating Virtual Environment (Local)...Done
2023-09-27 18:39:26: Enabling our Virtual Environment...Done
2023-09-27 18:39:26: Confirming we have Python 3.7...present
2023-09-27 18:39:26: Re-installing python setuptools. Just in case.
2023-09-27 18:39:30: CUDA version is 11.7
2023-09-27 18:39:31: Ensuring Python package manager (pip) is installed...Done
2023-09-27 18:39:38: Ensuring Python package manager (pip) is up to date...Done
2023-09-27 18:39:38: Choosing Python packages from requirements.windows.cuda.txt
2023-09-27 18:39:57: ERROR: Exception:
2023-09-27 18:39:57: Traceback (most recent call last):
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
2023-09-27 18:39:57: yield
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
2023-09-27 18:39:57: data = self._fp_read(amt) if not fp_closed else b""
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 527, in _fp_read
2023-09-27 18:39:57: return self._fp.read(amt) if amt is not None else self._fp.read()
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 90, in read
2023-09-27 18:39:57: data = self.__fp.read(amt)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\http\client.py", line 461, in read
2023-09-27 18:39:57: n = self.readinto(b)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\http\client.py", line 505, in readinto
2023-09-27 18:39:57: n = self.fp.readinto(b)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\socket.py", line 589, in readinto
2023-09-27 18:39:57: return self._sock.recv_into(b)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\ssl.py", line 1071, in recv_into
2023-09-27 18:39:57: return self.read(nbytes, buffer)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\ssl.py", line 929, in read
2023-09-27 18:39:57: return self._sslobj.read(len, buffer)
2023-09-27 18:39:57: socket.timeout: The read operation timed out
2023-09-27 18:39:57: During handling of the above exception, another exception occurred:
2023-09-27 18:39:57: Traceback (most recent call last):
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
2023-09-27 18:39:57: status = run_func(*args)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
2023-09-27 18:39:57: return func(self, options, args)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\commands\install.py", line 378, in run
2023-09-27 18:39:57: reqs, check_supported_wheels=not options.target_dir
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 93, in resolve
2023-09-27 18:39:57: collected.requirements, max_rounds=limit_how_complex_resolution_can_be
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
2023-09-27 18:39:57: state = resolution.resolve(requirements, max_rounds=max_rounds)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve
2023-09-27 18:39:57: self._add_to_criteria(self.state.criteria, r, parent=None)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
2023-09-27 18:39:57: if not criterion.candidates:
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
2023-09-27 18:39:57: return bool(self._sequence)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
2023-09-27 18:39:57: return any(self)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in
2023-09-27 18:39:57: return (c for c in iterator if id(c) not in self._incompatible_ids)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
2023-09-27 18:39:57: candidate = func()
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 211, in _make_candidate_from_link
2023-09-27 18:39:57: version=version,
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 299, in __init__
2023-09-27 18:39:57: version=version,
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__
2023-09-27 18:39:57: self.dist = self._prepare()
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
2023-09-27 18:39:57: dist = self._prepare_distribution()
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 304, in _prepare_distribution
2023-09-27 18:39:57: return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 538, in prepare_linked_requirement
2023-09-27 18:39:57: return self._prepare_linked_requirement(req, parallel_builds)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 615, in _prepare_linked_requirement
2023-09-27 18:39:57: hashes,
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 170, in unpack_url
2023-09-27 18:39:57: hashes=hashes,
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 107, in get_http_url
2023-09-27 18:39:57: from_path, content_type = download(link, temp_dir.path)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\network\download.py", line 147, in __call__
2023-09-27 18:39:57: for chunk in chunks:
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_internal\network\utils.py", line 87, in response_chunks
2023-09-27 18:39:57: decode_content=False,
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
2023-09-27 18:39:57: data = self.read(amt=amt, decode_content=decode_content)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 587, in read
2023-09-27 18:39:57: raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\contextlib.py", line 130, in __exit__
2023-09-27 18:39:57: self.gen.throw(type, value, traceback)
2023-09-27 18:39:57: File "C:\Program Files\CodeProject\AI\modules\YOLOv5-3.1\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
2023-09-27 18:39:57: raise ReadTimeoutError(self._pool, None, "Read timed out.")
2023-09-27 18:39:57: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.
2023-09-27 18:39:58: Installing Packages into Virtual Environment...Success
2023-09-27 18:40:04: Downloading Standard YOLOv5 models...Expanding...Done.
2023-09-27 18:40:09: Downloading Custom YOLOv5 models...Expanding...Done.
2023-09-27 18:40:09: Installing Server SDK support:
2023-09-27 18:40:09: CUDA version is 11.7
2023-09-27 18:40:10: Ensuring Python package manager (pip) is installed...Done
2023-09-27 18:40:10: Ensuring Python package manager (pip) is up to date...Done
2023-09-27 18:40:10: Choosing Python packages from requirements.txt
2023-09-27 18:40:16: Installing Packages into Virtual Environment...Success
2023-09-27 18:40:16: Setup complete
Installer exited with code 0
modified yesterday.
|
|
|
|
|
|
I was able to get (YOLOv5 6.2) 1.6.1 installed by doing the following manual steps:
Open command prompt with admin rights
run "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\activate"
run cd "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo"
## commented out torch install lines from requirements.windows.cuda.txt
run pip3 install torch
run pip install -r requirements.windows.cuda.txt
However, I can't get it to use the GPU. It will only run in CPU mode. The Object Detection (YOLOv5 .NET) 1.6 will run in GPU mode. Why won't (YOLOv5 6.2) 1.6.1 run in GPU mode?
I posted a separate thread about this issue.
|
|
|
|
|
Install issues with YOLOv5 3.1. It wont install pytorch. I have tried uninstalling, deleting install folder and reinstalling but I always get the same error. I have tried via command prompt per documents and via the web interface. Both fail.
Server version: 2.2.4-Beta
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (Intel)
1 CPU x 4 cores. 8 logical processors (x64)
GPU: NVIDIA GeForce GT 1030 (2 GiB) (NVIDIA)
Driver: 536.23 CUDA: 11.7.64 (max supported: 12.2) Compute: 6.1
System RAM: 16 GiB
Target: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.5
Video adapter info:
NVIDIA GeForce GT 1030:
Driver Version 31.0.15.3623
Video Processor NVIDIA GeForce GT 1030
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 421 MiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo>..\..\setup.bat
Installing CodeProject.AI Analysis Module
========================================================================
CodeProject.AI Installer
========================================================================
Checking GPU support
CUDA Present...True
Allowing GPU Support: Yes
Allowing CUDA Support: Yes
General CodeProject.AI setup
Creating Directories...Done
Processing Core SDK
Installing module ObjectDetectionYolo 1.6.1
Checking for python37 download...Present
Creating Virtual Environment (Shared)...Python 3.7 Already present
Enabling our Virtual Environment...Done
Confirming we have Python 3.7...present
CUDA version is 11.7
Ensuring Python package manager (pip) is installed...Done
Ensuring Python package manager (pip) is up to date...Done
Choosing Python packages from requirements.windows.cuda.txt
Installing Packages into Virtual Environment...ERROR: Exception:
Traceback (most recent call last):
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
yield
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
data = self._fp_read(amt) if not fp_closed else b""
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in _fp_read
data = self._fp.read(chunk_amt)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 90, in read
data = self.__fp.read(amt)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\http\client.py", line 461, in read
n = self.readinto(b)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\http\client.py", line 505, in readinto
n = self.fp.readinto(b)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\ssl.py", line 1071, in recv_into
return self.read(nbytes, buffer)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\ssl.py", line 929, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
return func(self, options, args)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\commands\install.py", line 378, in run
reqs, check_supported_wheels=not options.target_dir
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 93, in resolve
collected.requirements, max_rounds=limit_how_complex_resolution_can_be
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
return bool(self._sequence)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
return any(self)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in <genexpr>
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 211, in _make_candidate_from_link
version=version,
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 299, in __init__
version=version,
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__
self.dist = self._prepare()
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
dist = self._prepare_distribution()
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 304, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 538, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 615, in _prepare_linked_requirement
hashes,
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 170, in unpack_url
hashes=hashes,
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 107, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\network\download.py", line 147, in __call__
for chunk in chunks:
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\network\utils.py", line 87, in response_chunks
decode_content=False,
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 587, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.
Success
Downloading Standard YOLO models...already exists...Expanding...Done.
Downloading Custom YOLO models...already exists...Expanding...Done.
Installing Server SDK support:
CUDA version is 11.7
Ensuring Python package manager (pip) is installed...Done
Ensuring Python package manager (pip) is up to date...Done
Choosing Python packages from requirements.txt
Installing Packages into Virtual Environment...Success
Setup complete
|
|
|
|
|
For your NVIDIA GeForce GT 1030 GPU and CUDA version you have installed you should be using the Object Detection (YOLOv5 6.2) module not the Object Detection (YOLOv5 3.1) module
|
|
|
|
|
You are correct. Unfortunately, I get the same read timeout error when attempting to install Object Detection (YOLOv5 6.2) 1.6.1. Is there an issue with the https://download.pytorch.org/whl/cu117/torch-1.13.0%2Bcu117-cp37-cp37m-win_amd64.whl[^] site? All the pulls keep timing out for me. The only way I can install pytorch is to run "pip3 install torch"
I was able to get (YOLOv5 6.2) 1.6.1 installed by doing the following steps
"C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\activate"
cd "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo"
## commented out torch install lines from requirements.windows.cuda.txt
pip3 install torch
pip install -r requirements.windows.cuda.txt
However, I can't get it to use the GPU. It will only run CPU. The Object Detection (YOLOv5 .NET) 1.6 will run in GPU mode. Why wont (YOLOv5 6.2) 1.6.1 run in GPU mode?
Module 'Object Detection (YOLOv5 6.2)' 1.6.1 (ID: ObjectDetectionYolo)
Module Path: <root>\modules\ObjectDetectionYolo
AutoStart: True
Queue: objectdetection_queue
Platforms: all
GPU: Support enabled
Parallelism: 0
Accelerator:
Half Precis.: enable
Runtime: python37
Runtime Loc: Shared
FilePath: detect_adapter.py
Pre installed: False
Start pause: 1 sec
LogVerbosity:
Valid: True
Environment Variables
APPDIR = <root>\modules\ObjectDetectionYolo
CPAI_MODULE_SUPPORT_GPU = True
CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYolo\custom-models
MODELS_DIR = <root>\modules\ObjectDetectionYolo\assets
MODEL_SIZE = Medium
USE_CUDA = True
YOLOv5_AUTOINSTALL = false
YOLOv5_VERBOSE = false
Started: 28 Sep 2023 3:31:19 PM Eastern Standard Time
LastSeen: 28 Sep 2023 4:01:08 PM Eastern Standard Time
Status: Stopped
Processed: 296
Provider:
CanUseGPU: False
HardwareType: CPU
Installation Log
2023-09-27 18:27:53: Installing CodeProject.AI Analysis Module
2023-09-27 18:27:53: ========================================================================
2023-09-27 18:27:53: CodeProject.AI Installer
2023-09-27 18:27:53: ========================================================================
2023-09-27 18:27:53: Checking GPU support
2023-09-27 18:27:53: CUDA Present...True
2023-09-27 18:27:53: Allowing GPU Support: Yes
2023-09-27 18:27:53: Allowing CUDA Support: Yes
2023-09-27 18:27:53: General CodeProject.AI setup
2023-09-27 18:27:53: Creating Directories...Done
2023-09-27 18:27:53: Processing Core SDK
2023-09-27 18:27:53: Installing module ObjectDetectionYolo 1.6.1
2023-09-27 18:27:53: Checking for python37 download...Present
2023-09-27 18:27:53: Creating Virtual Environment (Shared)...Python 3.7 Already present
2023-09-27 18:27:53: Enabling our Virtual Environment...Done
2023-09-27 18:27:53: Confirming we have Python 3.7...present
2023-09-27 18:27:53: CUDA version is 11.7
2023-09-27 18:27:54: Ensuring Python package manager (pip) is installed...Done
2023-09-27 18:27:55: Ensuring Python package manager (pip) is up to date...Done
2023-09-27 18:27:55: Choosing Python packages from requirements.windows.cuda.txt
2023-09-27 18:28:33: ERROR: Exception:
2023-09-27 18:28:33: Traceback (most recent call last):
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
2023-09-27 18:28:33: yield
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
2023-09-27 18:28:33: data = self._fp_read(amt) if not fp_closed else b""
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in _fp_read
2023-09-27 18:28:33: data = self._fp.read(chunk_amt)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 90, in read
2023-09-27 18:28:33: data = self.__fp.read(amt)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\http\client.py", line 461, in read
2023-09-27 18:28:33: n = self.readinto(b)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\http\client.py", line 505, in readinto
2023-09-27 18:28:33: n = self.fp.readinto(b)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\socket.py", line 589, in readinto
2023-09-27 18:28:33: return self._sock.recv_into(b)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\ssl.py", line 1071, in recv_into
2023-09-27 18:28:33: return self.read(nbytes, buffer)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\ssl.py", line 929, in read
2023-09-27 18:28:33: return self._sslobj.read(len, buffer)
2023-09-27 18:28:33: socket.timeout: The read operation timed out
2023-09-27 18:28:33: During handling of the above exception, another exception occurred:
2023-09-27 18:28:33: Traceback (most recent call last):
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
2023-09-27 18:28:33: status = run_func(*args)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
2023-09-27 18:28:33: return func(self, options, args)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\commands\install.py", line 378, in run
2023-09-27 18:28:33: reqs, check_supported_wheels=not options.target_dir
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 93, in resolve
2023-09-27 18:28:33: collected.requirements, max_rounds=limit_how_complex_resolution_can_be
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
2023-09-27 18:28:33: state = resolution.resolve(requirements, max_rounds=max_rounds)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve
2023-09-27 18:28:33: self._add_to_criteria(self.state.criteria, r, parent=None)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
2023-09-27 18:28:33: if not criterion.candidates:
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
2023-09-27 18:28:33: return bool(self._sequence)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
2023-09-27 18:28:33: return any(self)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in
2023-09-27 18:28:33: return (c for c in iterator if id(c) not in self._incompatible_ids)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
2023-09-27 18:28:33: candidate = func()
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 211, in _make_candidate_from_link
2023-09-27 18:28:33: version=version,
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 299, in __init__
2023-09-27 18:28:33: version=version,
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__
2023-09-27 18:28:33: self.dist = self._prepare()
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
2023-09-27 18:28:33: dist = self._prepare_distribution()
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 304, in _prepare_distribution
2023-09-27 18:28:33: return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 538, in prepare_linked_requirement
2023-09-27 18:28:33: return self._prepare_linked_requirement(req, parallel_builds)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 615, in _prepare_linked_requirement
2023-09-27 18:28:33: hashes,
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 170, in unpack_url
2023-09-27 18:28:33: hashes=hashes,
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 107, in get_http_url
2023-09-27 18:28:33: from_path, content_type = download(link, temp_dir.path)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\network\download.py", line 147, in __call__
2023-09-27 18:28:33: for chunk in chunks:
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\network\utils.py", line 87, in response_chunks
2023-09-27 18:28:33: decode_content=False,
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
2023-09-27 18:28:33: data = self.read(amt=amt, decode_content=decode_content)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 587, in read
2023-09-27 18:28:33: raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\contextlib.py", line 130, in __exit__
2023-09-27 18:28:33: self.gen.throw(type, value, traceback)
2023-09-27 18:28:33: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
2023-09-27 18:28:33: raise ReadTimeoutError(self._pool, None, "Read timed out.")
2023-09-27 18:28:33: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.
2023-09-27 18:28:33: Installing Packages into Virtual Environment...Success
2023-09-27 18:28:38: Downloading Standard YOLO models...Expanding...Done.
2023-09-27 18:28:46: Downloading Custom YOLO models...Expanding...Done.
2023-09-27 18:28:46: Installing Server SDK support:
2023-09-27 18:28:46: CUDA version is 11.7
2023-09-27 18:28:47: Ensuring Python package manager (pip) is installed...Done
2023-09-27 18:28:48: Ensuring Python package manager (pip) is up to date...Done
2023-09-27 18:28:48: Choosing Python packages from requirements.txt
2023-09-27 18:28:53: Installing Packages into Virtual Environment...Success
2023-09-27 18:28:53: Setup complete
Installer exited with code 0
|
|
|
|
|
Hello, I just wanted to report that I upgraded my setup and it went smoothly! Thanks for that.
The only small thing I had to guess about was whether to delete modules and settings? I chose no, but a default when upgrading, maybe based on version upgrading from?, might be a small anxiety reducer.
Cudos to the team!!
--OC
|
|
|
|
|
1: I have tried the Coral USB Accelerator on both Windows 10 and Ubuntu Docker versions of CodeProject AI server. I get nothing faster than ~1000 ms, even in the explorer. Is the general feeling that this is due to the full coco model in medium size, and might be improved with more targeted models?
2: In the Linux Docker Coral module, I see the module showing it is running as CPU,
where in Windows, it shows some kind of GPU. (sorry, I don't remember exactly.) Is it really using the Coral in Linux?
Thanks in advance.
|
|
|
|
|
In source, CodeProject.AI-Server-2.1.0-main\CodeProject.AI-Server-2.1.0\demos\Python\ObjectDetect
I see rtsp_videodetect.py and options.py
In options.py,
rtsp_user = os.getenv("CPAI_RTSP_DEMO_USER", "User")
rtsp_pass = os.getenv("CPAI_RTSP_DEMO_PASS", "Pass")
rtsp_IP = os.getenv("CPAI_RTSP_DEMO_IP", "10.0.0.204")
rtsp_url = f"rtsp://{rtsp_user}:{rtsp_pass}@{rtsp_IP}/live"
I do not see an entry to these options, or this particular options.py, in my installation.
Is this exposed or do I need to recompile the source?
I see the call in vision.html
How can I experiment with this?
Thinking further, I would need to plugin a "webcam" and then the video tab shows in vision.html?
modified 2 days ago.
|
|
|
|
|
Is it still recommended to install the CUDA 11.7 toolkit and compatible drivers or do more recent versions work now?
|
|
|
|
|
|
I feel like the answer is probably pretty straightforward but I am getting the message of "Not Available" for the license plate reader module. I have codeproject running in 22.04 ubuntu in a docker container, and I have blue iris running on a Windows 10 machine. The error in the logs say:
ALPR: The command could not be loaded, possibly because:
* You intended to execute a .NET application:
The application '--version' does not exist.
* You intended to execute a .NET SDK command:
ALPR: No .NET SDKs were found.
ALPR: Download a .NET SDK
Which, although i'm new to this, seems to be due to the fact that .NET is necessary for only this module, as facial recognition and the other yolo module didn't give me this error.
Does that mean I can only install this as a docker container in Windows? or, I need to install .NET in the container itself? Is anyone else trying this or just me?.. and why not?
Please let me know. Thanks
|
|
|
|
|