PaulDaisy wrote: ↑Fri Feb 03, 2023 12:21 am
Same exact thing happened to me with the 5.6.9.x. I downgraded to the "last stable" 5.6.8.4 and everything went back to working as it used to.
Thank you for this. After reading that, I rolled back to 5.6.8.4, and yes, everything seems to have started working again.
I notice on the AI tab, 5.6.8.4 has a checkbox labeled "CUDA", on 5.6.9.x it's labeled "GPU". Maybe the latest version is expanding to other services similar to CUDA.
The lower stats bar now shows the GPU being used and the CPU is way back down to 25~30%, but keep reading. All is not well.
Also, the custom path field now correctly shows the path to the custom model directory, so the next step is to move the unneeded models out of the directory, reboot, and see if everything still works as expected.
EDIT: I may have spoken too soon...
After the system sits running for about 5 minutes, CPAI appears to stop using the GPU.
The GPU indicator disappears from the status bar and never comes back. This after a clean reboot and not touching the system or interacting with it in any way. (??)
If I open the BI Status log, I see errors like "AI not responding" and nothing is being detected.
The log is indicating something in a particular file, shown in bold in the code below (the full window is below that).
07:36:37:Started Object Detection (YOLOv5 6.2) module
07:36:37:detect_adapter.py: Traceback (most recent call last):
07:36:37:detect_adapter.py: File "C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\detect_adapter.py", line 16, in
07:36:37:detect_adapter.py: from analysis.codeprojectai import CodeProjectAIRunner
07:36:37:detect_adapter.py: File "../../SDK/Python\analysis\codeprojectai.py", line 36, in
07:36:37:detect_adapter.py: from analysis.requestdata import AIRequestData
07:36:37:detect_adapter.py: File "../../SDK/Python\analysis\requestdata.py", line 8, in
07:36:37:detect_adapter.py: from PIL import Image
07:36:37:detect_adapter.py: ImportError: cannot import name 'Image' from 'PIL' (unknown location)
07:36:37:Module ObjectDetectionYolo has shutdown
07:36:37:detect_adapter.py: has exited
07:36:39:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
07:36:39:
07:36:39:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
07:36:39:Active: True
07:36:39:GPU: Support enabled
07:36:39:Parallelism: 0
07:36:39:Platforms: all
07:36:39:FilePath: detect_adapter.py
07:36:39:ModulePath: ObjectDetectionYolo
07:36:39:Install: PreInstalled
07:36:39:Runtime: python37
07:36:39:Queue: objectdetection_queue
07:36:39:Start pause: 1 sec

