|
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
|
|
|
|
|
Can you please post what's in the info popup for YOLO?
and the top part of the System Info tab
The little 'copy' icon will copy this info to the clipboard for you to paste.
cheers
Chris Maunder
|
|
|
|
|
I made a little progress. Uninstalled everything deleted all traces of codeproject rebooted and reinstall CUDA, then CodeProject. This time, Face detection, Object Detection (YOLOV5.NET) and (YOLOV6 6.2) installed itself.
If I disable V5.net it doesn't detect using 6.2. Ideally, I should be using 6.2 right since I have GPU support. When disable 6.2 BI starts detecting again. What's more strange is it shows detection counts on 6.2
I have both enable at this time. Here are the logs you requested.
System info
Server version: 2.1.9-Beta
Operating System: Windows (Microsoft Windows 11 version 10.0.22000)
CPUs: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
1 CPU x 4 cores. 8 logical processors (x64)
GPU: NVIDIA GeForce GTX 1650 (4 GiB) (NVidia)
Driver: 522.30 CUDA: 11.8 Compute: 7.5
System RAM: 32 GiB
Target: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.5
System GPU info:
GPU 3D Usage 13%
GPU RAM Usage 1.1 GiB
Video adapter info:
NVIDIA GeForce GTX 1650:
Driver Version 31.0.15.2230
Video Processor NVIDIA GeForce GTX 1650
Intel(R) HD Graphics 530:
Driver Version 26.20.100.7262
Video Processor Intel(R) HD Graphics Family
Global Environment variables:
CPAI_APPROOTPATH = C:\Program Files\CodeProject\AI
CPAI_PORT = 32168
6.2
<blockquote class="quote"><div class="op">Quote:</div>Module 'Object Detection (YOLOv5 6.2)' (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 = %CURRENT_MODULE_PATH%
CPAI_MODULE_SUPPORT_GPU = True
CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
MODELS_DIR = %CURRENT_MODULE_PATH%/assets
MODEL_SIZE = Medium
USE_CUDA = True
YOLOv5_AUTOINSTALL = false
YOLOv5_VERBOSE = false
Started: 19-May-2023 10:54:25 AM
LastSeen: 19-May-2023 10:54:42 AM
Status: Started
Processed: 39
Provider: CUDA
HardwareType: GPU
</blockquote>
V5.NET
<blockquote class="quote"><div class="op">Quote:</div>Module 'Object Detection (YOLOv5 .NET)' (ID: ObjectDetectionNet)
Module Path: <root>\modules\ObjectDetectionNet
AutoStart: True
Queue: objectdetection_queue
Platforms: windows,linux,linux-arm64,macos,macos-arm64
GPU: Support enabled
Parallelism: 0
Accelerator:
Half Precis.: enable
Runtime: execute
Runtime Loc: Shared
FilePath: ObjectDetectionNet.exe
Pre installed: False
Start pause: 1 sec
LogVerbosity:
Valid: True
Environment Variables
CPAI_MODULE_SUPPORT_GPU = True
CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%\custom-models
MODELS_DIR = %CURRENT_MODULE_PATH%\assets
MODEL_SIZE = MEDIUM
USE_CUDA = True
Started: 19-May-2023 10:48:51 AM
LastSeen: 19-May-2023 11:01:00 AM
Status: Started
Processed: 1474
Provider: DirectML
HardwareType: GPU
</blockquote>
|
|
|
|
|
FWIW, spun up docker GPU version and it works. I don't think face detection is working but I'm not using it for anything so no big deal. Going to run it in docker to see how things goes but it appears to run a little better and lower resources
|
|
|
|
|
I am having the same issue in that I can't get anything beyone 2.08 to work correctly
I get "ModuleNotFoundError: No module named 'PIL'" errors on LPR, FaceProcessing, and YOLOv5 6.2.
YOLOv5 .net does seem to work at least from the AIExplorer page
I have done the Option 1 with a vengance on all 3 modules and they seem to complete without any errors. (Install logs available if needed)
******
I do see one error when reinstalling:
Installing Packages into Virtual Environment...ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
botocore 1.29.137 requires urllib3<1.27,>=1.25.4, but you have urllib3 2.0.2 which is incompatible.
google-auth 2.18.1 requires urllib3<2.0, but you have urllib3 2.0.2 which is incompatible.
Success
*****
Server version: 2.1.9-Beta
Operating System: Windows (Microsoft Windows 11 version 10.0.22621)
CPUs: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
1 CPU x 6 cores. 6 logical processors (x64)
GPU: Quadro K620 (2 GiB) (NVidia)
Driver: 516.94 CUDA: 11.7 Compute: 5.0
System RAM: 16 GiB
Target: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.5
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 41 MiB
Video adapter info:
NVIDIA Quadro K620:
Driver Version 31.0.15.1694
Video Processor Quadro K620
Intel(R) UHD Graphics 630:
Driver Version 30.0.101.1692
Video Processor Intel(R) UHD Graphics Family
Global Environment variables:
CPAI_APPROOTPATH = C:\Program Files\CodeProject\AI
CPAI_PORT = 32168
Module 'Object Detection (YOLOv5 6.2)' (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 = %CURRENT_MODULE_PATH%
CPAI_HALF_PRECISION = disable
CPAI_MODULE_SUPPORT_GPU = True
CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
MODELS_DIR = %CURRENT_MODULE_PATH%/assets
MODEL_SIZE = Medium
USE_CUDA = True
YOLOv5_AUTOINSTALL = false
YOLOv5_VERBOSE = false
Started: 20-May-2023 1:56:58 PM
LastSeen:
Status: Started
Processed: 0
Provider:
HardwareType: CPU
14:12:40:Operating System: Windows (Microsoft Windows 11 version 10.0.22621)
14:12:40:CPUs: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
14:12:40: 1 CPU x 6 cores. 6 logical processors (x64)
14:12:40:GPU: Quadro K620 (2 GiB) (NVidia)
14:12:40: Driver: 516.94 CUDA: 11.7 Compute: 5.0
14:12:40:System RAM: 16 GiB
14:12:40:Target: Windows
14:12:40:BuildConfig: Release
14:12:40:Execution Env: Native
14:12:40:Runtime Env: Production
14:12:40:.NET framework: .NET 7.0.5
14:12:40:App DataDir: C:\ProgramData\CodeProject\AI
14:12:40:Video adapter info:
14:12:40: NVIDIA Quadro K620:
14:12:40: Driver Version 31.0.15.1694
14:12:40: Video Processor Quadro K620
14:12:40: Intel(R) UHD Graphics 630:
14:12:40: Driver Version 30.0.101.1692
14:12:40: Video Processor Intel(R) UHD Graphics Family
14:12:40:ROOT_PATH = C:\Program Files\CodeProject\AI
14:12:40:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
14:12:40:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
14:12:40:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
14:12:40:PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
14:12:40:Data Dir = C:\ProgramData\CodeProject\AI
14:12:40:Server version: 2.1.9-Beta
14:12:43:
14:12:43:Module 'Face Processing' (ID: FaceProcessing)
14:12:43:Module Path: C:\Program Files\CodeProject\AI\modules\FaceProcessing
14:12:43:AutoStart: True
14:12:43:Queue: faceprocessing_queue
14:12:43:Platforms: windows,linux,linux-arm64,macos,macos-arm64
14:12:43:GPU: Support enabled
14:12:43:Parallelism: 0
14:12:43:Accelerator:
14:12:43:Half Precis.: enable
14:12:43:Runtime: python37
14:12:43:Runtime Loc: Shared
14:12:43:FilePath: intelligencelayer\face.py
14:12:43:Pre installed: False
14:12:43:Start pause: 1 sec
14:12:43:LogVerbosity:
14:12:43:Valid: True
14:12:43:Environment Variables
14:12:43:APPDIR = %CURRENT_MODULE_PATH%\intelligencelayer
14:12:44:CPAI_MODULE_SUPPORT_GPU = True
14:12:44:DATA_DIR = %DATA_DIR%
14:12:44:MODE = MEDIUM
14:12:44:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
14:12:44:PROFILE = desktop_gpu
14:12:44:USE_CUDA = True
14:12:44:YOLOv5_AUTOINSTALL = false
14:12:44:YOLOv5_VERBOSE = false
14:12:44:
14:12:44:Started Face Processing module
14:12:44:face.py: Traceback (most recent call last):
14:12:44:face.py: File "C:\Program Files\CodeProject\AI\modules\FaceProcessing\intelligencelayer\face.py", line 21, in
14:12:44:face.py: from request_data import RequestData
14:12:44:face.py: File "../../SDK/Python\request_data.py", line 8, in
14:12:44:face.py: from PIL import Image
14:12:44:face.py: ModuleNotFoundError: No module named 'PIL'
14:12:44:Module FaceProcessing has shutdown
14:12:44:face.py: has exited
14:12:45:
14:12:45:Module 'License Plate Reader' (ID: ALPR)
14:12:45:Module Path: C:\Program Files\CodeProject\AI\modules\ALPR
14:12:45:AutoStart: True
14:12:45:Queue: alpr_queue
14:12:45:Platforms: windows,linux,macos,macos-arm64
14:12:45:GPU: Support enabled
14:12:45:Parallelism: 0
14:12:45:Accelerator:
14:12:45:Half Precis.: enable
14:12:45:Runtime: python37
14:12:45:Runtime Loc: Local
14:12:45:FilePath: ALPR_adapter.py
14:12:45:Pre installed: False
14:12:45:Start pause: 1 sec
14:12:45:LogVerbosity:
14:12:45:Valid: True
14:12:45:Environment Variables
14:12:45:AUTO_PLATE_ROTATE = True
14:12:45:PLATE_CONFIDENCE = 0.7
14:12:45:PLATE_RESCALE_FACTOR = 2
14:12:45:PLATE_ROTATE_DEG = 0
14:12:45:
14:12:45:Started License Plate Reader module
14:12:46:
14:12:46:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
14:12:46:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
14:12:46:AutoStart: True
14:12:46:Queue: objectdetection_queue
14:12:46:Platforms: all
14:12:46:GPU: Support enabled
14:12:46:Parallelism: 0
14:12:46:Accelerator:
14:12:46:Half Precis.: enable
14:12:46:Runtime: python37
14:12:46:Runtime Loc: Shared
14:12:46:FilePath: detect_adapter.py
14:12:46:Pre installed: False
14:12:46:Start pause: 1 sec
14:12:46:LogVerbosity:
14:12:46:Valid: True
14:12:46:Environment Variables
14:12:46:APPDIR = %CURRENT_MODULE_PATH%
14:12:46:CPAI_HALF_PRECISION = disable
14:12:46:CPAI_MODULE_SUPPORT_GPU = True
14:12:46:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
14:12:46:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
14:12:46:MODEL_SIZE = Medium
14:12:46:USE_CUDA = True
14:12:46:YOLOv5_AUTOINSTALL = false
14:12:46:YOLOv5_VERBOSE = false
14:12:46:
14:12:46:Started Object Detection (YOLOv5 6.2) module
14:12:46:detect_adapter.py: Traceback (most recent call last):
14:12:46:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect_adapter.py", line 12, in
14:12:46:detect_adapter.py: from request_data import RequestData
14:12:46:detect_adapter.py: File "../../SDK/Python\request_data.py", line 8, in
14:12:46:detect_adapter.py: from PIL import Image
14:12:46:detect_adapter.py: ModuleNotFoundError: No module named 'PIL'
14:12:46:Module ObjectDetectionYolo has shutdown
14:12:46:detect_adapter.py: has exited
14:12:46:Server: This is the latest version
14:12:52:ALPR_adapter.py: Timeout connecting to the server
14:12:58:
14:12:58:Module 'Face Processing' (ID: FaceProcessing)
14:12:58:Module Path: C:\Program Files\CodeProject\AI\modules\FaceProcessing
14:12:58:AutoStart: True
14:12:58:Queue: faceprocessing_queue
14:12:58:Platforms: windows,linux,linux-arm64,macos,macos-arm64
14:12:58:GPU: Support enabled
14:12:58:Parallelism: 0
14:12:58:Accelerator:
14:12:58:Half Precis.: enable
14:12:58:Runtime: python37
14:12:58:Runtime Loc: Shared
14:12:58:FilePath: intelligencelayer\face.py
14:12:58:Pre installed: False
14:12:58:Start pause: 1 sec
14:12:58:LogVerbosity:
14:12:58:Valid: True
14:12:58:Environment Variables
14:12:58:APPDIR = %CURRENT_MODULE_PATH%\intelligencelayer
14:12:58:CPAI_MODULE_SUPPORT_GPU = True
14:12:58:DATA_DIR = %DATA_DIR%
14:12:58:MODE = MEDIUM
14:12:58:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
14:12:58:PROFILE = desktop_gpu
14:12:58:USE_CUDA = True
14:12:58:YOLOv5_AUTOINSTALL = false
14:12:58:YOLOv5_VERBOSE = false
14:12:58:
14:12:58:Started Face Processing module
14:12:58:face.py: Traceback (most recent call last):
14:12:58:face.py: File "C:\Program Files\CodeProject\AI\modules\FaceProcessing\intelligencelayer\face.py", line 21, in
14:12:58:face.py: from request_data import RequestData
14:12:58:face.py: File "../../SDK/Python\request_data.py", line 8, in
14:12:58:face.py: from PIL import Image
14:12:58:face.py: ModuleNotFoundError: No module named 'PIL'
14:12:58:Module FaceProcessing has shutdown
14:12:58:face.py: has exited
14:12:59:
14:12:59:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
14:12:59:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
14:12:59:AutoStart: True
14:12:59:Queue: objectdetection_queue
14:12:59:Platforms: all
14:12:59:GPU: Support enabled
14:12:59:Parallelism: 0
14:12:59:Accelerator:
14:12:59:Half Precis.: enable
14:12:59:Runtime: python37
14:12:59:Runtime Loc: Shared
14:12:59:FilePath: detect_adapter.py
14:12:59:Pre installed: False
14:12:59:Start pause: 1 sec
14:12:59:LogVerbosity:
14:12:59:Valid: True
14:12:59:Environment Variables
14:12:59:APPDIR = %CURRENT_MODULE_PATH%
14:12:59:CPAI_HALF_PRECISION = disable
14:12:59:CPAI_MODULE_SUPPORT_GPU = True
14:12:59:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
14:12:59:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
14:12:59:MODEL_SIZE = Medium
14:12:59:USE_CUDA = True
14:12:59:YOLOv5_AUTOINSTALL = false
14:12:59:YOLOv5_VERBOSE = false
14:12:59:
14:12:59:Started Object Detection (YOLOv5 6.2) module
14:12:59:detect_adapter.py: Traceback (most recent call last):
14:12:59:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect_adapter.py", line 12, in
14:12:59:detect_adapter.py: from request_data import RequestData
14:12:59:detect_adapter.py: File "../../SDK/Python\request_data.py", line 8, in
14:12:59:detect_adapter.py: from PIL import Image
14:12:59:detect_adapter.py: ModuleNotFoundError: No module named 'PIL'
14:12:59:Module ObjectDetectionYolo has shutdown
14:12:59:detect_adapter.py: has exited
modified 21-May-23 9:45am.
|
|
|
|
|
I manually installed Python 3.7.9 in the existing python37 directory and I am no longer getting the "PIL" errors.
But it is also very unhappy and I'm sure not very stable
09:11:17:GPU: Quadro K620 (2 GiB) (NVidia)
09:11:17: Driver: 516.94 CUDA: 11.7 Compute: 5.0
09:11:17:System RAM: 16 GiB
09:11:17:Target: Windows
09:11:17:BuildConfig: Release
09:11:17:Execution Env: Native
09:11:17:Runtime Env: Production
09:11:17:.NET framework: .NET 7.0.5
09:11:17:App DataDir: C:\ProgramData\CodeProject\AI
09:11:17:Video adapter info:
09:11:17: NVIDIA Quadro K620:
09:11:17: Driver Version 31.0.15.1694
09:11:17: Video Processor Quadro K620
09:11:17: Intel(R) UHD Graphics 630:
09:11:17: Driver Version 30.0.101.1692
09:11:17: Video Processor Intel(R) UHD Graphics Family
09:11:17:ROOT_PATH = C:\Program Files\CodeProject\AI
09:11:17:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
09:11:17:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
09:11:17:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
09:11:17:PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
09:11:17:Data Dir = C:\ProgramData\CodeProject\AI
09:11:17:Server version: 2.1.9-Beta
09:11:17:ModuleRunner Start
09:11:17:Starting Background AI Modules
09:11:17:Client request 'list-custom' in queue 'objectdetection_queue' (...cfd3c4)
09:11:20:GetCommandByRuntime: Runtime=python37, Location=Shared
09:11:20:Command: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python
09:11:20:
09:11:20:Attempting to start ObjectDetectionYolo with C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect_adapter.py"
09:11:20:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
09:11:20:
09:11:20:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
09:11:20:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
09:11:20:AutoStart: True
09:11:20:Queue: objectdetection_queue
09:11:20:Platforms: all
09:11:20:GPU: Support enabled
09:11:20:Parallelism: 0
09:11:20:Accelerator:
09:11:20:Half Precis.: enable
09:11:20:Runtime: python37
09:11:20:Runtime Loc: Shared
09:11:20:FilePath: detect_adapter.py
09:11:20:Pre installed: False
09:11:20:Start pause: 1 sec
09:11:20:LogVerbosity:
09:11:20:Valid: True
09:11:20:Environment Variables
09:11:20:APPDIR = %CURRENT_MODULE_PATH%
09:11:20:CPAI_HALF_PRECISION = disable
09:11:20:CPAI_MODULE_SUPPORT_GPU = True
09:11:20:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
09:11:20:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
09:11:20:MODEL_SIZE = Medium
09:11:20:USE_CUDA = True
09:11:20:YOLOv5_AUTOINSTALL = false
09:11:20:YOLOv5_VERBOSE = false
09:11:20:
09:11:20:Started Object Detection (YOLOv5 6.2) module
09:11:21:GetCommandByRuntime: Runtime=python37, Location=Local
09:11:21:Command: C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python37\venv\scripts\Python
09:11:21:
09:11:21:Attempting to start ALPR with C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python37\venv\scripts\Python "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py"
09:11:21:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...\modules\ALPR\ALPR_adapter.py"
09:11:21:
09:11:21:Module 'License Plate Reader' (ID: ALPR)
09:11:21:Module Path: C:\Program Files\CodeProject\AI\modules\ALPR
09:11:21:AutoStart: True
09:11:21:Queue: alpr_queue
09:11:21:Platforms: windows,linux,macos,macos-arm64
09:11:21:GPU: Support enabled
09:11:21:Parallelism: 0
09:11:21:Accelerator:
09:11:21:Half Precis.: enable
09:11:21:Runtime: python37
09:11:21:Runtime Loc: Local
09:11:21:FilePath: ALPR_adapter.py
09:11:21:Pre installed: False
09:11:21:Start pause: 1 sec
09:11:21:LogVerbosity:
09:11:21:Valid: True
09:11:21:Environment Variables
09:11:21:AUTO_PLATE_ROTATE = True
09:11:21:PLATE_CONFIDENCE = 0.7
09:11:21:PLATE_RESCALE_FACTOR = 2
09:11:21:PLATE_ROTATE_DEG = 0
09:11:21:
09:11:21:Started License Plate Reader module
09:11:22:GetCommandByRuntime: Runtime=python37, Location=Shared
09:11:22:Command: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python
09:11:22:
09:11:22:Attempting to start FaceProcessing with C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python "C:\Program Files\CodeProject\AI\modules\FaceProcessing\intelligencelayer\face.py"
09:11:22:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...ing\intelligencelayer\face.py"
09:11:22:
09:11:22:Module 'Face Processing' (ID: FaceProcessing)
09:11:22:Module Path: C:\Program Files\CodeProject\AI\modules\FaceProcessing
09:11:22:AutoStart: True
09:11:22:Queue: faceprocessing_queue
09:11:22:Platforms: windows,linux,linux-arm64,macos,macos-arm64
09:11:22:GPU: Support enabled
09:11:22:Parallelism: 0
09:11:22:Accelerator:
09:11:22:Half Precis.: enable
09:11:22:Runtime: python37
09:11:22:Runtime Loc: Shared
09:11:22:FilePath: intelligencelayer\face.py
09:11:22:Pre installed: False
09:11:22:Start pause: 1 sec
09:11:22:LogVerbosity:
09:11:22:Valid: True
09:11:22:Environment Variables
09:11:22:APPDIR = %CURRENT_MODULE_PATH%\intelligencelayer
09:11:22:CPAI_MODULE_SUPPORT_GPU = True
09:11:22:DATA_DIR = %DATA_DIR%
09:11:22:MODE = MEDIUM
09:11:22:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
09:11:22:PROFILE = desktop_gpu
09:11:22:USE_CUDA = True
09:11:22:YOLOv5_AUTOINSTALL = false
09:11:22:YOLOv5_VERBOSE = false
09:11:22:
09:11:22:Started Face Processing module
09:11:23:Current Version is 2.1.9-Beta
09:11:23:Server: This is the latest version
09:11:29:ALPR_adapter.py: Timeout connecting to the server
09:11:29:ALPR_adapter.py: License Plate Reader started.License Plate Reader: License Plate Reader started.
09:11:29:License Plate Reader: License Plate Reader started.
09:11:33:Sending shutdown request to python/FaceProcessing
09:11:33:Client request 'Quit' in queue 'faceprocessing_queue' (...08d43a)
09:11:36:Running init for Face Processing
09:11:36:face.py: Vision AI services setup: Retrieving environment variables...
09:11:36:face.py: USE_MPS not found. Setting to default True
09:11:36:face.py: GPU in use: Quadro K620
09:11:36:face.py: APPDIR: C:\Program Files\CodeProject\AI\modules\FaceProcessing\intelligencelayer
09:11:36:face.py: PROFILE: desktop_gpu
09:11:36:face.py: USE_CUDA: True
09:11:36:face.py: DATA_DIR: C:\ProgramData\CodeProject\AI
09:11:36:face.py: MODELS_DIR: C:\Program Files\CodeProject\AI\modules\FaceProcessing\assets
09:11:36:face.py: MODE: MEDIUM
09:11:36:Request 'Quit' dequeued from 'faceprocessing_queue' (...08d43a)
09:11:36:Face Processing: Face Processing started.
09:11:36:Face Processing: Retrieved faceprocessing_queue command
09:11:36:Running init for Object Detection (YOLOv5 6.2)
09:11:37:detect_adapter.py: APPDIR: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
09:11:37:detect_adapter.py: MODEL_SIZE: medium
09:11:37:detect_adapter.py: MODELS_DIR: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\assets
09:11:37:Object Detection (YOLOv5 6.2): Object Detection (YOLOv5 6.2) started.
09:11:37:Request 'list-custom' dequeued from 'objectdetection_queue' (...cfd3c4)
09:11:37:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:11:37:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'list-custom' (...cfd3c4) took 2ms
09:11:37:Response received (...cfd3c4)
09:11:46:Module FaceProcessing has shutdown
09:11:46:face.py: has exited
09:11:56:Client request 'detect' in queue 'objectdetection_queue' (...d7b61b)
09:11:56:Request 'detect' dequeued from 'objectdetection_queue' (...d7b61b)
09:11:56:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:11:56:Client request 'detect' in queue 'objectdetection_queue' (...84a266)
09:11:56:Request 'detect' dequeued from 'objectdetection_queue' (...84a266)
09:11:56:Client request 'detect' in queue 'objectdetection_queue' (...8aa726)
09:11:56:Request 'detect' dequeued from 'objectdetection_queue' (...8aa726)
09:11:56:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:11:56:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:11:56:Client request 'detect' in queue 'objectdetection_queue' (...5c60f6)
09:11:56:Request 'detect' dequeued from 'objectdetection_queue' (...5c60f6)
09:11:56:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:11:56:Client request 'detect' in queue 'objectdetection_queue' (...b29a06)
09:11:56:Request 'detect' dequeued from 'objectdetection_queue' (...b29a06)
09:11:56:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:11:56:Client request 'detect' in queue 'objectdetection_queue' (...9feb0c)
09:11:56:Request 'detect' dequeued from 'objectdetection_queue' (...9feb0c)
09:11:56:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:12:00:Object Detection (YOLOv5 6.2): Model Path is C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\assets\yolov5m.pt
09:12:00:Response received (...d7b61b)
09:12:00: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 (60) must match the size of tensor b (48) at non-singleton dimension 2
09:12:00:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'detect' (...d7b61b) took 4323ms
09:12:00:Response received (...8aa726): No objects found
09:12:00:Client request 'alpr' in queue 'alpr_queue' (...084906)
09:12:00:Request 'alpr' dequeued from 'alpr_queue' (...084906)
09:12:00:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'detect' (...8aa726) took 3888ms
09:12:00:Response received (...84a266): Found car
09:12:00:Client request 'alpr' in queue 'alpr_queue' (...2af4ef)
09:12:00:Request 'alpr' dequeued from 'alpr_queue' (...2af4ef)
09:12:00:License Plate Reader: Retrieved alpr_queue command
09:12:00:License Plate Reader: Retrieved alpr_queue command
09:12:00:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'detect' (...84a266) took 3960ms
09:12:00:Client request 'custom' in queue 'objectdetection_queue' (...3168f9)
09:12:00:Request 'custom' dequeued from 'objectdetection_queue' (...3168f9)
09:12:00:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:12:00:Client request 'custom' in queue 'objectdetection_queue' (...ea0d2b)
09:12:00:Request 'custom' dequeued from 'objectdetection_queue' (...ea0d2b)
09:12:00:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:12:00:Response received (...5c60f6): No objects found
09:12:00:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'detect' (...5c60f6) took 455ms
09:12:00:Response received (...b29a06): No objects found
09:12:00:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'detect' (...b29a06) took 449ms
09:12:00:Client request 'alpr' in queue 'alpr_queue' (...98c7db)
09:12:00:Request 'alpr' dequeued from 'alpr_queue' (...98c7db)
09:12:00:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'detect' (...9feb0c) took 477ms
09:12:00:Response received (...9feb0c): Found car
09:12:00:Object Detection (YOLOv5 6.2): Detecting using license-plate
09:12:00:Object Detection (YOLOv5 6.2): Detecting using license-plate
09:12:00:Client request 'alpr' in queue 'alpr_queue' (...5231a6)
09:12:00:Request 'alpr' dequeued from 'alpr_queue' (...5231a6)
09:12:00:License Plate Reader: Retrieved alpr_queue command
09:12:00:License Plate Reader: Retrieved alpr_queue command
09:12:00:Client request 'custom' in queue 'objectdetection_queue' (...29c989)
09:12:00:Request 'custom' dequeued from 'objectdetection_queue' (...29c989)
09:12:00:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:12:01:Object Detection (YOLOv5 6.2): Detecting using license-plate
09:12:01:Response received (...3168f9): No objects found
09:12:01:Response received (...ea0d2b): No objects found
09:12:01:Object Detection (YOLOv5 6.2): Model Path is C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\custom-models\license-plate.pt
09:12:01:Response received (...29c989): No objects found
09:12:01:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'custom' (...3168f9) took 474ms
09:12:01:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'custom' (...ea0d2b) took 441ms
09:12:01:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'custom' (...29c989) took 354ms
09:12:01:License Plate Reader: Queue request for License Plate Reader command 'alpr' (...084906) took 887ms
09:12:01:Response received (...084906): No plates found
09:12:01:Response received (...2af4ef): No plates found
09:12:01:Response received (...98c7db): No plates found
09:12:01:License Plate Reader: Queue request for License Plate Reader command 'alpr' (...2af4ef) took 777ms
09:12:01:License Plate Reader: Queue request for License Plate Reader command 'alpr' (...98c7db) took 497ms
09:12:01:Request 'custom' dequeued from 'objectdetection_queue' (...1f2a3d)
09:12:01:Client request 'custom' in queue 'objectdetection_queue' (...1f2a3d)
09:12:01:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:12:01:Object Detection (YOLOv5 6.2): Detecting using license-plate
09:12:01:Response received (...1f2a3d): No objects found
09:12:01:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'custom' (...1f2a3d) took 109ms
09:12:01:License Plate Reader: Queue request for License Plate Reader command 'alpr' (...5231a6) took 211ms
09:12:01:Response received (...5231a6): No plates found
09:12:07:FaceProcessing went quietly
09:12:07:GetCommandByRuntime: Runtime=python37, Location=Shared
09:12:07:Command: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python
09:12:07:
09:12:07:Attempting to start FaceProcessing with C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python "C:\Program Files\CodeProject\AI\modules\FaceProcessing\intelligencelayer\face.py"
09:12:07:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...ing\intelligencelayer\face.py"
09:12:07:
09:12:07:Module 'Face Processing' (ID: FaceProcessing)
09:12:07:Module Path: C:\Program Files\CodeProject\AI\modules\FaceProcessing
09:12:07:AutoStart: True
09:12:07:Queue: faceprocessing_queue
09:12:07:Platforms: windows,linux,linux-arm64,macos,macos-arm64
09:12:07:GPU: Support enabled
09:12:07:Parallelism: 0
09:12:07:Accelerator:
09:12:07:Half Precis.: enable
09:12:07:Runtime: python37
09:12:07:Runtime Loc: Shared
09:12:07:FilePath: intelligencelayer\face.py
09:12:07:Pre installed: False
09:12:07:Start pause: 1 sec
09:12:07:LogVerbosity:
09:12:07:Valid: True
09:12:07:Environment Variables
09:12:07:APPDIR = %CURRENT_MODULE_PATH%\intelligencelayer
09:12:07:CPAI_MODULE_SUPPORT_GPU = True
09:12:07:DATA_DIR = %DATA_DIR%
09:12:07:MODE = MEDIUM
09:12:07:MODELS_DIR = %CURRENT_MODULE_PATH%\assets
09:12:07:PROFILE = desktop_gpu
09:12:07:USE_CUDA = True
09:12:07:YOLOv5_AUTOINSTALL = false
09:12:07:YOLOv5_VERBOSE = false
09:12:07:
09:12:07:Started Face Processing module
09:12:08:Sending shutdown request to python/ObjectDetectionYolo
09:12:08:Client request 'Quit' in queue 'objectdetection_queue' (...93a9a1)
09:12:08:Request 'Quit' dequeued from 'objectdetection_queue' (...93a9a1)
09:12:08:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:12:11:detect_adapter.py: GPU compute capability is 5.0
09:12:11:detect_adapter.py: Not using half-precision for the device 'Quadro K620'
09:12:11:detect_adapter.py: Inference processing will occur on device 'Quadro K620'
09:12:11:detect_adapter.py: GPU compute capability is 5.0
09:12:11:detect_adapter.py: Not using half-precision for the device 'Quadro K620'
09:12:11:detect_adapter.py: Inference processing will occur on device 'Quadro K620'
09:12:12:Module ObjectDetectionYolo has shutdown
09:12:12:detect_adapter.py: has exited
09:12:14:face.py: Vision AI services setup: Retrieving environment variables...
09:12:14:face.py: USE_MPS not found. Setting to default True
09:12:14:face.py: GPU in use: Quadro K620
09:12:14:face.py: APPDIR: C:\Program Files\CodeProject\AI\modules\FaceProcessing\intelligencelayer
09:12:14:face.py: PROFILE: desktop_gpu
09:12:14:face.py: USE_CUDA: True
09:12:14:face.py: DATA_DIR: C:\ProgramData\CodeProject\AI
09:12:14:face.py: MODELS_DIR: C:\Program Files\CodeProject\AI\modules\FaceProcessing\assets
09:12:14:face.py: MODE: MEDIUM
09:12:14:Running init for Face Processing
09:12:14:Face Processing: Face Processing started.
Detection is working in AIExplorer but not well
LPR test image 10.jpg returns:
# Label Confidence
0 Plate: olSjQhOedbaUM 528%
Analysis round trip 220 ms
Processing 214 ms
Inference 206 ms
Rolling back to 2.0.8
modified 21-May-23 10:14am.
|
|
|
|
|
Are the cuda 11.7 and below instructions above still accurate?
Im running 12.1 on a rtx a5000 and it’s working fine…
Shouldn't that part be updated?
|
|
|
|
|
Do you still have 11.7 installed?
cheers
Chris Maunder
|
|
|
|
|
No, I'm currently running
vgpu 15.2 with Linux vGPU Manager 525.105.17 March 2023
CUDA 12.1
Cudnn 8.9.1 for cuda 12.x
|
|
|
|
|
Which modules are you running? We've had reports of some of the PyTorch modules failing if 11.7 was removed.
cheers
Chris Maunder
|
|
|
|
|
yah everything is the same
|
|
|
|
|