I've noticed something since upgrading to CPAI 2.3.4 and LPR 2.7.2
LPR is using CPU and I see nowhere where I can change to GPU(CUDA). I am running CUDA 11.8 and YOLOv5 6.2 is using GPU(CUDA) without any issues
I tried uninstalling and reinstalling and same problem
There is an error in the log about a missing cfg file:
13:12:17:Installing module 'ALPR'
13:12:17:ALPR: Installing CodeProject.AI Analysis Module
13:12:17:ALPR: ========================================================================
13:12:17:ALPR: CodeProject.AI Installer
13:12:17:ALPR: ========================================================================
13:12:17:ALPR: General CodeProject.AI setup
13:12:17:ALPR: Creating Directories...Done
13:12:17:ALPR: GPU support
13:12:17:ALPR: CUDA Present...Yes (version 11.8)
13:12:17:ALPR: ROCm Present...False
13:12:18:ALPR: Installing module ALPR 2.7.2
13:12:18:ALPR: Installing Python 3.7
13:12:18:ALPR: Python 3.7 is already installed
13:12:18:ALPR: Creating Virtual Environment (Local)...Virtual Environment already present
13:12:18:ALPR: No pyvenv.cfg file
13:12:18:ALPR: Confirming we have Python 3.7 in our virtual environment...
13:12:18:ALPR: -------------------------------------------------------------
13:12:18:ALPR: Error: Python not installed
13:12:18:ALPR: Downloading ALPR models...already exists...Expanding...Done.
13:12:18:ALPR: Copying contents of paddleocr-models.zip to paddleocr...done
13:12:18:ALPR: Cleaning up...done
13:12:18:ALPR: Installing Python packages for ALPR
13:12:18:ALPR: [0;Installing GPU-enabled libraries: If available
13:12:18:ALPR: Ensuring Python package manager (pip) is installed...Done
13:12:18:ALPR: Ensuring Python package manager (pip) is up to date...Done
13:12:18:ALPR: Python packages specified by requirements.windows.cuda11_8.txt
13:12:19:ALPR: - Installing PaddlePaddle, Parallel Distributed Deep Learning...(
checked) Done
13:12:19:ALPR: - Installing PaddleOCR, the OCR toolkit based on PaddlePaddle...(
checked) Done
13:12:19:ALPR: - Installing imutils, the image utilities library...(
checked) Done
13:12:19:ALPR: - Installing Pillow, a Python Image Library...(
checked) Done
13:12:19:ALPR: - Installing OpenCV, the Computer Vision library for Python...(
checked) Done
13:12:19:ALPR: - Installing NumPy, a package for scientific computing...(
checked) Done
13:12:19:ALPR: Installing Python packages for the CodeProject.AI Server SDK
13:12:19:ALPR: Ensuring Python package manager (pip) is installed...Done
13:12:19:ALPR: Ensuring Python package manager (pip) is up to date...Done
13:12:19:ALPR: Python packages specified by requirements.txt
13:12:19:ALPR: - Installing Pillow, a Python Image Library...(
checked) Done
13:12:19:ALPR: - Installing Charset normalizer...(
checked) Done
13:12:19:ALPR: - Installing aiohttp, the Async IO HTTP library...(
checked) Done
13:12:19:ALPR: - Installing aiofiles, the Async IO Files library...(
checked) Done
13:12:20:ALPR: - Installing py-cpuinfo to allow us to query CPU info...(
checked) Done
13:12:20:ALPR: - Installing Requests, the HTTP library...(
checked) Done
13:12:20:ALPR: Setup complete
13:12:20:Module ALPR installed successfully.
13:12:20:
13:12:20:Module 'License Plate Reader' 2.7.2 (ID: ALPR)
13:12:20:Module Path: C:\Program Files\CodeProject\AI\modules\ALPR
13:12:20:AutoStart: True
13:12:20:Queue: alpr_queue
13:12:20
latforms: windows,linux,linux-arm64,macos,macos-arm64,!orangepi,!jetson
13:12:20:GPU Libraries: installed if available
13:12:20:GPU Enabled: enabled
13:12:20
arallelism: 0
13:12:20:Accelerator:
13:12:20:Half Precis.: enable
13:12:20:Runtime: python3.7
13:12:20:Runtime Loc: Local
13:12:20:FilePath: ALPR_adapter.py
13:12:20
re installed: False
13:12:20:Start pause: 1 sec
13:12:20:LogVerbosity:
13:12:20:Valid: True
13:12:20:Environment Variables
13:12:20:AUTO_PLATE_ROTATE = True
13:12:20:MIN_COMPUTE_CAPABILITY = 7
13:12:20:MIN_CUDNN_VERSION = 7
13:12:20:OCR_OPTIMAL_CHARACTER_HEIGHT = 60
13:12:20:OCR_OPTIMAL_CHARACTER_WIDTH = 36
13:12:20:OCR_OPTIMIZATION = True
13:12:20
LATE_CONFIDENCE = 0.7
13:12:20
LATE_RESCALE_FACTOR = 2
13:12:20
LATE_ROTATE_DEG = 0
13:12:20:
13:12:20:Started License Plate Reader module
13:12:20:Installer exited with code 0
13:12:20:Call to run Install on module ALPR has completed.
13:12:20:ALPR_adapter.py: No pyvenv.cfg file
13:12:20:Module ALPR has shutdown
13:12:20:ALPR_adapter.py: has exited
13:12:21:Module ALPR started successfully.