|
I run 25 4-8 megapixel cams on a RTX A5000 VM with 8GB. The card is bored out of its RAm at 1%-5% utilization.
|
|
|
|
|
I have settled on an RTX 3050 6GB. Basically I have come to the conclusion that a modern GPU is better then an old GPU and any GPU is better then no GPU. Go figure. It's kind of self evident.
Thanks for all the info.
|
|
|
|
|
Have you got the 3050 6gb installed yet?
Let me know what inference speeds you get with which model and streams/resolutions if you can please?
Out of curiosity. I have an old gtx970 which has 1664 cuda cores. Does surprisingly well though I must admit. Limited to ipcam-combined with yolo3.2 though.
|
|
|
|
|
I have not had any success in creating a 2nd instance on my unraid from the app store yet.
Even after giving it a unique name, ports 32170 udp/tcp, paths etc.
Still seems to overide to 32168 and not create any files in data and modules folders.
Even though it is up and running as a second container under docker it seems to be just a duplicate of the 1st instance.
webui does not open
Where am I going wrong?
Thanks
|
|
|
|
|
I see on a second thread you created a second instance on your Windows machine. Is this working for you now? Mesh is intended for multiple servers, not containers on the same server.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Hi, I use CP.AI with Blue Iris and after updating to the latest version today, the object detection modules will not load in the dashboard. The error message from the server logs on the dashboard are below. I get the same error if I try YOLO .NET, YOLO 3.1 and YOLOv8.
19:06:59:Error trying to start Object Detection (YOLOv5 6.2) (detect_adapter.py)
19:06:59:Error is: 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\ObjectDetectionYOLOv5-6.2'. The system cannot find the file specified.
19:06:59: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module, String installSummary)
19:06:59:Please check the CodeProject.AI installation completed successfully
Here is the System Info:
Server version: 2.6.2
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Intel)
1 CPU x 4 cores. 8 logical processors (x64)
GPU (Primary): NVIDIA T600 (4 GiB) (NVIDIA)
Driver: 552.22, CUDA: 12.4 (up to: 12.4), Compute: 7.5, cuDNN:
System RAM: 16 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.18
.NET SDK: Not found
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
NVIDIA T600:
Driver Version 31.0.15.5222
Video Processor NVIDIA T600
Microsoft Remote Display Adapter:
Driver Version 10.0.19041.3636
Video Processor
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 576 MiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
modified 24-Apr-24 13:14pm.
|
|
|
|
|
Thanks very much for the report. Out of curiosity, what version were you upgrading from?
What happens if you un-install and re-install and of the modules that get these errors?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
I was using 2.0.8 previously. I get the same error when I uninstall and reinstall any of the modules. I have also tried totally uninstalling and reinstalling the 2.6.2.
|
|
|
|
|
Please try uninstalling 2.0.8 (if you haven't already), then deleting C:\ProgramData\CodeProject and C:\Program Files\CodeProject, then installing 2.6.4.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
I have uninstalled 2.0.8 already. I'll delete those directories. Do you mean install 2.6.2 or is there a newer version now?
|
|
|
|
|
Apologies, yes. Windows is currently on 2.6.2.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Thanks, I tried this and I get the same error.
The message as shown above says: An error occurred trying to start process C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\python
That folder, python37, doesnt contain any files. Is this the issue?
|
|
|
|
|
Yes, it seems CodeProject.AI Server didn't install properly. Let's try this.
- Uninstall the Object Detection YOLOv5 6.2
- Stop the server
- Delete the C:\Program Files\CodeProject\AI\runtimes\bin\windows folder
- Open a command line and navigate to C:/Program Files/CodeProject/AI/modules/ObjectDetectionYOLOv5-6.2 then type
..\..\setup.bat
- Open a command line and navigate to C:/Program Files/CodeProject/AI/modules/FaceProcessing then type
..\..\setup.bat
- Restart the server
- Reinstall modules
Also, there's a switch on the Install modules tab that says, "Do not use download cache." Please make sure that is toggled on. And there's an install verbosity dropdown, please make sure it is set to info.
Thanks,
Sean Ewington
CodeProject
modified 24-Apr-24 15:39pm.
|
|
|
|
|
THanks again. When I run the setup.bat this is what I get:
|
|
|
|
|
Thank you. If you remembered to change the verbosity to loud first, can you please share your log for this, from C:/Program Files/CodeProject/AI/logs?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Yes, here you go. thanks
2024-04-28 13:50:22: Settings file: C:\Program Files\CodeProject\AI\Server\installmodules.json exists: False
2024-04-28 13:50:22: ** System: Windows
2024-04-28 13:50:22: ** Operating System: Windows (Microsoft Windows 10.0.19045)
2024-04-28 13:50:22: ** CPUs: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Intel)
2024-04-28 13:50:22: ** 1 CPU x 4 cores. 8 logical processors (x64)
2024-04-28 13:50:22: ** GPU (Primary): NVIDIA T600 (4 GiB) (NVIDIA)
2024-04-28 13:50:22: ** Driver: 552.22, CUDA: 12.4 (up to: 12.4), Compute: 7.5, cuDNN:
2024-04-28 13:50:22: ** System RAM: 16 GiB
2024-04-28 13:50:22: ** Platform: Windows
2024-04-28 13:50:22: ** BuildConfig: Release
2024-04-28 13:50:22: ** Execution Env: Native
2024-04-28 13:50:22: ** Runtime Env: Production
2024-04-28 13:50:22: ** Runtimes installed:
2024-04-28 13:50:22: ** .NET runtime: 7.0.18
2024-04-28 13:50:22: ** .NET SDK: Not found
2024-04-28 13:50:22: ** Default Python: Not found
2024-04-28 13:50:22: ** Go: Not found
2024-04-28 13:50:22: ** NodeJS: Not found
2024-04-28 13:50:22: ** Rust: Not found
2024-04-28 13:50:22: ** App DataDir: C:\ProgramData\CodeProject\AI
2024-04-28 13:50:22: Video adapter info:
2024-04-28 13:50:22: NVIDIA T600:
2024-04-28 13:50:22: Driver Version 31.0.15.5222
2024-04-28 13:50:22: Video Processor NVIDIA T600
2024-04-28 13:50:22: Microsoft Remote Display Adapter:
2024-04-28 13:50:22: Driver Version 10.0.19041.3636
2024-04-28 13:50:22: Video Processor
2024-04-28 13:50:22: *** STARTING CODEPROJECT.AI SERVER
2024-04-28 13:50:22: RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
2024-04-28 13:50:22: PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
2024-04-28 13:50:22: DEMO_MODULES_PATH = C:\Program Files\CodeProject\AI\demos\modules
2024-04-28 13:50:22: MODULES_PATH = C:\Program Files\CodeProject\AI\modules
2024-04-28 13:50:22: PYTHON_PATH = \bin\windows\%PYTHON_NAME%\venv\Scripts\python
2024-04-28 13:50:22: Data Dir = C:\ProgramData\CodeProject\AI
2024-04-28 13:50:23: ** Server version: 2.6.2
2024-04-28 13:50:23: ModuleRunner Start
2024-04-28 13:50:23: Starting Background AI Modules
2024-04-28 13:50:28: Current Version is 2.6.2
2024-04-28 13:50:28: Server: This is the latest version
2024-04-28 13:50:38: Preparing to install module 'ObjectDetectionYOLOv5-6.2'
2024-04-28 13:50:38: Downloading module 'ObjectDetectionYOLOv5-6.2'
2024-04-28 13:50:38: Installing module 'ObjectDetectionYOLOv5-6.2'
2024-04-28 13:50:38: Installer script at 'C:\Program Files\CodeProject\AI\setup.bat'
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: 'chcp' is not recognized as an internal or external command,
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: operable program or batch file.
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;33m[49m Installing CodeProject.AI Analysis Module [0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;32m[49m======================================================================[0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;32m[49m CodeProject.AI Installer [0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;32m[49m======================================================================[0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: 'wmic' is not recognized as an internal or external command,
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: operable program or batch file.
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;37m[49m-1.-1Gb of -1Gb available on [0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;37m[49mos, arch = windows x86_64[0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;37m[49msystemName, platform = Windows, windows[0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;37m[49medgeDevice = [0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;37m[49msetupMode = SetupModule[0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;37m[49mexecutionEnvironment = Production[0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;37m[49mrootDirPath = C:\Program Files\CodeProject\AI[0m
2024-04-28 13:50:38: ObjectDetectionYOLOv5-6.2: [0;37m[49mappRootDirPath = C:\Program Files\CodeProject\AI\[0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;37m[49msetupScriptDirPath = C:\Program Files\CodeProject\AI\[0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;37m[49msdkScriptsDirPath = C:\Program Files\CodeProject\AI\SDK\Scripts[0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;37m[49mruntimesDirPath = C:\Program Files\CodeProject\AI\runtimes[0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;37m[49mmodulesDirPath = C:\Program Files\CodeProject\AI\modules[0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;37m[49mdownloadDirPath = C:\Program Files\CodeProject\AI\downloads[0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;97m[104mGeneral CodeProject.AI setup [0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;39m[49mCreating Directories...[0m[0;92m[49mdone[0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;97m[42mGPU support [0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;39m[49mCUDA Present...[0m[0;33m[49mNo[0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;39m[49mROCm Present...[0m[0;33m[49mNo[0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;37m[49mReading ObjectDetectionYOLOv5-6.2 settings[0m[0;95m[49mUsed modulesettings.json to get value Object Detection (YOLOv5 6.2)[0m
2024-04-28 13:50:39: ObjectDetectionYOLOv5-6.2: [0;37m[49m.[0m[0;95m[49mUsed modulesettings.json to get value 1.9.1[0m
2024-04-28 13:50:40: ObjectDetectionYOLOv5-6.2: [0;37m[49m.[0m[0;95m[49mUsed modulesettings.windows.json to get value python3.7[0m
2024-04-28 13:50:40: ObjectDetectionYOLOv5-6.2: [0;37m[49m.[0m[0;95m[49mUsed modulesettings.json to get value Shared[0m
2024-04-28 13:50:40: ObjectDetectionYOLOv5-6.2: [0;37m[49m.[0m[0;95m[49mUsed modulesettings.json to get value detect_adapter.py[0m
2024-04-28 13:50:40: ObjectDetectionYOLOv5-6.2: [0;37m[49m.[0m[0;95m[49mUsed modulesettings.json to get value true[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;37m[49m.[0m[0;95m[49mUsed modulesettings.json to get value ["all","raspberrypi","jetson"][0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;37m[49m.[0m[0;32m[49mdone[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;97m[104mInstalling module Object Detection (YOLOv5 6.2) 1.9.1 [0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;97m[104mVariable Dump [0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mmoduleName = Object Detection (YOLOv5 6.2)[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mmoduleVersion = 1.9.1[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mruntime = python3.7[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mruntimeLocation = Shared[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49minstallGPU = true[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mpythonVersion = 3.7[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mvirtualEnvDirPath = C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mvenvPythonCmdPath = C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\python.exe[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mpackagesDirPath = C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Lib\site-packages[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mmoduleStartFilePath = detect_adapter.py[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;39m[49mInstalling Python 3.7[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mInstalling python37 in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;95m[49mDownloading python37.zip to C:\Program Files\CodeProject\AI\downloads\windows\\python37[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;30m[49mDownloading Python 3.7 interpreter...[0m[0;95m[49mChecking 'C:\Program Files\CodeProject\AI\downloads\windows\\python37.zip'[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: operable program or batch file.
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: operable program or batch file.
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: operable program or batch file.
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;33m[49mBITS transfer failed. Trying Powershell....[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: operable program or batch file.
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;91m[49mDownload failed. Sorry.[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: 'robocopy' is not recognized as an internal or external command,
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: operable program or batch file.
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;39m[49mCreating Virtual Environment (Shared)...[0m[0;39m[49mVirtual Environment doesn't exist. Creating at C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: '"C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\python.exe"' is not recognized as an internal or external command,
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: operable program or batch file.
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;32m[49mdone[0m
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: The system cannot find the path specified.
2024-04-28 13:50:41: ObjectDetectionYOLOv5-6.2: [0;39m[49mConfirming we have Python 3.7 in our virtual environment...[0m
2024-04-28 13:50:41: Module ObjectDetectionYOLOv5-6.2 installed successfully.
2024-04-28 13:50:41: Running module using: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\python
2024-04-28 13:50:41:
2024-04-28 13:50:41: Attempting to start ObjectDetectionYOLOv5-6.2 with C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\python "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py"
2024-04-28 13:50:41: Starting C:\Program Files...ws\python37\venv\Scripts\python "C:\Program Files...nYOLOv5-6.2\detect_adapter.py"
2024-04-28 13:50:41:
2024-04-28 13:50:41: ** Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
2024-04-28 13:50:41: ** Valid: True
2024-04-28 13:50:41: ** Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
2024-04-28 13:50:41: ** AutoStart: True
2024-04-28 13:50:41: ** Queue: objectdetection_queue
2024-04-28 13:50:41: ** Runtime: python3.7
2024-04-28 13:50:41: ** Runtime Loc: Shared
2024-04-28 13:50:41: ** FilePath: detect_adapter.py
2024-04-28 13:50:41: ** Start pause: 1 sec
2024-04-28 13:50:41: ** Parallelism: 0
2024-04-28 13:50:41: ** LogVerbosity:
2024-04-28 13:50:41: ** Platforms: all,!raspberrypi,!jetson
2024-04-28 13:50:41: ** GPU Libraries: installed if available
2024-04-28 13:50:41: ** GPU Enabled: enabled
2024-04-28 13:50:41: ** Accelerator:
2024-04-28 13:50:41: ** Half Precis.: enable
2024-04-28 13:50:41: ** Environment Variables
2024-04-28 13:50:41: ** APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
2024-04-28 13:50:41: ** CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
2024-04-28 13:50:41: ** MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
2024-04-28 13:50:41: ** MODEL_SIZE = Medium
2024-04-28 13:50:41: ** USE_CUDA = True
2024-04-28 13:50:41: ** YOLOv5_AUTOINSTALL = false
2024-04-28 13:50:41: ** YOLOv5_VERBOSE = false
2024-04-28 13:50:41:
2024-04-28 13:50:41 [System.ComponentModel.Win32Exception (2): 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\ObjectDetectionYOLOv5-6.2'. The system cannot find the file specified.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module, String installSummary)]: Error trying to start Object Detection (YOLOv5 6.2) (detect_adapter.py)
2024-04-28 13:50:41: Error is: 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\ObjectDetectionYOLOv5-6.2'. The system cannot find the file specified.
2024-04-28 13:50:41: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module, String installSummary)
2024-04-28 13:50:41: *** Please check the CodeProject.AI installation completed successfully
2024-04-28 13:50:41: Module ObjectDetectionYOLOv5-6.2 started successfully.
2024-04-28 13:50:41: Installer exited with code 255
|
|
|
|
|
|
I installed PowerShell and am still not able to start the modules after they are installed. See below.
Also see,
16:49:13:Error trying to start Object Detection (YOLOv5 6.2) (detect_adapter.py)
16:49:13:Error is: 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\ObjectDetectionYOLOv5-6.2'. The system cannot find the file specified.
16:49:13:Module ObjectDetectionYOLOv5-6.2 started successfully.
16:49:13:Installer exited with code 255
16:49:13: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module, String installSummary)
16:49:13:Please check the CodeProject.AI installation completed successfully
2024-04-29 16:49:10: Preparing to install module 'ObjectDetectionYOLOv5-6.2'
2024-04-29 16:49:10: Downloading module 'ObjectDetectionYOLOv5-6.2'
2024-04-29 16:49:10: Installing module 'ObjectDetectionYOLOv5-6.2'
2024-04-29 16:49:10: Installer script at 'C:\Program Files\CodeProject\AI\setup.bat'
2024-04-29 16:49:10: ObjectDetectionYOLOv5-6.2: 'chcp' is not recognized as an internal or external command,
2024-04-29 16:49:10: ObjectDetectionYOLOv5-6.2: operable program or batch file.
2024-04-29 16:49:10: ObjectDetectionYOLOv5-6.2: [0;33m[49m Installing CodeProject.AI Analysis Module [0m
2024-04-29 16:49:10: ObjectDetectionYOLOv5-6.2: [0;32m[49m======================================================================[0m
2024-04-29 16:49:11: ObjectDetectionYOLOv5-6.2: [0;32m[49m CodeProject.AI Installer [0m
2024-04-29 16:49:11: ObjectDetectionYOLOv5-6.2: [0;32m[49m======================================================================[0m
2024-04-29 16:49:11: ObjectDetectionYOLOv5-6.2: [0;37m[49m118.8Gb of 237Gb available on [0m
2024-04-29 16:49:11: ObjectDetectionYOLOv5-6.2: [0;97m[104mGeneral CodeProject.AI setup [0m
2024-04-29 16:49:11: ObjectDetectionYOLOv5-6.2: [0;39m[49mCreating Directories...[0m[0;92m[49mdone[0m
2024-04-29 16:49:11: ObjectDetectionYOLOv5-6.2: [0;97m[42mGPU support [0m
2024-04-29 16:49:11: ObjectDetectionYOLOv5-6.2: [0;39m[49mCUDA Present...[0m[0;33m[49mNo[0m
2024-04-29 16:49:11: ObjectDetectionYOLOv5-6.2: [0;39m[49mROCm Present...[0m[0;33m[49mNo[0m
2024-04-29 16:49:13: ObjectDetectionYOLOv5-6.2: [0;37m[49mReading ObjectDetectionYOLOv5-6.2 settings[0m[0;37m[49m.[0m[0;37m[49m.[0m[0;37m[49m.[0m[0;37m[49m.[0m[0;37m[49m.[0m[0;37m[49m.[0m[0;37m[49m.[0m[0;32m[49mdone[0m
2024-04-29 16:49:13: ObjectDetectionYOLOv5-6.2: [0;97m[104mInstalling module Object Detection (YOLOv5 6.2) 1.9.1 [0m
2024-04-29 16:49:13: ObjectDetectionYOLOv5-6.2: [0;39m[49mInstalling Python 3.7[0m
2024-04-29 16:49:13: ObjectDetectionYOLOv5-6.2: '"C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\python.exe"' is not recognized as an internal or external command,
2024-04-29 16:49:13: ObjectDetectionYOLOv5-6.2: operable program or batch file.
2024-04-29 16:49:13: ObjectDetectionYOLOv5-6.2: [0;39m[49mCreating Virtual Environment (Shared)...[0m[0;32m[49mdone[0m
2024-04-29 16:49:13: ObjectDetectionYOLOv5-6.2: The system cannot find the path specified.
2024-04-29 16:49:13: ObjectDetectionYOLOv5-6.2: [0;39m[49mConfirming we have Python 3.7 in our virtual environment...[0m
2024-04-29 16:49:13: Module ObjectDetectionYOLOv5-6.2 installed successfully.
2024-04-29 16:49:13: Running module using: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\python
2024-04-29 16:49:13:
2024-04-29 16:49:13: Attempting to start ObjectDetectionYOLOv5-6.2 with C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\python "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py"
2024-04-29 16:49:13: Starting C:\Program Files...ws\python37\venv\Scripts\python "C:\Program Files...nYOLOv5-6.2\detect_adapter.py"
2024-04-29 16:49:13:
2024-04-29 16:49:13: ** Module 'Object Detection (YOLOv5 6.2)' 1.9.1 (ID: ObjectDetectionYOLOv5-6.2)
2024-04-29 16:49:13: ** Valid: True
2024-04-29 16:49:13: ** Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
2024-04-29 16:49:13: ** AutoStart: True
2024-04-29 16:49:13: ** Queue: objectdetection_queue
2024-04-29 16:49:13: ** Runtime: python3.7
2024-04-29 16:49:13: ** Runtime Loc: Shared
2024-04-29 16:49:13: ** FilePath: detect_adapter.py
2024-04-29 16:49:13: ** Start pause: 1 sec
2024-04-29 16:49:13: ** Parallelism: 0
2024-04-29 16:49:13: ** LogVerbosity:
2024-04-29 16:49:13: ** Platforms: all,!raspberrypi,!jetson
2024-04-29 16:49:13: ** GPU Libraries: installed if available
2024-04-29 16:49:13: ** GPU Enabled: enabled
2024-04-29 16:49:13: ** Accelerator:
2024-04-29 16:49:13: ** Half Precis.: enable
2024-04-29 16:49:13: ** Environment Variables
2024-04-29 16:49:13: ** APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
2024-04-29 16:49:13: ** CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
2024-04-29 16:49:13: ** MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
2024-04-29 16:49:13: ** MODEL_SIZE = Medium
2024-04-29 16:49:13: ** USE_CUDA = True
2024-04-29 16:49:13: ** YOLOv5_AUTOINSTALL = false
2024-04-29 16:49:13: ** YOLOv5_VERBOSE = false
2024-04-29 16:49:13:
2024-04-29 16:49:13 [System.ComponentModel.Win32Exception (2): 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\ObjectDetectionYOLOv5-6.2'. The system cannot find the file specified.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module, String installSummary)]: Error trying to start Object Detection (YOLOv5 6.2) (detect_adapter.py)
2024-04-29 16:49:13: Error is: 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\ObjectDetectionYOLOv5-6.2'. The system cannot find the file specified.
2024-04-29 16:49:13: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module, String installSummary)
2024-04-29 16:49:13: *** Please check the CodeProject.AI installation completed successfully
2024-04-29 16:49:13: Module ObjectDetectionYOLOv5-6.2 started successfully.
2024-04-29 16:49:13: Installer exited with code 255
modified 30-Apr-24 16:33pm.
|
|
|
|
|
What's in "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\"?
In fact, do you have C:\Program Files\CodeProject\AI\runtimes? If so, do you have bin/windows under that?
I'm guessing there are permission errors here. Your system seems odd in that you're missing a number of "standard" commands. Is it Windows Home, Pro, Server? Have you tried running the installer with admin rights?
cheers
Chris Maunder
|
|
|
|
|
Thanks for your help. I do have C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\ but the python37 folder is empty. The computer is running Windows 10 Pro and I always run the installer with admin rights.
modified 30-Apr-24 22:37pm.
|
|
|
|
|
|
Hi, I am still trying to get this back up and running. It was great for over two years and now after the update I am offline with the AI.
It appears CPAI does not detect default python and the python37 folder is empty. I have uninstalled and reinstalled a few times. Any ideas on how to resolve this?
|
|
|
|
|
Have you tried completely removing the c:\Program Files\CodeProject\AI folder and installing again?
Failing that I might get you to install Python 3.7 from our download and see if that works
cheers
Chris Maunder
|
|
|
|
|
My set up was CPAI on unraid as a container.
Windows on a sff dedicated pc (lenovo thinkcenter i5-3470T)
GPU GTX970 on unraid passed through to the container.
I had a few coral devices, A+E, M2 wifi and usb. Used on frigate
Tried the tpu on cpai last year and it failed miserably.
I have now a set up utilising the tpu with cpai and blueiris very well.
1- windows 10 X-Lite on the i5-3470T. 8GB ram. sata SSD
2- CPAI container on unraid (this can be CPAI on the windows pc also) - my sff has an A+E slot so may experiment.
3- Coral tpu m2 wifi on the asrock B550m board that hosts unraid. Used for my NAS.
4- AITool on the windows pc
5- BI Alert Tab - Confirm Alert with AI UNticked.
6- BI Record Tab - save jpegs to local folder on windows pc
7- AIool server pointing to unraid CPAI
8- AItool folder from the BI path for record jpegs
CPAI_CORAL_MODEL_NAME = YOLOv8
Size: Medium
Inference speeds: 8.6ms
round trips: 15-22ms
All sent to telegram and MQTT for nodered.
Removed my old GPU to reduce power consumption.
So far so good.
AITool was necessary here to finely tune each object (% image size etc)
Hope this helps someone struggling and wants to use a tpu.
12 cameras - 6 recording 24/7
CPU utilizes just 10-12%!
modified 23-Apr-24 12:49pm.
|
|
|
|
|
For what it’s worth, that sounds like it’s running YOLOv8 medium a bit too fast, so there may be a different model loaded up than expected. But if the results are good, no one’s gonna complain! Also, you should be able to plug in all of the TPUs and it’ll use them all simultaneously!
|
|
|
|