|
|
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.
|
|
|
|
|
UPDATE:
=========
This is no longer an issue for my environment. I upgraded to CUDA 11.8 today and did a fresh install of CodeProjectAI. I am so now using Object Detection (YOLOv5 6.2) 1.6.1, which installed cleanly this time around.
I assume the original issue might have related to issues with the download sites for the python dependencies, so everything was not getting installed.
|
|
|
|
|
UPDATE:
=========
I believe this is no longer an issue. I upgraded to CUDA 11.8 today and did a fresh install of CodeProjectAI. Object Detection (YOLOv5 6.2) 1.6.1 started up clean so the install must have been a complete installation. It must have been an issue with the pytorch.org site which has since been resolved.
ORGINAL POST:
=============
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
modified 3 days ago.
|
|
|
|
|
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 26-Sep-23 14:30pm.
|
|
|
|
|
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
|
|
|
|
|
Hello, where can I download older versions of CodeProject.ai?
Thanks.
|
|
|
|
|
|
|
I have had a few people , myself included that cannot install CPAI 2.2.4 or any version as it cannot download the files needed. Are there servers down ?
|
|
|
|
|
Something is wrong and we are investigating the issue.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
The server was pulling down the wrong modules. We've fixed this, and if you un-install, and re-install the modules, you should be golden.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
YES, all working again. Thank you !
|
|
|
|
|
I had blueiris + the 6700k integrated gpu working in gpu mode for codeproject previously (6700k),
So now i've changed to the 13500 and i have the gtx 1650 + integrated gpu.
I was previously using the .net plugin for quicksync/intel gpu usage. It worked fine.
Now i've uninstalled the .net one and went with the object detection 6.2 (edit yolov5 6.2?) (i think is the name off hand not in front of the pc atm). I tried restarting/restarting the service, each time it goes to CPU mode. GPU mode is checked in BlueIris AI tab.
I ran the cuda driver installer linked on the cp download page (11.8), as well as the batch file. Im running the latest version of cp
Im not sure what to check next, but i do think it said gpu = enable or similar in the log as it launched.
Thanks in advance
EDIT: i think with the newer CP, the cuda needs to be v12 or above, so likely 12.1 or similar needs installed, will verify later.
UPDATE: These steps worked:
Uninstall code project
Uninstall cuda 11.7
Uninstall gfx card drivers
Reboot
Install 516.94 gfx drivers
Install cuda 11.7.0
Install Code Project 2.0.8
Install cuDNN bat file (https://www.codeproject.com/ai/docs/faq/gpu.html)
modified 5 days ago.
|
|
|
|
|
Everything installs properly it just can't actually do anything. Object Detection and Face Processing are listed as "Not Available". I've uninstalled and reinstalled 3 times. I removed everything from the Program Files and ProgramData and rebooted twice. Nothing seems to work. The install log for the module has no errors either.
Here is the System Info:
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 RTX 3050 (8 GiB) (NVIDIA)
Driver: 536.23 CUDA: 11.7.64 (max supported: 12.2) Compute: 8.6
System RAM: 8 GiB
Target: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.5
Video adapter info:
Microsoft Remote Display Adapter:
Driver Version 10.0.19041.2075
Video Processor
Intel(R) HD Graphics 630:
Driver Version 27.20.100.8854
Video Processor Intel(R) HD Graphics Family
NVIDIA GeForce RTX 3050:
Driver Version 31.0.15.3623
Video Processor NVIDIA GeForce RTX 3050
System GPU info:
GPU 3D Usage 2%
GPU RAM Usage 444 MiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
The logs:
13:29:27:Operating System: Windows (Microsoft Windows 10.0.19045)
13:29:27:CPUs: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (Intel)
13:29:27: 1 CPU x 4 cores. 8 logical processors (x64)
13:29:27:GPU: NVIDIA GeForce RTX 3050 (8 GiB) (NVIDIA)
13:29:27: Driver: 536.23 CUDA: 11.7.64 (max supported: 12.2) Compute: 8.6
13:29:27:System RAM: 8 GiB
13:29:27:Target: Windows
13:29:27:BuildConfig: Release
13:29:27:Execution Env: Native
13:29:27:Runtime Env: Production
13:29:27:.NET framework: .NET 7.0.5
13:29:27:App DataDir: C:\ProgramData\CodeProject\AI
13:29:27:Video adapter info:
13:29:27: Microsoft Remote Display Adapter:
13:29:27: Driver Version 10.0.19041.2075
13:29:27: Video Processor
13:29:27: Intel(R) HD Graphics 630:
13:29:27: Driver Version 27.20.100.8854
13:29:27: Video Processor Intel(R) HD Graphics Family
13:29:27: NVIDIA GeForce RTX 3050:
13:29:27: Driver Version 31.0.15.3623
13:29:27: Video Processor NVIDIA GeForce RTX 3050
13:29:27:STARTING CODEPROJECT.AI SERVER
13:29:27:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
13:29:27:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
13:29:27:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
13:29:27:PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
13:29:27:Data Dir = C:\ProgramData\CodeProject\AI
13:29:27:Server version: 2.2.4-Beta
13:29:31:Setting up initial modules. Please be patient...
13:29:31:Installing initial module FaceProcessing.
13:29:31:Preparing to install module 'FaceProcessing'
13:29:31:Downloading module 'FaceProcessing'
13:29:31:Installing module 'FaceProcessing'
13:29:31:FaceProcessing: Installing CodeProject.AI Analysis Module
13:29:31:FaceProcessing: ========================================================================
13:29:31:FaceProcessing: CodeProject.AI Installer
13:29:31:FaceProcessing: ========================================================================
13:29:32:FaceProcessing: Checking GPU support
13:29:32:FaceProcessing: CUDA Present...True
13:29:32:FaceProcessing: Allowing GPU Support: Yes
13:29:32:FaceProcessing: Allowing CUDA Support: Yes
13:29:32:FaceProcessing: General CodeProject.AI setup
13:29:32:FaceProcessing: Creating Directories...Done
13:29:32:FaceProcessing: Processing Core SDK
13:29:32:FaceProcessing: Installing module FaceProcessing 1.8
13:29:33:Server: This is the latest version
13:29:52:FaceProcessing: Downloading YOLO models...Expanding...Done.
13:29:52:FaceProcessing: Setup complete
13:29:52:Module FaceProcessing installed successfully.
13:29:52:Unable to start newly installed Module FaceProcessing.
13:29:52:Installer exited with code 0
13:29:52:Installing initial module ObjectDetectionNet.
13:29:52:Preparing to install module 'ObjectDetectionNet'
13:29:52:Downloading module 'ObjectDetectionNet'
13:29:53:Installing module 'ObjectDetectionNet'
13:29:53:ObjectDetectionNet: Installing CodeProject.AI Analysis Module
13:29:53:ObjectDetectionNet: ========================================================================
13:29:53:ObjectDetectionNet: CodeProject.AI Installer
13:29:53:ObjectDetectionNet: ========================================================================
13:29:53:ObjectDetectionNet: Checking GPU support
13:29:53:ObjectDetectionNet: CUDA Present...True
13:29:53:ObjectDetectionNet: Allowing GPU Support: Yes
13:29:53:ObjectDetectionNet: Allowing CUDA Support: Yes
13:29:53:ObjectDetectionNet: General CodeProject.AI setup
13:29:53:ObjectDetectionNet: Creating Directories...Done
13:29:53:ObjectDetectionNet: Processing Core SDK
13:29:53:ObjectDetectionNet: Installing module ObjectDetectionNet 1.7
13:29:57:ObjectDetectionNet: Downloading ObjectDetectionNet-DirectML-1.7.zip...Expanding...Done.
13:30:08:ObjectDetectionNet: Downloading YOLO ONNX models...Expanding...Done.
13:30:14:ObjectDetectionNet: Downloading Custom YOLO ONNX models...Expanding...Done.
13:30:15:ObjectDetectionNet: Setup complete
13:30:15:Module ObjectDetectionNet installed successfully.
13:30:15:Module ObjectDetectionNet not configured to AutoStart.
13:30:15:Installer exited with code 0
13:30:15:Installing initial module ObjectDetectionYolo.
13:30:15:Preparing to install module 'ObjectDetectionYolo'
13:30:15:Downloading module 'ObjectDetectionYolo'
13:30:16:Installing module 'ObjectDetectionYolo'
13:30:16:ObjectDetectionYolo: Installing CodeProject.AI Analysis Module
13:30:16:ObjectDetectionYolo: ========================================================================
13:30:16:ObjectDetectionYolo: CodeProject.AI Installer
13:30:16:ObjectDetectionYolo: ========================================================================
13:30:16:ObjectDetectionYolo: Checking GPU support
13:30:16:ObjectDetectionYolo: CUDA Present...True
13:30:16:ObjectDetectionYolo: Allowing GPU Support: Yes
13:30:16:ObjectDetectionYolo: Allowing CUDA Support: Yes
13:30:16:ObjectDetectionYolo: General CodeProject.AI setup
13:30:16:ObjectDetectionYolo: Creating Directories...Done
13:30:16:ObjectDetectionYolo: Processing Core SDK
13:30:16:ObjectDetectionYolo: Installing module ObjectDetectionYolo 1.7
13:30:24:ObjectDetectionYolo: Downloading Standard YOLO models...Expanding...Done.
13:30:33:ObjectDetectionYolo: Downloading Custom YOLO models...Expanding...Done.
13:30:33:ObjectDetectionYolo: Setup complete
13:30:33:Module ObjectDetectionYolo installed successfully.
13:30:33:Unable to start newly installed Module ObjectDetectionYolo.
13:30:33:Installer exited with code 0
|
|
|
|
|
Hi,, I'm getting the same - but with the
ObjectDetectionCoral it all seems to install correctly
18:44:45:Module ObjectDetectionCoral installed successfully.
18:44:45:Module ObjectDetectionCoral not configured to AutoStart.
18:44:45:Installer exited with code 0
18:44:45:Unknown response from server
But remains unavailable so I can't run anything in from the Status tab, any help? as I can't seem to go back to a previous version either!?
|
|
|
|
|
There seems to a be miss match in the module's modulesettings.json
For the Coral integration, i noticed that in the "modules" section, it said that it was v1.5.1 and in the "status" section, it wanted v1.6. So in the modulesettings.json I replaced the 1.6 - 1.5.1
"ObjectDetectionCoral": {
"Name": "ObjectDetection (Coral)",
"Version": "1.5.1",
Restarted the service and now not available has disappeared and replaced with the start controls, however, I get "failed to start" and the following
21:55:27:MODEL_SIZE = tiny
21:55:27:
21:55:27:Error trying to start ObjectDetection (Coral) (objectdetection_coral_adapter.py)
21:55:28:An error occurred trying to start process 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\bin\windows\python3.7\venv\scripts\Python' with working directory 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral'. The system cannot find the file specified.
21:55:28: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module)
21:55:28:Please check the CodeProject.AI installation completed successfully
21:55:30:Server: This is the latest version
Is there somesort of mis-match going on somewhere? as I also noticed that it mentions python3.7 but in the modulesettings.json , python3.9 is mentioned?
Thanks
|
|
|
|
|
Hello, I have the exact same issue has Norman. Can't find any error, be the modules are gayed out as 'Not Available', and getting an enigmatic : 'Unable to start newly installed Module ObjectDetectionYolo '
|
|
|
|
|
I too am facing the same exact issue on Windows while setting CPAI for BlueIris. I already tried reinstall, installing and setting path variables to latest python.
|
|
|
|
|