|
|
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 29-Sep-23 18:04pm.
|
|
|
|
|
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
|
|
|
|
|
HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.
Looks like internet issues
cheers
Chris Maunder
|
|
|
|
|
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.
|
|
|
|
|
Are you running both on a Windows machine? Windows and Coral are just plain slow, unfortunately. Coral on my teeny tiny Raspberry Pi is faster than Coral on my beast of a Windows machine.
If you're using Coral on Docker, you need to launch the container using
docker run --name CodeProject.AI -d -p 32168:32168 \
--privileged -v /dev/bus/usb:/dev/bus/usb codeproject/ai-server:rpi64
See the docs
cheers
Chris Maunder
|
|
|
|
|
I will have to check the run command I was using.
Running AI on Ubuntu. I will try it again in a while as time permits.
|
|
|
|
|
My run command. I believe I got it from the docs.
sudo docker run --restart unless-stopped --name CodeProject.AI -d -p 32168:32168 \
--mount type=bind,source=/etc/codeproject/ai,target=/etc/codeproject/ai \
--mount type=bind,source=/opt/codeproject/ai,target=/app/modules \
--privileged -v /dev/bus/usb:/dev/bus/usb \
codeproject/ai-server
|
|
|
|
|
|
I got ~34 hours and 39500 detections out of the Coral USB TPU before something went wrong.
From the CPAI log at the time of the change:
05:49:37:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:49:37:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...8b4538) took 163ms
05:50:06:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:50:06:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...95eaac) took 183ms
05:50:11:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:50:12:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...bd6b65) took 243ms
05:50:42:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:51:34:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:51:35:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...7247c5) took 1015ms
05:51:37:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:51:38:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...a33e38) took 1005ms
05:52:06:Request 'detect' dequeued from 'objectdetection_queue' (...d3226a)
05:52:06:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:52:07:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...d3226a) took 1014ms
05:52:07:Response received (...d3226a): The interpreter is in use. Please try again later
05:52:12:Client request 'detect' in queue 'objectdetection_queue' (...d2aaa6)
05:52:12:Request 'detect' dequeued from 'objectdetection_queue' (...d2aaa6)
05:52:12:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:52:13:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...d2aaa6) took 1042ms
05:52:13:Response received (...d2aaa6): The interpreter is in use. Please try again later
05:52:42:Client request 'detect' in queue 'objectdetection_queue' (...a40188)
05:52:42:Request 'detect' dequeued from 'objectdetection_queue' (...a40188)
05:52:42:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:52:43:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...a40188) took 1003ms
05:52:43:Response received (...a40188): The interpreter is in use. Please try again later
05:53:34:Client request 'detect' in queue 'objectdetection_queue' (...086882)
05:53:34:Request 'detect' dequeued from 'objectdetection_queue' (...086882)
05:53:34:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:53:35:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...086882) took 1016ms
05:53:35:Response received (...086882): The interpreter is in use. Please try again later
05:53:38:Client request 'detect' in queue 'objectdetection_queue' (...1bde5c)
05:53:38:Request 'detect' dequeued from 'objectdetection_queue' (...1bde5c)
05:53:38:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:53:39:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...1bde5c) took 1006ms
05:53:39:Response received (...1bde5c): The interpreter is in use. Please try again later
05:54:06:Client request 'detect' in queue 'objectdetection_queue' (...359ba1)
05:54:06:Request 'detect' dequeued from 'objectdetection_queue' (...359ba1)
05:54:06:ObjectDetection (Coral): Retrieved objectdetection_queue command
05:54:07:ObjectDetection (Coral): Rec'd request for ObjectDetection (Coral) command 'detect' (...359ba1) took 1015ms
05:54:07:Response received (...359ba1): The interpreter is in use. Please try again later
The function of the Coral USB Accelerator returned to normal upon machine reboot.
The following is the system information:
Server version: 2.2.4-Beta
Operating System: Linux (Linux 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2)
CPUs: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (Intel)
1 CPU x 4 cores. 4 logical processors (x64)
System RAM: 8 GiB
Target: Linux
BuildConfig: Release
Execution Env: Docker
Runtime Env: Production
.NET framework: .NET 7.0.11
Video adapter info:
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
The following is the current module information (after the reboot):
Module 'ObjectDetection (Coral)' 1.5.1 (ID: ObjectDetectionCoral)
Module Path: <root>/modules/ObjectDetectionCoral
AutoStart: True
Queue: objectdetection_queue
Platforms: windows,linux,linux-arm64,macos,macos-arm64
GPU: Support enabled
Parallelism: 1
Accelerator:
Half Precis.: enable
Runtime: python39
Runtime Loc: Local
FilePath: objectdetection_coral_adapter.py
Pre installed: False
Start pause: 1 sec
LogVerbosity:
Valid: True
Environment Variables
MODELS_DIR = <root>/modules/ObjectDetectionCoral/assets
MODEL_SIZE = medium
Started: 07 Oct 2023 12:07:31 PM Coordinated Universal Time
LastSeen: 07 Oct 2023 12:27:31 PM Coordinated Universal Time
Status: Started
Processed: 98
Provider: TPU
CanUseGPU: False
HardwareType: GPU
Installation Log
2023-10-05 16:54:30: Hi Docker! We will disable shared python installs for downloaded modules
2023-10-05 16:54:31: 266302820 available
2023-10-05 16:54:31: No schemas installed
2023-10-05 16:54:31: (No schemas means: we can't detect if you're in light or dark mode)
2023-10-05 16:54:47: Checking for ROCm support... Done
2023-10-05 16:54:47: sh: 1: lsmod: not found
2023-10-05 16:54:47: Setting up CodeProject.AI Development Environment
2023-10-05 16:54:47: ======================================================================
2023-10-05 16:54:47: CodeProject.AI Installer
2023-10-05 16:54:47: ======================================================================
2023-10-05 16:54:47: Checking GPU support
2023-10-05 16:54:47: CUDA Present...No
2023-10-05 16:54:47: Allowing GPU Support: Yes
2023-10-05 16:54:47: Allowing CUDA Support: Yes
2023-10-05 16:54:47: General CodeProject.AI setup
2023-10-05 16:54:47: Creating Directories...Done
2023-10-05 16:54:48: Installing module ObjectDetectionCoral
2023-10-05 16:54:48: Python 3.9 is already installed
2023-10-05 16:54:50: Installing Virtual Environment tools for Linux... Done
2023-10-05 16:54:51: Error: Command '['/app/modules/ObjectDetectionCoral/bin/linux/python39/venv/bin/python3.9', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
2023-10-05 16:54:51: Creating Virtual Environment... Done
2023-10-05 16:54:51: Checking for Python 3.9...Found Python 3.9.17. present
2023-10-05 16:54:51: Checking for CUDA...Not found
2023-10-05 16:54:51: Ensuring PIP is installed... Done
2023-10-05 16:54:52: Updating PIP... Done
2023-10-05 16:54:52: Installing setuptools... Done
2023-10-05 16:54:52: Choosing packages from requirements.linux.txt
2023-10-05 16:54:52: /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/bin/python3.9: No module named pip
2023-10-05 16:54:52: Installing Packages into Virtual Environment... Success
2023-10-05 16:54:52: Checking for CUDA...Not found
2023-10-05 16:54:53: Ensuring PIP is installed... Done
2023-10-05 16:54:53: Updating PIP... Done
2023-10-05 16:54:54: Installing setuptools... Done
2023-10-05 16:54:54: Choosing packages from requirements.txt
2023-10-05 16:54:54: /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/bin/python3.9: No module named pip
2023-10-05 16:54:54: Installing Packages into Virtual Environment... Success
2023-10-05 16:55:00: Ensuring curl is installed (just in case)... Done
2023-10-05 16:55:00: deb https:
2023-10-05 16:55:01: Downloading signing keys... Done
2023-10-05 16:55:01: Installing signing keys... Done
2023-10-05 16:55:09: Installing libedgetpu1-std (the non-desk-melting version of libedgetpu1)... Done
2023-10-05 16:55:29: Downloading MobileNet models...Expanding... Done.
2023-10-05 16:55:30: Module setup complete
Installer exited with code 0
2023-10-05 17:30:19: Hi Docker! We will disable shared python installs for downloaded modules
2023-10-05 17:30:20: No schemas installed
2023-10-05 17:30:20: (No schemas means: we can't detect if you're in light or dark mode)
2023-10-05 17:30:40: Checking for ROCm support... Done
2023-10-05 17:30:40: sh: 1: lsmod: not found
2023-10-05 17:30:40: Installing CodeProject.AI Analysis Module
2023-10-05 17:30:40: ======================================================================
2023-10-05 17:30:40: CodeProject.AI Installer
2023-10-05 17:30:40: ======================================================================
2023-10-05 17:30:40: 259.01 GiB available
2023-10-05 17:30:40: Installing curl...
2023-10-05 17:30:40: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2023-10-05 17:30:44: Installing bc...
2023-10-05 17:30:44: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2023-10-05 17:30:48: Checking GPU support
2023-10-05 17:30:48: CUDA Present...No
2023-10-05 17:30:48: Allowing GPU Support: Yes
2023-10-05 17:30:48: Allowing CUDA Support: Yes
2023-10-05 17:30:48: General CodeProject.AI setup
2023-10-05 17:30:48: Setting permissions...Done
2023-10-05 17:30:48: Processing SDK
2023-10-05 17:30:57: Adding toolchain repo... Done
2023-10-05 17:30:59: Checking for installed dependencies (from gcc-4.9 apt-utils)...Done
2023-10-05 17:31:02: Installing missing dependencies: gcc-4.9...Done
2023-10-05 17:33:57: Upgrading libstdc... Done
2023-10-05 17:34:05: Checking for installed dependencies (from ca-certificates gnupg libc6-dev libfontconfig1 libgdiplus libjpeg-dev zlib1g-dev)...Done
2023-10-05 17:34:09: Installing missing dependencies: libjpeg-dev...Selecting previously unselected package libjpeg-turbo8-dev:amd64.
2023-10-05 17:34:09: (Reading database ...
2023-10-05 17:34:09: (Reading database ... 5%
2023-10-05 17:34:09: (Reading database ... 10%
2023-10-05 17:34:09: (Reading database ... 15%
2023-10-05 17:34:09: (Reading database ... 20%
2023-10-05 17:34:09: (Reading database ... 25%
2023-10-05 17:34:09: (Reading database ... 30%
2023-10-05 17:34:09: (Reading database ... 35%
2023-10-05 17:34:09: (Reading database ... 40%
2023-10-05 17:34:09: (Reading database ... 45%
2023-10-05 17:34:09: (Reading database ... 50%
2023-10-05 17:34:09: (Reading database ... 55%
2023-10-05 17:34:09: (Reading database ... 60%
2023-10-05 17:34:09: (Reading database ... 65%
2023-10-05 17:34:09: (Reading database ... 70%
2023-10-05 17:34:09: (Reading database ... 75%
2023-10-05 17:34:09: (Reading database ... 80%
2023-10-05 17:34:09: (Reading database ... 85%
2023-10-05 17:34:09: (Reading database ... 90%
2023-10-05 17:34:09: (Reading database ... 95%
2023-10-05 17:34:09: (Reading database ... 100%
2023-10-05 17:34:09: (Reading database ... 26456 files and directories currently installed.)
2023-10-05 17:34:09: Preparing to unpack .../libjpeg-turbo8-dev_2.1.2-0ubuntu1_amd64.deb ...
2023-10-05 17:34:09: Unpacking libjpeg-turbo8-dev:amd64 (2.1.2-0ubuntu1) ...
2023-10-05 17:34:10: Selecting previously unselected package libjpeg8-dev:amd64.
2023-10-05 17:34:10: Preparing to unpack .../libjpeg8-dev_8c-2ubuntu10_amd64.deb ...
2023-10-05 17:34:10: Unpacking libjpeg8-dev:amd64 (8c-2ubuntu10) ...
2023-10-05 17:34:10: Selecting previously unselected package libjpeg-dev:amd64.
2023-10-05 17:34:10: Preparing to unpack .../libjpeg-dev_8c-2ubuntu10_amd64.deb ...
2023-10-05 17:34:10: Unpacking libjpeg-dev:amd64 (8c-2ubuntu10) ...
2023-10-05 17:34:11: Setting up libjpeg-turbo8-dev:amd64 (2.1.2-0ubuntu1) ...
2023-10-05 17:34:11: Setting up libjpeg8-dev:amd64 (8c-2ubuntu10) ...
2023-10-05 17:34:11: Setting up libjpeg-dev:amd64 (8c-2ubuntu10) ...
2023-10-05 17:34:12: Done
2023-10-05 17:34:20: Checking for installed dependencies (from ffmpeg libsm6 libxext6 mesa-utils curl rsync unzip wget)...Done
2023-10-05 17:34:20: All dependencies already installed.
2023-10-05 17:34:20: The command could not be loaded, possibly because:
2023-10-05 17:34:20: * You intended to execute a .NET application:
2023-10-05 17:34:20: The application '--version' does not exist.
2023-10-05 17:34:20: * You intended to execute a .NET SDK command:
2023-10-05 17:34:20: No .NET SDKs were found.
2023-10-05 17:34:20: Download a .NET SDK:
2023-10-05 17:34:20: https:
2023-10-05 17:34:20: Learn about SDK resolution:
2023-10-05 17:34:20: https:
2023-10-05 17:34:20: Checking for .NET >= 7.0...All good. Current .NET is , requested was 7.0
2023-10-05 17:34:20: Installing module ObjectDetectionCoral 1.5.1
2023-10-05 17:34:20: Python 3.9 is already installed
2023-10-05 17:34:20: Virtual Environment already present
2023-10-05 17:34:20: Checking for Python 3.9...Found Python 3.9.18. present
2023-10-05 17:34:20: Checking for CUDA...Not found
2023-10-05 17:34:22: Installing PIP... Done
2023-10-05 17:34:22: Ensuring PIP compatibility... Done
2023-10-05 17:34:25: Updating PIP... Done
2023-10-05 17:34:26: Installing setuptools... Done
2023-10-05 17:34:26: Choosing packages from requirements.linux.txt
2023-10-05 17:34:35: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/Pillow.libs already exists. Specify --upgrade to force replacement.
2023-10-05 17:34:35: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/numpy-1.26.0.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:34:35: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/Pillow-10.0.1.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:34:35: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/numpy.libs already exists. Specify --upgrade to force replacement.
2023-10-05 17:34:35: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/tflite_runtime already exists. Specify --upgrade to force replacement.
2023-10-05 17:34:35: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/numpy already exists. Specify --upgrade to force replacement.
2023-10-05 17:34:35: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/PIL already exists. Specify --upgrade to force replacement.
2023-10-05 17:34:35: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/bin already exists. Specify --upgrade to force replacement.
2023-10-05 17:34:35: Installing Packages into Virtual Environment... Success
2023-10-05 17:34:35: deb https:
2023-10-05 17:34:35: Downloading signing keys... Done
2023-10-05 17:34:36: Installing signing keys... Done
2023-10-05 17:34:42: Installing libedgetpu1-std (the non-desk-melting version of libedgetpu1)... Done
2023-10-05 17:35:11: Downloading MobileNet models...Expanding... Done.
2023-10-05 17:35:11: Installing Server SDK support:
2023-10-05 17:35:11: Checking for CUDA...Not found
2023-10-05 17:35:13: Installing PIP... Done
2023-10-05 17:35:13: Ensuring PIP compatibility... Done
2023-10-05 17:35:14: Updating PIP... Done
2023-10-05 17:35:15: Installing setuptools... Done
2023-10-05 17:35:15: Choosing packages from requirements.txt
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/Pillow.libs already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/aiofiles already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/aiofiles-23.2.1.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/frozenlist already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/requests already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/certifi already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/multidict-6.0.4.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/idna-3.4.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/async_timeout-4.0.3.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/urllib3 already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/attr already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/py_cpuinfo-9.0.0.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/charset_normalizer already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/yarl already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/idna already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/charset_normalizer-2.1.1.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/certifi-2023.7.22.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/yarl-1.9.2.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/cpuinfo already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/aiohttp-3.8.5.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/aiosignal already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/frozenlist-1.4.0.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/attrs-23.1.0.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/Pillow-9.5.0.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/aiosignal-1.3.1.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/requests-2.31.0.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/PIL already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/attrs already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/urllib3-2.0.6.dist-info already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/async_timeout already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/multidict already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/aiohttp already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: WARNING: Target directory /app/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/bin already exists. Specify --upgrade to force replacement.
2023-10-05 17:35:25: Installing Packages into Virtual Environment... Success
2023-10-05 17:35:25: Setup complete
Installer exited with code 0
98
PLEASE NOTE!
Initially, after I was able to get the module to work, I did not see all the WARNINGs that are listed here. I do not know where they came from, or what they mean.
Maybe they have to do with restarting the container and all the directories that are touched already exist.
The following is the run command that is starting the container:
CodeProject AI Server with Coral USB Accelerator???
sudo docker run --restart unless-stopped --name CodeProject.AI -d -p 32168:32168 \
--mount type=bind,source=/etc/codeproject/ai,target=/etc/codeproject/ai \
--mount type=bind,source=/opt/codeproject/ai,target=/app/modules \
--privileged -v /dev/bus/usb:/dev/bus/usb \
codeproject/ai-server:latest
|
|
|
|
|
Ignore the warnings - none of them seem to be show-stoppers. It looks like we've left verbosity on too high for the Coral module.
We have the Coral interpreter automatically cycle the interpreter every hour to ensure any memory leaks or weirdness will not build up and we get a (dodgy) self-repair. 39.5K without a hitch is great, but obviously it should be able to forever. It would be interesting to know what happened. Was the device hot?
cheers
Chris Maunder
|
|
|
|
|
I didn't check temperature, sorry. I've seen a couple of comments that the USB accelerator is for development, not production use. That the M.2 devices are more reliable in a production environment. Any truth to that? I've looked around but cannot find any thing definitive on that subject. Both my machines can take a B+M M.2 device, they are out of stock till end of November. I might try one, but if the speed is the same, I'll stick with CPU.
|
|
|
|
|
Again. Approximately 34000 detections, the Coral module is failing to report results, with times greater than 1000 msec. Blue Iris showing nothing found.
I've changed back to the YoloV5.6.2 module for now, changing to custom model in Blue Iris.
Happened faster this time, due to sunny windy day producing waving tree branches and their shadows. Failed in about 22 hours.
|
|
|
|
|
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
|
|
|
|
|
Can you please post the log of the ALPR installer on Docker? ALPR is purely Python. .NET is used for the server and a couple of modules (eg ObjectDetectionNet). "dotnet --version" is what we use to test which version of .NET you have so we can update if necessary. You would only see that error if you have no .NET SDK versions installed.
We've done a lot of work in optimizing the .NET install story in 2.3 (alpha-testing today?) which should solve this issue
cheers
Chris Maunder
|
|
|
|
|
Hello, where can I download older versions of CodeProject.ai?
Thanks.
|
|
|
|
|
|
|