|
|
Cool, thank you. I hope this fixes my issues.
|
|
|
|
|
I sincerely hope this works for you, but my recent experiences would indicate that it may not: Even when the main CopeProject website is fully functional (it has had some downtime and full outages in the last few days), attempting to install previous versions (2.1.8 in my case) always results in some failures when downloading/installing modules. The main installation claims "success", but I cannot get Object Detection (YOLOv5 .NET) to install and run (even with repeated uninstall/re-install attempts), as I always see the following:
Error in Install ObjectDetectionNet. Unknown response from server
So basically, while all of the previous download installation files are readily available, they don't actually work and result in a functional system. I am basically stuck on 2.1.8 on my production Blue Iris machine, as I cannot trust that 2.2.4 will actually work, nor do I have a (safety net) return path back to 2.1.8 should the newer version fail.
modified 1-Oct-23 23:00pm.
|
|
|
|
|
The downgrade fixed my issue perfectly. I will test updating again later but I am good for now
|
|
|
|
|
UPDATE: Issue solved
======================
I upgraded to CUDA 11.8 from 11.7 (per CodeProject.AI Server: AI the easy way.[^]) When I originally installed CodeProjectAI a couple of months ago the recommended CUDA version was 11.7. So this seemed to make a difference. I also uninstalled and reinstalled CodeProjectAI 2.2.4 and rebooted.
Current CUDA version recommendation:
install the CUDA Drivers (We recommend CUDA 11.8 if running Windows)
Install CUDA Toolkit 11.8.
Download and run our cuDNN install script to install cuDNN 8.9.4.
ORIGINAL POST:
=================
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
modified 29-Sep-23 17:54pm.
|
|
|
|
|
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
|
|
|
|
|
Upgraded my production server (Windows Server 2022) too without issues this time !
Updated NVidia Graphics driver, CUDA 11.7 -> 12.2, CudNN to 8.9.5, and CPAI from 2.1.11 -> 2.2.4
Great work, thanks guys !
Server version: 2.2.4-Beta
Operating System: Windows (Microsoft Windows 10.0.20348)
CPUs: 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (Intel)
1 CPU x 8 cores. 16 logical processors (x64)
GPU: NVIDIA GeForce GT 1030 (2 GiB) (NVIDIA)
Driver: 537.42 CUDA: 12.2.140 (max supported: 12.2) Compute: 6.1
System RAM: 64 GiB
Target: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.7
Video adapter info:
NVIDIA GeForce GT 1030:
Driver Version 31.0.15.3742
Video Processor NVIDIA GeForce GT 1030
Intel(R) UHD Graphics 750:
Driver Version 31.0.101.4824
Video Processor Intel(R) UHD Graphics Family
System GPU info:
GPU 3D Usage 26%
GPU RAM Usage 1,3 GiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
We had an outage on CodeProject.com that affected downloadable CodeProject.AI modules.
cheers
Chris Maunder
|
|
|
|
|
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 27-Sep-23 23:35pm.
|
|
|
|
|
|
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.
|
|
|
|
|