|
Chris,
Installed CUDA version shown in the System Info is misleading, this just show up to what CUDA version the GPU driver supports not the CUDA version installed.
To check which CUDA version you have installed you need to use nvcc --version
Shown below my system has a GPU driver that can support up to CUDA 12.1 but I have CUDA 11.8 installed.
|
|
|
|
|
Yeah, it's a mess. Here's a great explanation. I'm tempted to report both, but that would just add confusion.
cheers
Chris Maunder
|
|
|
|
|
Where can I get the release notes for v2.19?
|
|
|
|
|
Sorry - my bad. I mistyped 2.1.9. The update notes are at the end of the main article:
Quote: Patch 2.1.9: Increased and adjustable module install timeout and improved install logs. Fixes around resource contention in PyTorch, Fixes to resource usage reporting, improved Native Linux/WSL CUDA setup. Async fixes. Improvements to half-precision support.
cheers
Chris Maunder
|
|
|
|
|
I'm running 2.1.8 on Windows 11. I downloaded 2.1.9 and ran the installer, but the version hasn't changed. Do I need to stop the running service before installing? Or do I need to uninstall 2.1.8?
|
|
|
|
|
Restarting the service did the trick.
|
|
|
|
|
You need to restart the service or reboot your computer.
|
|
|
|
|
Dear Christ,
I have problem updating the CPAI for BI.
After I uninstalling the previous version, and install the latest beta the python is not installed.
I tried to install through setup.bat using admin privilege it said success. But still could not find python in the folder.
The reason I tried to install the latest version, CPAI seems to stop working. There is no more alerts or event mark on the BI.
I could not find the Windows Update mentioned on the forum.
Please help this newbie.
The log on CPAI
Quote: 03:56:42:Operating System: Windows (Microsoft Windows 10.0.19045)
03:56:42:CPUs: AMD Ryzen 5 2600 Six-Core Processor
03:56:42: 1 CPU x 6 cores. 12 logical processors (x64)
03:56:42:GPU: NVIDIA GeForce RTX 2060 SUPER (8 GiB) (NVidia)
03:56:42: Driver: 528.24 CUDA: 12.0 Compute: 7.5
03:56:42:System RAM: 16 GiB
03:56:42:Target: Windows
03:56:42:BuildConfig: Release
03:56:42:Execution Env: Native
03:56:42:Runtime Env: Production
03:56:42:.NET framework: .NET 7.0.5
03:56:42:App DataDir: C:\ProgramData\CodeProject\AI
03:56:42:Video adapter info:
03:56:42: NVIDIA GeForce RTX 2060 SUPER:
03:56:42: Driver Version 31.0.15.2824
03:56:42: Video Processor NVIDIA GeForce RTX 2060 SUPER
03:56:42:ROOT_PATH = C:\Program Files\CodeProject\AI
03:56:42:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
03:56:42:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
03:56:42:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
03:56:42:PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
03:56:42:Data Dir = C:\ProgramData\CodeProject\AI
03:56:42:Server version: 2.1.9-Beta
03:56:46:Setting up initial modules. Please be patient...
03:56:46:Installing initial module FaceProcessing.
03:56:46:Preparing to install module 'FaceProcessing'
03:56:47:Downloading module 'FaceProcessing'
03:56:48:Installing module 'FaceProcessing'
03:56:48:Server: This is the latest version
03:56:49:FaceProcessing: Installing CodeProject.AI Analysis Module
03:56:49:FaceProcessing: ========================================================================
03:56:49:FaceProcessing: CodeProject.AI Installer
03:56:49:FaceProcessing: ========================================================================
03:56:49:FaceProcessing: Checking GPU support
03:56:49:FaceProcessing: CUDA Present...True
03:56:49:FaceProcessing: Allowing GPU Support: Yes
03:56:49:FaceProcessing: Allowing CUDA Support: Yes
03:56:49:FaceProcessing: General CodeProject.AI setup
03:56:49:FaceProcessing: Creating Directories...Done
03:56:49:FaceProcessing: Installing module FaceProcessing
03:56:49:FaceProcessing: Installing python37 in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37
03:56:51:FaceProcessing: Start-BitsTransfer : The job was paused because there is an active Game Mode recipient that isn't the job's owner. The
03:56:51:FaceProcessing: job will resume once the Game Mode recipient loses input focus or is closed.
03:56:51:FaceProcessing: At line:1 char:1
03:56:51:FaceProcessing: + Start-BitsTransfer -Source 'https://codeproject-ai.s3.ca-central-1.am ...
03:56:51:FaceProcessing: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
03:56:51:FaceProcessing: + CategoryInfo : InvalidOperation: ( [Start-BitsTransfer], Exception
03:56:51:FaceProcessing: + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
03:56:51:FaceProcessing: TransferCommand
03:56:51:FaceProcessing: Downloading Python 3.7 interpreter...An error occurred that could not be resolved.
03:56:51:FaceProcessing: Module setup complete
03:56:51:Module FaceProcessing installed successfully.
03:56:51:
03:56:51:Module 'Face Processing' (ID: FaceProcessing)
03:56:51:Module Path: C:\Program Files\CodeProject\AI\modules\FaceProcessing
03:56:51:AutoStart: True
03:56:51:Queue: faceprocessing_queue
03:56:51:Platforms: windows,linux,linux-arm64,macos,macos-arm64
03:56:51:GPU: Support enabled
03:56:51:Parallelism: 0
03:56:51:Accelerator:
03:56:51:Half Precis.: enable
03:56:51:Runtime: python37
03:56:51:Runtime Loc: Shared
03:56:51:FilePath: intelligencelayer\face.py
03:56:51:Pre installed: False
03:56:51:Start pause: 1 sec
03:56:51:LogVerbosity:
03:56:51:Valid: True
03:56:51:Environment Variables
03:56:51:APPDIR = %CURRENT_MODULE_PATH%\intelligencelayer
03:56:51:DATA_DIR = %DATA_DIR%
03:56:51:MODE = MEDIUM
03:56:51:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
03:56:51:PROFILE = desktop_gpu
03:56:51:USE_CUDA = True
03:56:51:YOLOv5_AUTOINSTALL = false
03:56:51:YOLOv5_VERBOSE = false
03:56:51:
03:56:51:Error trying to start Face Processing (intelligencelayer\face.py)
03:56:51:An error occurred trying to start process 'C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python' with working directory 'C:\Program Files\CodeProject\AI\modules\FaceProcessing'. The system cannot find the file specified.
03:56:51:Module FaceProcessing started successfully.
03:56:51: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.API.Server.Frontend.ModuleProcessServices.StartProcess(ModuleConfig module)
03:56:51:Please check the CodeProject.AI installation completed successfully
03:56:51:Installer exited with code 1
03:56:51:Installing initial module ObjectDetectionNet.
03:56:51:Preparing to install module 'ObjectDetectionNet'
03:56:51:Downloading module 'ObjectDetectionNet'
03:56:52:Installing module 'ObjectDetectionNet'
03:56:52:ObjectDetectionNet: Installing CodeProject.AI Analysis Module
03:56:52:ObjectDetectionNet: ========================================================================
03:56:52:ObjectDetectionNet: CodeProject.AI Installer
03:56:52:ObjectDetectionNet: ========================================================================
03:56:52:ObjectDetectionNet: Checking GPU support
03:56:53:ObjectDetectionNet: CUDA Present...True
03:56:53:ObjectDetectionNet: Allowing GPU Support: Yes
03:56:53:ObjectDetectionNet: Allowing CUDA Support: Yes
03:56:53:ObjectDetectionNet: General CodeProject.AI setup
03:56:53:ObjectDetectionNet: Creating Directories...Done
03:56:53:ObjectDetectionNet: Installing module ObjectDetectionNet
03:56:54:ObjectDetectionNet: Start-BitsTransfer : The job was paused because there is an active Game Mode recipient that isn't the job's owner. The
03:56:54:ObjectDetectionNet: job will resume once the Game Mode recipient loses input focus or is closed.
03:56:54:ObjectDetectionNet: At line:1 char:1
03:56:54:ObjectDetectionNet: + Start-BitsTransfer -Source 'https://codeproject-ai.s3.ca-central-1.am ...
03:56:54:ObjectDetectionNet: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
03:56:54:ObjectDetectionNet: + CategoryInfo : InvalidOperation: ( [Start-BitsTransfer], Exception
03:56:54:ObjectDetectionNet: + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
03:56:54:ObjectDetectionNet: TransferCommand
03:56:54:ObjectDetectionNet: Downloading ObjectDetectionNet module...An error occurred that could not be resolved.
03:56:55:ObjectDetectionNet: Start-BitsTransfer : The job was paused because there is an active Game Mode recipient that isn't the job's owner. The
03:56:55:ObjectDetectionNet: job will resume once the Game Mode recipient loses input focus or is closed.
03:56:55:ObjectDetectionNet: At line:1 char:1
03:56:55:ObjectDetectionNet: + Start-BitsTransfer -Source 'https://codeproject-ai.s3.ca-central-1.am ...
03:56:55:ObjectDetectionNet: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
03:56:55:ObjectDetectionNet: + CategoryInfo : InvalidOperation: ( [Start-BitsTransfer], Exception
03:56:55:ObjectDetectionNet: + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
03:56:55:ObjectDetectionNet: TransferCommand
03:56:55:ObjectDetectionNet: Downloading YOLO ONNX models...An error occurred that could not be resolved.
03:56:55:ObjectDetectionNet: Module setup complete
03:56:55:Module ObjectDetectionNet installed successfully.
03:56:55:Module ObjectDetectionNet not configured to AutoStart.
03:56:55:Installer exited with code 1
03:56:55:Installing initial module ObjectDetectionYolo.
03:56:55:Preparing to install module 'ObjectDetectionYolo'
03:56:55:Downloading module 'ObjectDetectionYolo'
03:56:56:Installing module 'ObjectDetectionYolo'
03:56:56:ObjectDetectionYolo: Installing CodeProject.AI Analysis Module
03:56:56:ObjectDetectionYolo: ========================================================================
03:56:56:ObjectDetectionYolo: CodeProject.AI Installer
03:56:56:ObjectDetectionYolo: ========================================================================
03:56:56:ObjectDetectionYolo: Checking GPU support
03:56:56:ObjectDetectionYolo: CUDA Present...True
03:56:56:ObjectDetectionYolo: Allowing GPU Support: Yes
03:56:56:ObjectDetectionYolo: Allowing CUDA Support: Yes
03:56:56:ObjectDetectionYolo: General CodeProject.AI setup
03:56:56:ObjectDetectionYolo: Creating Directories...Done
03:56:56:ObjectDetectionYolo: Installing module ObjectDetectionYolo
03:56:57:ObjectDetectionYolo: Installing python37 in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37
03:56:57:ObjectDetectionYolo: Checking for python37 download...Present
03:56:57:ObjectDetectionYolo: '"C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\python.exe"' is not recognized as an internal or external command,
03:56:57:ObjectDetectionYolo: operable program or batch file.
03:56:57:ObjectDetectionYolo: Creating Virtual Environment...Done
03:56:57:ObjectDetectionYolo: The system cannot find the path specified.
03:56:57:ObjectDetectionYolo: Enabling our Virtual Environment...Done
03:56:57:ObjectDetectionYolo: The system cannot find the path specified.
03:56:57:ObjectDetectionYolo: Confirming we have Python 3.7...
03:56:57:Module ObjectDetectionYolo installed successfully.
03:56:57:
03:56:57:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
03:56:57:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
03:56:57:AutoStart: True
03:56:57:Queue: objectdetection_queue
03:56:57:Platforms: all
03:56:57:GPU: Support enabled
03:56:57:Parallelism: 0
03:56:57:Accelerator:
03:56:57:Half Precis.: enable
03:56:57:Runtime: python37
03:56:57:Runtime Loc: Shared
03:56:57:FilePath: detect_adapter.py
03:56:57:Pre installed: False
03:56:57:Start pause: 1 sec
03:56:57:LogVerbosity:
03:56:57:Valid: True
03:56:57:Environment Variables
03:56:57:APPDIR = %CURRENT_MODULE_PATH%
03:56:57:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
03:56:57:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
03:56:57:MODEL_SIZE = Medium
03:56:57:USE_CUDA = True
03:56:57:YOLOv5_AUTOINSTALL = false
03:56:57:YOLOv5_VERBOSE = false
03:56:57:
03:56:57:Error trying to start Object Detection (YOLOv5 6.2) (detect_adapter.py)
03:56:57:An error occurred trying to start process 'C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python' with working directory 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo'. The system cannot find the file specified.
03:56:57:Module ObjectDetectionYolo started successfully.
03:56:57: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.API.Server.Frontend.ModuleProcessServices.StartProcess(ModuleConfig module)
03:56:57:Please check the CodeProject.AI installation completed successfully
03:56:57:Installer exited with code 255
03:57:39:ObjectDetectionYolo has left the building
03:57:39:Unknown response from server
03:57:48:Unknown response from server
03:57:51:FaceProcessing has left the building
03:57:51:Unknown response from server
03:58:03:Preparing to install module 'ObjectDetectionYolo'
03:58:03:Downloading module 'ObjectDetectionYolo'
03:58:04:Installing module 'ObjectDetectionYolo'
03:58:04:ObjectDetectionYolo: Installing CodeProject.AI Analysis Module
03:58:04:ObjectDetectionYolo: ========================================================================
03:58:04:ObjectDetectionYolo: CodeProject.AI Installer
03:58:04:ObjectDetectionYolo: ========================================================================
03:58:04:ObjectDetectionYolo: Checking GPU support
03:58:04:ObjectDetectionYolo: CUDA Present...True
03:58:05:ObjectDetectionYolo: Allowing GPU Support: Yes
03:58:05:ObjectDetectionYolo: Allowing CUDA Support: Yes
03:58:05:ObjectDetectionYolo: General CodeProject.AI setup
03:58:05:ObjectDetectionYolo: Creating Directories...Done
03:58:05:ObjectDetectionYolo: Installing module ObjectDetectionYolo
03:58:05:ObjectDetectionYolo: Installing python37 in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37
03:58:05:ObjectDetectionYolo: Checking for python37 download...Present
03:58:05:ObjectDetectionYolo: '"C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\python.exe"' is not recognized as an internal or external command,
03:58:05:ObjectDetectionYolo: operable program or batch file.
03:58:05:ObjectDetectionYolo: Creating Virtual Environment...Done
03:58:05:ObjectDetectionYolo: The system cannot find the path specified.
03:58:05:ObjectDetectionYolo: Enabling our Virtual Environment...Done
03:58:05:ObjectDetectionYolo: The system cannot find the path specified.
03:58:05:ObjectDetectionYolo: Confirming we have Python 3.7...
03:58:05:Module ObjectDetectionYolo installed successfully.
03:58:05:
03:58:05:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
03:58:05:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
03:58:05:AutoStart: True
03:58:05:Queue: objectdetection_queue
03:58:05:Platforms: all
03:58:05:GPU: Support enabled
03:58:05:Parallelism: 0
03:58:05:Accelerator:
03:58:05:Half Precis.: enable
03:58:05:Runtime: python37
03:58:05:Runtime Loc: Shared
03:58:05:FilePath: detect_adapter.py
03:58:05:Pre installed: False
03:58:05:Start pause: 1 sec
03:58:05:LogVerbosity:
03:58:05:Valid: True
03:58:05:Environment Variables
03:58:05:APPDIR = %CURRENT_MODULE_PATH%
03:58:05:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
03:58:05:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
03:58:05:MODEL_SIZE = Medium
03:58:05:USE_CUDA = True
03:58:05:YOLOv5_AUTOINSTALL = false
03:58:05:YOLOv5_VERBOSE = false
03:58:05:
03:58:05:Error trying to start Object Detection (YOLOv5 6.2) (detect_adapter.py)
03:58:05:An error occurred trying to start process 'C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python' with working directory 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo'. The system cannot find the file specified.
03:58:05: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.API.Server.Frontend.ModuleProcessServices.StartProcess(ModuleConfig module)
03:58:05:Module ObjectDetectionYolo started successfully.
03:58:05:Installer exited with code 255
03:58:05:Please check the CodeProject.AI installation completed successfully
03:58:05:Unknown response from server
03:58:16:Preparing to install module 'FaceProcessing'
03:58:16:Downloading module 'FaceProcessing'
03:58:17:Installing module 'FaceProcessing'
03:58:18:FaceProcessing: Installing CodeProject.AI Analysis Module
03:58:18:FaceProcessing: ========================================================================
03:58:18:FaceProcessing: CodeProject.AI Installer
03:58:18:FaceProcessing: ========================================================================
03:58:18:FaceProcessing: Checking GPU support
03:58:18:FaceProcessing: CUDA Present...True
03:58:18:FaceProcessing: Allowing GPU Support: Yes
03:58:18:FaceProcessing: Allowing CUDA Support: Yes
03:58:18:FaceProcessing: General CodeProject.AI setup
03:58:18:FaceProcessing: Creating Directories...Done
03:58:18:FaceProcessing: Installing module FaceProcessing
03:58:18:FaceProcessing: Installing python37 in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37
03:58:18:FaceProcessing: Checking for python37 download...Present
03:58:18:FaceProcessing: '"C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\python.exe"' is not recognized as an internal or external command,
03:58:18:FaceProcessing: operable program or batch file.
03:58:18:FaceProcessing: Creating Virtual Environment...Done
03:58:18:FaceProcessing: The system cannot find the path specified.
03:58:18:FaceProcessing: Enabling our Virtual Environment...Done
03:58:18:FaceProcessing: The system cannot find the path specified.
03:58:18:FaceProcessing: Confirming we have Python 3.7...
03:58:18:Module FaceProcessing installed successfully.
03:58:18:
03:58:18:Module 'Face Processing' (ID: FaceProcessing)
03:58:18:Module Path: C:\Program Files\CodeProject\AI\modules\FaceProcessing
03:58:18:AutoStart: True
03:58:18:Queue: faceprocessing_queue
03:58:18:Platforms: windows,linux,linux-arm64,macos,macos-arm64
03:58:18:GPU: Support enabled
03:58:18:Parallelism: 0
03:58:18:Accelerator:
03:58:18:Half Precis.: enable
03:58:18:Runtime: python37
03:58:18:Runtime Loc: Shared
03:58:18:FilePath: intelligencelayer\face.py
03:58:18:Pre installed: False
03:58:18:Start pause: 1 sec
03:58:18:LogVerbosity:
03:58:18:Valid: True
03:58:18:Environment Variables
03:58:18:APPDIR = %CURRENT_MODULE_PATH%\intelligencelayer
03:58:18:DATA_DIR = %DATA_DIR%
03:58:18:MODE = MEDIUM
03:58:18:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
03:58:18:PROFILE = desktop_gpu
03:58:18:USE_CUDA = True
03:58:18:YOLOv5_AUTOINSTALL = false
03:58:18:YOLOv5_VERBOSE = false
03:58:18:
03:58:18:Error trying to start Face Processing (intelligencelayer\face.py)
03:58:18:An error occurred trying to start process 'C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python' with working directory 'C:\Program Files\CodeProject\AI\modules\FaceProcessing'. The system cannot find the file specified.
03:58:18:Module FaceProcessing started successfully.
03:58:18: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.API.Server.Frontend.ModuleProcessServices.StartProcess(ModuleConfig module)
03:58:18:Please check the CodeProject.AI installation completed successfully
03:58:18:Installer exited with code 255
03:58:18:Unknown response from server
Logging level
|
|
|
|
|
To Chris and all the developers, I downloaded and tried the version 2.1.9 and it is truly amazing! The new version would automatically install python when the user is installing the module. I've installed several of them and they are all working perfectly! All what it takes is a click!
It's very awesome update and very appreciated! Thank you for your hard work and dedication!
|
|
|
|
|
Any progress on supporting Coral USB/Mini PCIe TPU in Windows for use with BlueIris?
|
|
|
|
|
I dive in every couple of weeks to see if there's something I've missed. The latest, and current core issue on Windows is that when loading and instantiating an interpreter using the EdgeTPU delegates in the edgetpu DLL, Tensorflow causes a catastrophic crash. No exceptions thrown, no recovery. It's a total existence failure for the TFLite module. It never even gets a chance to scream.
There's not a lot of info on this online. The closest I've seen was a comment that this can happen if you load a CPU model into an interpreter that's trying to use a TPU, but that's not the case here since it's all good on arm64.
I'll keep trying, but I'm going round in circles on Windows. It's simply not the target platform for the Coral.
cheers
Chris Maunder
|
|
|
|
|
Bummer! I appreciate you checking ever couple of weeks or so, thank you for that. Could a possible work-around be if I already have a Pi4 and Coral USB to set it up through the pi and then somehow have BlueIris access the Pi for just the TPU unit?
|
|
|
|
|
You can certainly point Blue Iris to the Pi for Object detection. I'd strongly recommend using Docker for the Pi, then just make sure you allow network connections to the Pi over port 32168 for HTTP GET/POST.
cheers
Chris Maunder
|
|
|
|
|
What about coral on Linux, non raspberry pi? I am running BI in Windows of course, but AI is running in Docker on my Linux server. If it is working in Linux I'll move my PCI Coral from the Windows machine to the Linux server. Right now it's just sitting in my Windows machine, I occasionally play around with it and have it tell me what bird is in a picture...
|
|
|
|
|
FWIW, I've installed 2.1.9 with Blue Iris 5.7.6.8 and so far everything seems to be working properly.
Thanks to the entire CPAI team for all their hard work!
|
|
|
|
|
Do you have GPU / CUDA enabled and running properly with 2.1.9?
|
|
|
|
|
Yes, I have an RTX 2080 and it is detected by both Blue Iris and CPAI. During detection the GPU generally reports ~20% usage.
Note for BI users, I found out that the GPU statistic is only shown in the bottom bar when it's a non-zero value.
|
|
|
|
|
Tried installed 2.1.9 but is unable to enable GPU nor does it detects anything. The error I have from the log is below.
07:31:20:Video adapter info:
07:31:20: NVIDIA GeForce GTX 1650:
07:31:20: Driver Version 31.0.15.2230
07:31:20: Video Processor NVIDIA GeForce GTX 1650
07:31:20: Microsoft Remote Display Adapter:
07:31:20: Driver Version 10.0.22000.1042
07:31:20: Video Processor
07:31:20: Intel(R) HD Graphics 530:
07:31:20: Driver Version 26.20.100.7262
07:31:20: Video Processor Intel(R) HD Graphics Family
07:31:20:ROOT_PATH = C:\Program Files\CodeProject\AI
07:31:20:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
07:31:20:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
07:31:20:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
07:31:20:PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
07:31:20:Data Dir = C:\ProgramData\CodeProject\AI
07:31:20:Server version: 2.1.9-Beta
07:31:25:Server: This is the latest version
07:53:52:Preparing to install module 'ObjectDetectionYolo'
07:53:52:Downloading module 'ObjectDetectionYolo'
07:53:53:Installing module 'ObjectDetectionYolo'
07:53:53:ObjectDetectionYolo: Installing CodeProject.AI Analysis Module
07:53:53:ObjectDetectionYolo: ========================================================================
07:53:53:ObjectDetectionYolo: CodeProject.AI Installer
07:53:53:ObjectDetectionYolo: ========================================================================
07:53:53:ObjectDetectionYolo: Checking GPU support
07:53:53:ObjectDetectionYolo: CUDA Present...True
07:53:53:ObjectDetectionYolo: Allowing GPU Support: Yes
07:53:53:ObjectDetectionYolo: Allowing CUDA Support: Yes
07:53:53:ObjectDetectionYolo: General CodeProject.AI setup
07:53:53:ObjectDetectionYolo: Creating Directories...Done
07:53:53:ObjectDetectionYolo: Installing module ObjectDetectionYolo
07:53:54:ObjectDetectionYolo: Installing python37 in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37
07:54:04:ObjectDetectionYolo: Downloading Python 3.7 interpreter...Expanding...Done.
07:54:05:Preparing to install module 'FaceProcessing'
07:54:05:Downloading module 'FaceProcessing'
07:54:06:Installing module 'FaceProcessing'
07:54:06:FaceProcessing: Installing CodeProject.AI Analysis Module
07:54:06:FaceProcessing: ========================================================================
07:54:06:FaceProcessing: CodeProject.AI Installer
07:54:06:FaceProcessing: ========================================================================
07:54:06:FaceProcessing: Checking GPU support
07:54:06:FaceProcessing: CUDA Present...True
07:54:06:FaceProcessing: Allowing GPU Support: Yes
07:54:06:FaceProcessing: Allowing CUDA Support: Yes
07:54:06:FaceProcessing: General CodeProject.AI setup
07:54:06:FaceProcessing: Creating Directories...Done
07:54:06:FaceProcessing: Installing module FaceProcessing
07:54:06:FaceProcessing: Installing python37 in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37
07:54:06:FaceProcessing: Checking for python37 download...Present
07:54:18:FaceProcessing: Error: Command '['C:\\Program Files\\CodeProject\\AI\\runtimes\\bin\\windows\\python37\\venv\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
07:54:18:FaceProcessing: Creating Virtual Environment...Done
07:54:18:FaceProcessing: Enabling our Virtual Environment...Done
07:54:18:FaceProcessing: Confirming we have Python 3.7...present
07:54:20:FaceProcessing: Ensuring Python package manager (pip) is installed...Done
07:54:20:ObjectDetectionYolo: Creating Virtual Environment...Done
07:54:20:ObjectDetectionYolo: Enabling our Virtual Environment...Done
07:54:20:ObjectDetectionYolo: Confirming we have Python 3.7...present
07:54:21:ObjectDetectionYolo: Ensuring Python package manager (pip) is installed...Done
07:54:22:ObjectDetectionYolo: Ensuring Python package manager (pip) is up to date...Done
07:54:22:ObjectDetectionYolo: Choosing Python packages from requirements.windows.cuda.txt
07:54:22:ObjectDetectionYolo: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\python.exe: No module named pip
07:54:22:ObjectDetectionYolo: Installing Packages into Virtual Environment...Success
07:54:30:ObjectDetectionYolo: Ensuring Python package manager (pip) is installed...Done
07:54:31:FaceProcessing: Ensuring Python package manager (pip) is up to date...Done
07:54:31:FaceProcessing: Choosing Python packages from requirements.windows.cuda.txt
07:54:32:FaceProcessing: Traceback (most recent call last):
07:54:32:FaceProcessing: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\runpy.py", line 193, in _run_module_as_main
07:54:32:FaceProcessing: "__main__", mod_spec)
07:54:32:FaceProcessing: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\runpy.py", line 85, in _run_code
07:54:32:FaceProcessing: exec(code, run_globals)
07:54:32:FaceProcessing: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\__main__.py", line 29, in
07:54:32:FaceProcessing: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\main.py", line 10, in
07:54:32:FaceProcessing: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in
07:54:32:FaceProcessing: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\main_parser.py", line 9, in
07:54:32:FaceProcessing: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\build_env.py", line 19, in
07:54:32:FaceProcessing: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\spinners.py", line 9, in
07:54:32:FaceProcessing: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\utils\logging.py", line 29, in
07:54:32:FaceProcessing: from pip._internal.utils.misc import ensure_dir
07:54:32:FaceProcessing: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\utils\misc.py", line 43, in
07:54:32:FaceProcessing: from pip._internal.exceptions import CommandError, ExternallyManagedEnvironment
07:54:32:FaceProcessing: ModuleNotFoundError: No module named 'pip._internal.exceptions'
07:54:32:FaceProcessing: Installing Packages into Virtual Environment...Success
07:54:33:FaceProcessing: Ensuring Python package manager (pip) is installed...Done
07:54:36:FaceProcessing: Ensuring Python package manager (pip) is up to date...Done
07:54:36:FaceProcessing: Choosing Python packages from requirements.txt
07:54:37:ObjectDetectionYolo: Ensuring Python package manager (pip) is up to date...Done
07:54:37:ObjectDetectionYolo: Choosing Python packages from requirements.txt
07:54:45:ObjectDetectionYolo: ERROR: Exception:
07:54:45:ObjectDetectionYolo: Traceback (most recent call last):
07:54:45:ObjectDetectionYolo: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\shutil.py", line 566, in move
07:54:45:ObjectDetectionYolo: os.rename(src, real_dst)
07:54:45:ObjectDetectionYolo: FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\\Windows\\TEMP\\pip-target-mecp8lpb\\lib\\python\\aiofiles-23.1.0.dist-info' -> 'C:\\Program Files\\CodeProject\\AI\\runtimes\\bin\\windows\\python37\\venv\\Lib\\site-packages\\aiofiles-23.1.0.dist-info'
07:54:45:ObjectDetectionYolo: During handling of the above exception, another exception occurred:
07:54:45:ObjectDetectionYolo: Traceback (most recent call last):
07:54:45:ObjectDetectionYolo: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 169, in exc_logging_wrapper
07:54:45:ObjectDetectionYolo: status = run_func(*args)
07:54:45:ObjectDetectionYolo: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
07:54:45:ObjectDetectionYolo: return func(self, options, args)
07:54:45:ObjectDetectionYolo: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\commands\install.py", line 508, in run
07:54:45:ObjectDetectionYolo: options.target_dir, target_temp_dir, options.upgrade
07:54:45:ObjectDetectionYolo: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\pip\_internal\commands\install.py", line 566, in _handle_target_dir
07:54:45:ObjectDetectionYolo: shutil.move(os.path.join(lib_dir, item), target_item_dir)
07:54:45:ObjectDetectionYolo: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\shutil.py", line 577, in move
07:54:45:ObjectDetectionYolo: symlinks=True)
07:54:45:ObjectDetectionYolo: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\shutil.py", line 324, in copytree
07:54:45:ObjectDetectionYolo: os.makedirs(dst)
07:54:45:ObjectDetectionYolo: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\lib\os.py", line 223, in makedirs
07:54:45:ObjectDetectionYolo: mkdir(name, mode)
07:54:45:ObjectDetectionYolo: FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\\Program Files\\CodeProject\\AI\\runtimes\\bin\\windows\\python37\\venv\\Lib\\site-packages\\aiofiles-23.1.0.dist-info'
07:54:45:FaceProcessing: Installing Packages into Virtual Environment...Success
07:54:45:ObjectDetectionYolo: Installing Packages into Virtual Environment...Success
07:54:53:ObjectDetectionYolo: Downloading Standard YOLO models...Expanding...Done.
07:55:04:ObjectDetectionYolo: Downloading Custom YOLO models...Expanding...Done.
07:55:05:ObjectDetectionYolo: Module setup complete
07:55:05:Module ObjectDetectionYolo installed successfully.
07:55:05:
07:55:05:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
07:55:05:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
07:55:05:AutoStart: True
07:55:05:Queue: objectdetection_queue
07:55:05:Platforms: all
07:55:05:GPU: Support enabled
07:55:05:Parallelism: 0
07:55:05:Accelerator:
07:55:05:Half Precis.: enable
07:55:05:Runtime: python37
07:55:05:Runtime Loc: Shared
07:55:05:FilePath: detect_adapter.py
07:55:05:Pre installed: False
07:55:05:Start pause: 1 sec
07:55:05:LogVerbosity:
07:55:05:Valid: True
07:55:05:Environment Variables
07:55:05:APPDIR = %CURRENT_MODULE_PATH%
07:55:05:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
07:55:05:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
07:55:05:MODEL_SIZE = Medium
07:55:05:USE_CUDA = True
07:55:05:YOLOv5_AUTOINSTALL = false
07:55:05:YOLOv5_VERBOSE = false
07:55:05:
07:55:05:Started Object Detection (YOLOv5 6.2) module
07:55:05:Installer exited with code 0
07:55:05:Unknown response from server
07:55:05:detect_adapter.py: Traceback (most recent call last):
07:55:05:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect_adapter.py", line 20, in
07:55:05:detect_adapter.py: from detect import init_detect, do_detection
07:55:05:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect.py", line 8, in
07:55:05:detect_adapter.py: import torch
07:55:05:detect_adapter.py: ModuleNotFoundError: No module named 'torch'
07:55:05:detect_adapter.py: has exited
07:55:05:Module ObjectDetectionYolo has shutdown
07:55:06:Module ObjectDetectionYolo started successfully.
07:55:32:
07:55:32:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
07:55:32:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
07:55:32:AutoStart: True
07:55:32:Queue: objectdetection_queue
07:55:32:Platforms: all
07:55:32:GPU: Support enabled
07:55:32:Parallelism: 0
07:55:32:Accelerator:
07:55:32:Half Precis.: enable
07:55:32:Runtime: python37
07:55:32:Runtime Loc: Shared
07:55:32:FilePath: detect_adapter.py
07:55:32:Pre installed: False
07:55:32:Start pause: 1 sec
07:55:32:LogVerbosity:
07:55:32:Valid: True
07:55:32:Environment Variables
07:55:32:APPDIR = %CURRENT_MODULE_PATH%
07:55:32:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
07:55:32:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
07:55:32:MODEL_SIZE = Medium
07:55:32:USE_CUDA = True
07:55:32:YOLOv5_AUTOINSTALL = false
07:55:32:YOLOv5_VERBOSE = false
07:55:32:
07:55:32:Started Object Detection (YOLOv5 6.2) module
07:55:32:detect_adapter.py: Traceback (most recent call last):
07:55:32:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect_adapter.py", line 20, in
07:55:32:detect_adapter.py: from detect import init_detect, do_detection
07:55:32:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect.py", line 8, in
07:55:32:detect_adapter.py: import torch
07:55:32:detect_adapter.py: ModuleNotFoundError: No module named 'torch'
07:55:32:Module ObjectDetectionYolo has shutdown
07:55:32:detect_adapter.py: has exited
08:12:42:FaceProcessing: Downloading YOLO models...Expanding...Done.
08:12:42:FaceProcessing: Module setup complete
08:12:42:Module FaceProcessing installed successfully.
08:12:42:
08:12:42:Module 'Face Processing' (ID: FaceProcessing)
08:12:42:Module Path: C:\Program Files\CodeProject\AI\modules\FaceProcessing
08:12:42:AutoStart: True
08:12:42:Queue: faceprocessing_queue
08:12:42:Platforms: windows,linux,linux-arm64,macos,macos-arm64
08:12:42:GPU: Support enabled
08:12:42:Parallelism: 0
08:12:42:Accelerator:
08:12:42:Half Precis.: enable
08:12:42:Runtime: python37
08:12:42:Runtime Loc: Shared
08:12:42:FilePath: intelligencelayer\face.py
08:12:42:Pre installed: False
08:12:42:Start pause: 1 sec
08:12:42:LogVerbosity:
08:12:42:Valid: True
08:12:42:Environment Variables
08:12:42:APPDIR = %CURRENT_MODULE_PATH%\intelligencelayer
08:12:42:DATA_DIR = %DATA_DIR%
08:12:42:MODE = MEDIUM
08:12:42:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
08:12:42:PROFILE = desktop_gpu
08:12:42:USE_CUDA = True
08:12:42:YOLOv5_AUTOINSTALL = false
08:12:42:YOLOv5_VERBOSE = false
08:12:42:
08:12:42:Started Face Processing module
08:12:42:Installer exited with code 0
08:12:42:Unknown response from server
08:12:43:face.py: Traceback (most recent call last):
08:12:43:face.py: File "C:\Program Files\CodeProject\AI\modules\FaceProcessing\intelligencelayer\face.py", line 34, in
08:12:43:face.py: import torch
08:12:43:face.py: ModuleNotFoundError: No module named 'torch'
08:12:43:Module FaceProcessing has shutdown
08:12:43:face.py: has exited
08:12:43:Module FaceProcessing started successfully.
09:43:07:
09:43:07:Module 'Face Processing' (ID: FaceProcessing)
09:43:07:Module Path: C:\Program Files\CodeProject\AI\modules\FaceProcessing
09:43:07:AutoStart: True
09:43:07:Queue: faceprocessing_queue
09:43:07:Platforms: windows,linux,linux-arm64,macos,macos-arm64
09:43:07:GPU: Support enabled
09:43:07:Parallelism: 0
09:43:07:Accelerator:
09:43:07:Half Precis.: enable
09:43:07:Runtime: python37
09:43:07:Runtime Loc: Shared
09:43:07:FilePath: intelligencelayer\face.py
09:43:07:Pre installed: False
09:43:07:Start pause: 1 sec
09:43:07:LogVerbosity:
09:43:07:Valid: True
09:43:07:Environment Variables
09:43:07:APPDIR = %CURRENT_MODULE_PATH%\intelligencelayer
09:43:07:DATA_DIR = %DATA_DIR%
09:43:07:MODE = MEDIUM
09:43:07:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
09:43:07:PROFILE = desktop_gpu
09:43:07:USE_CUDA = True
09:43:07:YOLOv5_AUTOINSTALL = false
09:43:07:YOLOv5_VERBOSE = false
09:43:07:
09:43:07:Started Face Processing module
09:43:08:face.py: Traceback (most recent call last):
09:43:08:face.py: File "C:\Program Files\CodeProject\AI\modules\FaceProcessing\intelligencelayer\face.py", line 34, in
09:43:08:face.py: import torch
09:43:08:face.py: ModuleNotFoundError: No module named 'torch'
09:43:08:Module FaceProcessing has shutdown
09:43:08:face.py: has exited
09:43:11:
09:43:11:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
09:43:11:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
09:43:11:AutoStart: True
09:43:11:Queue: objectdetection_queue
09:43:11:Platforms: all
09:43:11:GPU: Support enabled
09:43:11:Parallelism: 0
09:43:11:Accelerator:
09:43:11:Half Precis.: enable
09:43:11:Runtime: python37
09:43:11:Runtime Loc: Shared
09:43:11:FilePath: detect_adapter.py
09:43:11:Pre installed: False
09:43:11:Start pause: 1 sec
09:43:11:LogVerbosity:
09:43:11:Valid: True
09:43:11:Environment Variables
09:43:11:APPDIR = %CURRENT_MODULE_PATH%
09:43:11:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
09:43:11:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
09:43:11:MODEL_SIZE = Medium
09:43:11:USE_CUDA = True
09:43:11:YOLOv5_AUTOINSTALL = false
09:43:11:YOLOv5_VERBOSE = false
09:43:11:
09:43:11:Started Object Detection (YOLOv5 6.2) module
09:43:12:detect_adapter.py: Traceback (most recent call last):
09:43:12:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect_adapter.py", line 20, in
09:43:12:detect_adapter.py: from detect import init_detect, do_detection
09:43:12:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect.py", line 8, in
09:43:12:detect_adapter.py: import torch
09:43:12:detect_adapter.py: ModuleNotFoundError: No module named 'torch'
09:43:12:Module ObjectDetectionYolo has shutdown
09:43:12:detect_adapter.py: has exited
Logging level
Info
|
|
|
|
|
What version of Windows?
Have you tried uninstalling then reinstalling a module via the "Install Modules" tab?
cheers
Chris Maunder
|
|
|
|
|
Chris, I'm on Windows 11.
Everytime I try to install version 2.1.* I always uninstall 2.0.* and install from scratch. On 2.1.9 by default no modules were preinstalled so I installed only what I needed which was Object Detection (YOLOv5 6.2) and face detection. As we speak, I tried to enable GPU and the follow error appeared. OTH version 2.0.8 it works right out of the box.
10:38:53:detect_adapter.py: Traceback (most recent call last):
10:38:53:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect_adapter.py", line 20, in
10:38:53:detect_adapter.py: from detect import init_detect, do_detection
10:38:53:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect.py", line 8, in
10:38:53:detect_adapter.py: import torch
10:38:53:detect_adapter.py: ModuleNotFoundError: No module named 'torch'
|
|
|
|
|
Do you have any app blockers, any extra security, any rules around apps creating folders under c:\Program Files?
Is your internet OK?
Do you see C:\Program Files\CodeProject\AI\runtimes ? What about C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37 and does it look like this:
cheers
Chris Maunder
|
|
|
|
|
yup, confirmed it's there mine is in Quote: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37
|
|
|
|
|
Are the contents of the folder the same, especially the python exes and the venv folder?
cheers
Chris Maunder
|
|
|
|
|
yah all the files are there
|
|
|
|
|
a little update. I removed all module and only installed object detection. This time, GPU is enabled and showing counts on detection but the explorer yield "no prediction found"
This is the error on startup.
<pre lang="text">08:08:47:Object Detection (YOLOv5 6.2): [RuntimeError] : Traceback (most recent call last):
File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect.py", line 162, in do_detection
det = detector(img, size=640)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\autograd\grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\models\common.py", line 705, in forward
y = self.model(x, augment=augment) # forward
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\models\common.py", line 515, in forward
y = self.model(im, augment=augment, visualize=visualize) if augment or visualize else self.model(im)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Lib\site-packages\yolov5\models\yolo.py", line 209, in forward
return self._forward_once(x, profile, visualize) # single-scale inference, train
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Lib\site-packages\yolov5\models\yolo.py", line 121, in _forward_once
x = m(x) # run
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Lib\site-packages\yolov5\models\yolo.py", line 74, in forward
xy = (xy * 2 + self.grid[i]) * self.stride[i] # xy
RuntimeError: The size of tensor a (48) must match the size of tensor b (60) at non-singleton dimension 2
08:08:47:Object Detection (YOLOv5 6.2): [RuntimeError] : Traceback (most recent call last):
File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect.py", line 162, in do_detection
det = detector(img, size=640)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\autograd\grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\models\common.py", line 705, in forward
y = self.model(x, augment=augment) # forward
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\models\common.py", line 515, in forward
y = self.model(im, augment=augment, visualize=visualize) if augment or visualize else self.model(im)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Lib\site-packages\yolov5\models\yolo.py", line 209, in forward
return self._forward_once(x, profile, visualize) # single-scale inference, train
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Lib\site-packages\yolov5\models\yolo.py", line 121, in _forward_once
x = m(x) # run
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Lib\site-packages\yolov5\models\yolo.py", line 74, in forward
xy = (xy * 2 + self.grid[i]) * self.stride[i] # xy
RuntimeError: The size of tensor a (48) must match the size of tensor b (60) at non-singleton dimension 2
|
|
|
|
|