Code: Select all
07:36:35:Operating System: Windows (Microsoft Windows 10.0.19044)
07:36:35:CPUs: 1 CPU x 4 cores. 8 logical processors (x64)
07:36:35:GPU: NVIDIA GeForce GTX 1080 Ti (11 GiB) (NVidia)
07:36:35: Driver: 516.01 CUDA: 11.7 Compute: 6.1
07:36:35:System RAM: 16 GiB
07:36:35:Target: Windows
07:36:35:BuildConfig: Release
07:36:35:Execution Env: Native
07:36:35:Runtime Env: Production
07:36:35:.NET framework: .NET 7.0.2
07:36:35:App DataDir: C:\ProgramData\CodeProject\AI
07:36:36:System GPU info:
07:36:36: GPU 3D Usage 0%
07:36:36: GPU RAM Usage 192 MiB
07:36:36:Video adapter info:
07:36:36: Intel(R) HD Graphics 630:
07:36:36: Adapter RAM 1,024 MiB
07:36:36: Driver Version 31.0.101.2111
07:36:36: Video Processor Intel(R) HD Graphics Family
07:36:36: NVIDIA GeForce GTX 1080 Ti:
07:36:36: Adapter RAM 4 GiB
07:36:36: Driver Version 31.0.15.1601
07:36:36: Video Processor NVIDIA GeForce GTX 1080 Ti
07:36:36:------------------------------------------------------------------
07:36:36:ROOT_PATH = C:\Program Files\CodeProject\AI
07:36:36:MODULES_PATH = C:\Program Files\CodeProject\AI\AnalysisLayer
07:36:36:DOWNLOADED_MODULES_PATH = C:\Program Files\CodeProject\AI\modules
07:36:36:PYTHON_BASEPATH = C:\Program Files\CodeProject\AI\AnalysisLayer\bin\windows\%PYTHON_RUNTIME%\venv
07:36:36:PYTHON_PATH = C:\Program Files\CodeProject\AI\AnalysisLayer\bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
07:36:36:Temp Dir: C:\WINDOWS\TEMP\
07:36:36:Data Dir: C:\ProgramData\CodeProject\AI
07:36:36:------------------------------------------------------------------
07:36:36:ModuleRunner Start
07:36:36:Starting Background AI Modules
07:36:37:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
07:36:37:
07:36:37:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
07:36:37:Active: True
07:36:37:GPU: Support enabled
07:36:37:Parallelism: 0
07:36:37:Platforms: all
07:36:37:FilePath: detect_adapter.py
07:36:37:ModulePath: ObjectDetectionYolo
07:36:37:Install: PreInstalled
07:36:37:Runtime: python37
07:36:37:Queue: objectdetection_queue
07:36:37:Start pause: 1 sec
07:36:37:Valid: True
07:36:37:Environment Variables
07:36:37:APPDIR = %CURRENT_MODULE_PATH%
07:36:37:CPAI_CUDA_DEVICE_NUM = 0
07:36:37:CPAI_HALF_PRECISION = Enable
07:36:37:CPAI_MODULE_SUPPORT_GPU = True
07:36:37:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
07:36:37:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
07:36:37:MODEL_SIZE = Medium
07:36:37:USE_CUDA = True
07:36:37:YOLOv5_AUTOINSTALL = false
07:36:37:YOLOv5_VERBOSE = false
07:36:37:
[b]07:36:37:Started Object Detection (YOLOv5 6.2) module
07:36:37:detect_adapter.py: Traceback (most recent call last):
07:36:37:detect_adapter.py: File "C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\detect_adapter.py", line 16, in
07:36:37:detect_adapter.py: from analysis.codeprojectai import CodeProjectAIRunner
07:36:37:detect_adapter.py: File "../../SDK/Python\analysis\codeprojectai.py", line 36, in
07:36:37:detect_adapter.py: from analysis.requestdata import AIRequestData
07:36:37:detect_adapter.py: File "../../SDK/Python\analysis\requestdata.py", line 8, in
07:36:37:detect_adapter.py: from PIL import Image
07:36:37:detect_adapter.py: ImportError: cannot import name 'Image' from 'PIL' (unknown location)
07:36:37:Module ObjectDetectionYolo has shutdown
07:36:37:detect_adapter.py: has exited
07:36:39:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
07:36:39:
07:36:39:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)[/b]
07:36:39:Active: True
07:36:39:GPU: Support enabled
07:36:39:Parallelism: 0
07:36:39:Platforms: all
07:36:39:FilePath: detect_adapter.py
07:36:39:ModulePath: ObjectDetectionYolo
07:36:39:Install: PreInstalled
07:36:39:Runtime: python37
07:36:39:Queue: objectdetection_queue
07:36:39:Start pause: 1 sec
07:36:39:Valid: True
07:36:39:Environment Variables
07:36:39:APPDIR = %CURRENT_MODULE_PATH%
07:36:39:CPAI_CUDA_DEVICE_NUM = 0
07:36:39:CPAI_HALF_PRECISION = Enable
07:36:39:CPAI_MODULE_SUPPORT_GPU = True
07:36:39:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
07:36:39:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
07:36:39:MODEL_SIZE = Medium
07:36:39:USE_CUDA = True
07:36:39:YOLOv5_AUTOINSTALL = false
07:36:39:YOLOv5_VERBOSE = false
07:36:39:
07:36:39:Started Object Detection (YOLOv5 6.2) module
07:36:39:detect_adapter.py: Traceback (most recent call last):
07:36:39:detect_adapter.py: File "C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\detect_adapter.py", line 16, in
07:36:39:detect_adapter.py: from analysis.codeprojectai import CodeProjectAIRunner
07:36:39:detect_adapter.py: File "../../SDK/Python\analysis\codeprojectai.py", line 36, in
07:36:39:detect_adapter.py: from analysis.requestdata import AIRequestData
07:36:39:detect_adapter.py: File "../../SDK/Python\analysis\requestdata.py", line 8, in
07:36:39:detect_adapter.py: from PIL import Image
07:36:39:detect_adapter.py: ImportError: cannot import name 'Image' from 'PIL' (unknown location)
07:36:39:Module ObjectDetectionYolo has shutdown
07:36:39:detect_adapter.py: has exited
07:36:40:Installing Initial Modules.
07:36:40:Client request 'list-custom' in the queue (...aeaf2e)
07:36:41:Latest version available is 2.0.7-Beta
07:36:41:Current Version is 2.0.7-Beta
07:36:41:Server: This is the latest version
07:36:57:Latest version available is 2.0.7-Beta
18:10:19:Latest version available is 2.0.7-Beta
18:11:32:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
18:11:32:
18:11:32:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
18:11:32:Active: True
18:11:32:GPU: Support enabled
18:11:32:Parallelism: 0
18:11:32:Platforms: all
18:11:32:FilePath: detect_adapter.py
18:11:32:ModulePath: ObjectDetectionYolo
18:11:32:Install: PreInstalled
18:11:32:Runtime: python37
18:11:32:Queue: objectdetection_queue
18:11:32:Start pause: 1 sec
18:11:32:Valid: True
18:11:32:Environment Variables
18:11:32:APPDIR = %CURRENT_MODULE_PATH%
18:11:32:CPAI_CUDA_DEVICE_NUM = 0
18:11:32:CPAI_HALF_PRECISION = Enable
18:11:32:CPAI_MODULE_SUPPORT_GPU = True
18:11:32:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
18:11:32:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
18:11:32:MODEL_SIZE = Medium
18:11:32:USE_CUDA = True
18:11:32:YOLOv5_AUTOINSTALL = false
18:11:32:YOLOv5_VERBOSE = false
18:11:32:
[b]18:11:32:Started Object Detection (YOLOv5 6.2) module
18:11:33:detect_adapter.py: Traceback (most recent call last):
18:11:33:detect_adapter.py: File "C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\detect_adapter.py", line 16, in
18:11:33:detect_adapter.py: from analysis.codeprojectai import CodeProjectAIRunner
18:11:33:detect_adapter.py: File "../../SDK/Python\analysis\codeprojectai.py", line 36, in
18:11:33:detect_adapter.py: from analysis.requestdata import AIRequestData
18:11:33:detect_adapter.py: File "../../SDK/Python\analysis\requestdata.py", line 8, in
18:11:33:detect_adapter.py: from PIL import Image
18:11:33:detect_adapter.py: ImportError: cannot import name 'Image' from 'PIL' (unknown location)
18:11:33:Module ObjectDetectionYolo has shutdown
18:11:33:detect_adapter.py: has exited
18:14:00:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
18:14:00:
18:14:00:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
18:14:00:Active: True[/b]
18:14:00:GPU: Support enabled
18:14:00:Parallelism: 0
18:14:00:Platforms: all
18:14:00:FilePath: detect_adapter.py
18:14:00:ModulePath: ObjectDetectionYolo
18:14:00:Install: PreInstalled
18:14:00:Runtime: python37
18:14:00:Queue: objectdetection_queue
18:14:00:Start pause: 1 sec
18:14:00:Valid: True
18:14:00:Environment Variables
18:14:00:APPDIR = %CURRENT_MODULE_PATH%
18:14:00:CPAI_CUDA_DEVICE_NUM = 0
18:14:00:CPAI_HALF_PRECISION = Enable
18:14:00:CPAI_MODULE_SUPPORT_GPU = True
18:14:00:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
18:14:00:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
18:14:00:MODEL_SIZE = Medium
18:14:00:USE_CUDA = True
18:14:00:YOLOv5_AUTOINSTALL = false
18:14:00:YOLOv5_VERBOSE = false
18:14:00:
18:14:00:Started Object Detection (YOLOv5 6.2) module
18:14:00:detect_adapter.py: Traceback (most recent call last):
18:14:00:detect_adapter.py: File "C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\detect_adapter.py", line 16, in
18:14:00:detect_adapter.py: from analysis.codeprojectai import CodeProjectAIRunner
18:14:00:detect_adapter.py: File "../../SDK/Python\analysis\codeprojectai.py", line 36, in
18:14:00:detect_adapter.py: from analysis.requestdata import AIRequestData
18:14:00:detect_adapter.py: File "../../SDK/Python\analysis\requestdata.py", line 8, in
18:14:00:detect_adapter.py: from PIL import Image
18:14:00:detect_adapter.py: ImportError: cannot import name 'Image' from 'PIL' (unknown location)
18:14:00:Module ObjectDetectionYolo has shutdown
18:14:00:detect_adapter.py: has exited
18:14:35:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
18:14:35:
18:14:35:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
18:14:35:Active: True
18:14:35:GPU: Support enabled
18:14:35:Parallelism: 0
18:14:35:Platforms: all
18:14:35:FilePath: detect_adapter.py
18:14:35:ModulePath: ObjectDetectionYolo
18:14:35:Install: PreInstalled
18:14:35:Runtime: python37
18:14:35:Queue: objectdetection_queue
18:14:35:Start pause: 1 sec
18:14:35:Valid: True
18:14:35:Environment Variables
18:14:35:APPDIR = %CURRENT_MODULE_PATH%
18:14:35:CPAI_CUDA_DEVICE_NUM = 0
18:14:35:CPAI_HALF_PRECISION = Enable
18:14:35:CPAI_MODULE_SUPPORT_GPU = True
18:14:35:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
18:14:35:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
18:14:35:MODEL_SIZE = Medium
18:14:35:USE_CUDA = True
18:14:35:YOLOv5_AUTOINSTALL = false
18:14:35:YOLOv5_VERBOSE = false
18:14:35:
18:14:35:Started Object Detection (YOLOv5 6.2) module
18:14:35:detect_adapter.py: Traceback (most recent call last):
18:14:35:detect_adapter.py: File "C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\detect_adapter.py", line 16, in
18:14:35:detect_adapter.py: from analysis.codeprojectai import CodeProjectAIRunner
18:14:35:detect_adapter.py: File "../../SDK/Python\analysis\codeprojectai.py", line 36, in
18:14:35:detect_adapter.py: from analysis.requestdata import AIRequestData
18:14:35:detect_adapter.py: File "../../SDK/Python\analysis\requestdata.py", line 8, in
18:14:35:detect_adapter.py: from PIL import Image
18:14:35:detect_adapter.py: ImportError: cannot import name 'Image' from 'PIL' (unknown location)
18:14:35:Module ObjectDetectionYolo has shutdown
18:14:35:detect_adapter.py: has exited
CPAI System Info tab
Code: Select all
Operating System: Windows (Microsoft Windows 10.0.19044)
CPUs: 1 CPU x 4 cores. 8 logical processors (x64)
GPU: NVIDIA GeForce GTX 1080 Ti (11 GiB) (NVidia)
Driver: 516.01 CUDA: 11.7 Compute: 6.1
System RAM: 16 GiB
Target: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.2
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 201 MiB
Video adapter info:
Intel(R) HD Graphics 630:
Adapter RAM 1,024 MiB
Driver Version 31.0.101.2111
Video Processor Intel(R) HD Graphics Family
NVIDIA GeForce GTX 1080 Ti:
Adapter RAM 4 GiB
Driver Version 31.0.15.1601
Video Processor NVIDIA GeForce GTX 1080 Ti
Global Environment variables:
CPAI_APPROOTPATH = C:\Program Files\CodeProject\AI
CPAI_PORT = 32168