|
That's good thinking but I don't think that will make any difference. The YOLO6.2 code uses PyTorch which will use either 'cpu' or 'cuda' as the device on your setup, meaning plain old CPU or your CUDA enabled GPU. It won't even spare a sideways glance at your iGPU.
I noticed your card has 4GB RAM. I'm just wondering if that is the issue here: running out of headroom.
Can you try using a smaller model size, or if you actually would like to use the iGPU, you could switch to the .NET Object detection module which uses DirectML
cheers
Chris Maunder
|
|
|
|
|
Dear Chris,
Thank you for your insights. I understand your point about PyTorch leveraging either 'cpu' or 'cuda' for computations, which essentially rules out the use of the IGPU for display output only. I initially opted for the Nvidia 1650 because I was aware that using the iGPU for AI tasks could significantly burden the CPU, which is not ideal.
Regarding the 4GB RAM on the Nvidia card, it's a common specification across similar models, and it appears to be the card of choice for many within the CodeProject AI community. Most setups I've researched seem to employ a medium model, which led me to believe that this configuration should be sufficient. The idea that CPAI might exhaust memory to the point of failure is somewhat surprising to me. Surely, there must be a threshold of efficiency and performance that allows for effective operation without constant failures due to memory limitations?
For the time being, I have disabled onboard GPU support in the BIOS and am exclusively using the Nvidia 1650. I plan to monitor how this configuration performs over the next few days. This should hopefully provide some clarity on whether the 4GB RAM is indeed the bottleneck or if there might be other underlying issues at play.
I am keen to hear your thoughts on whether CPAI inherently demands more memory than what the Nvidia 1650 can provide, or if there are adjustments and optimizations that could mitigate these memory consumption issues.
Best regards,
|
|
|
|
|
I have a NVIDIA 1030 and it's pretty basic but still does OK. The trick is definitely to balance accuracy and model size, so I'd definitely recommend trying a smaller model size (the dashboard allows you to do this via the gear icons on each module). Also try to minimise the number of modules you have that are using the GPU.
cheers
Chris Maunder
|
|
|
|
|
Upon waking, I found the system had failed again, prompting me to now switch to a smaller model as you have suggested.
My current setup includes only the Object Detection (YOLOv5 .NET), Object Detection (YOLOv5 3.1), and Face Processing modules, with the .NET and Face modules disabled. Is disabling these sufficient, or should they be uninstalled?
Another critical question is whether the number of cameras using CPAI affects performance. I'm using three cameras with CPAI, considering whether to limit the system to just the most crucial camera if necessary, though ideally, there shouldn't be a restriction on the number of cameras I would have presumed but I thought I'd ask.
Thanks again
|
|
|
|
|
I'm reaching out again to share an update and seek further assistance with the persistent issues I've been experiencing with the CPAI setup.
Following your suggestion, I've adjusted my setup to utilise a smaller model size (small not tiny), hoping this would alleviate the CUDA errors and improve system stability. Unfortunately, the issue persists, with CPAI crashing recurrently within a 10-12 hour timeframe. This pattern has become evident through manual logging, as CPAI does not retain log files adequately. Since November 2023, I've been actively seeking solutions on the Blue Iris forum to reduce false flags, which led me to integrate CPAI into my system. However, the stability issues have become a significant concern.
I've found it necessary to circumvent this problem is to restart the CPAI service at least twice daily to maintain operation outside the 10-12 hour crash window, a workaround that is far from ideal.
Conversations with a moderator on the Blue Iris Forum revealed that their system, running a medium-sized model, has remained stable since 31 January, who runs the same GPU 1650 4GB Ram, utilising the same drivers etc. starkly contrasting with my experience where the system fails to last more than 10 hours.
Given these circumstances, I'm at a loss for how to proceed. The recurrent failures despite model size adjustments, and the apparent anomaly in system behaviour compared to others in the community, suggest there may be an underlying issue not yet identified.
In our previous discussions, you mentioned the possibility of switching to the .NET Object detection module which uses DirectML as an alternative. However, won't this switch mess up inference times ?
Could you please advise if there's anything more I can do to diagnose and resolve these stability issues? Is there a possibility that the driver versions I'm using could be contributing to the problem, or is there any additional information I can provide that might offer further insights? The lines of code provided in the error messages, particularly those related to CUDA errors and illegal memory access, have not offered a clear path to resolution.
This situation is particularly frustrating, given the time and effort invested in finding a viable solution. The necessity of frequent service restarts is untenable, and I'm eager to find a more permanent fix to ensure reliable system operation.
Any assistance or insights you can offer would be greatly appreciated. Thank you for your time!
Kind regards
ZK
|
|
|
|
|
Just an update . Version 2.5.6 installed and no more errors with CUDA.. Very odd but great nonetheless!
|
|
|
|
|
Our free, local install Artificial Intelligence server. Any platform, any language.
How can I change English to another language in UI interface and in recognition? Now it can recognize only english words.
|
|
|
|
|
Any *programming* language. I guess we should not have made the assumption on that term.
cheers
Chris Maunder
|
|
|
|
|
|
The main article CodeProject.AI Server: AI the easy way.[^] has the changelog at the end, and I try and keep that one as up to date as possible. The docs also have a changelog[^] but as you can see it's a little behind the main article by a patch version
cheers
Chris Maunder
|
|
|
|
|
I've just started to try and run CodeProject AI. I'm using Windows 7 SP2 on a laptop with an Intel i3 processor. CodeProject.AI Server installs and sits as a service. However, entering http://localhost:32168 results in:
Firefox can’t establish a connection to the server at localhost:32168
IE doesn't work, and Google Chrome doesn't work. Does someone have advice on how to get to the dashboard so I can proceed to testing?
Rick g
|
|
|
|
|
Unfortunately we don't support Windows 7, but that doesn't mean it won't run.
Are there any errors shown in the Windows Event Viewer?
You could also try stopping the service, then going to C:\Program Files\CodeProject\AI\server and running server.exe in a terminal so you can see any output directly. That would show if something's crashing.
cheers
Chris Maunder
|
|
|
|
|
OK . . . . so the "service" was stopped . . . I opened a cmd prompt window . . . . navigated (by changing directories) to the CodeProject.AI server executable . . . and ran it. It seemed to install the server again, but as an app, though there was considerable output in the cmd prompt window:
![](/Uploads/Content/Images/a990772b-1621-4983-af65-1c5c8a5c6cd7.png)
![](/Uploads/Content/Images/4d47865c-a2bb-46e0-8c82-8a4bad13b504.png)
![](/Uploads/Content/Images/5d5c5653-0b4c-41e2-af4d-0e2eca1f93fe.png)
I have no clue what this is telling me, though it seems that some files were missing from the download and install.
None-the-less . . . when I entered http://localhost:32168 into my browser . . .. I did get a Dashboard of sorts. . . . but not exactly what you show on your website:
![](/Uploads/Content/Images/21c25199-c6b9-45c7-8cfd-2b76172938bc-small.png)
I then went about looking at the processes and services that were running, and noticed my CPU usage was running at about 70% . . . and with no app taking credit for the CPU usage. Unfortunately, the task manager doesn't report on CPU usage by services. Couldn't find anything to kill, so I uninstalled CodeProject.AI both as an app and as a service for now. CPU usage was still running at 70%. Rebooted the laptop and now all is quiet and well.
If you have any advice on how to get this to run on older laptop running Windows 7 like this, it would be appreciated.
Regards,
Rick g
|
|
|
|
|
When you run the exe directly, it starts up as an exe, rather than as a service. It's still registered as a service (though not sure since we don't have Win7 machines to test this on).
I can see it's trying to install the modules but it's timing out. Now that you're in the thick of things let's go one more step:
Open the terminal to C:\Program Files\CodeProject\AI\modules\FaceProcessing and then type `..\..\setup` and enter. Then go to C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2 and again `..\..\setup`.
The restart the server once both have finished.
cheers
Chris Maunder
|
|
|
|
|
Since I had uninstalled everything . . . I re-installed from the download executable. Then navigated to ...CodeProject\AI\modules directory. Nothing is in there. . . .so I can't go to FaceProcessing nor ObjectDetection....
I guess this just isn't going to work on Windows 7.
|
|
|
|
|
Hey,
My network provider (Telekom, quite popular provider in Germany) seems to have issues with the code project hosting. Downloading the installer was very slow at about 50 KB per second with many failed attempts. I managed to get the installer using my mobile plan. However, the connection problem now stops me from installing modules (as I cannot use my mobile-connection on the server), which makes it impossible to use object detection.
I've attached an excerpt from the server logs showing the issue when trying to download the module.
The target folder for the download does not contain any files.
22:47:26:ObjectDetectionYOLOv5Net: Reading ObjectDetectionYOLOv5Net settingsUsed modulesettings.json to get value Object Detection (YOLOv5 .NET)
22:47:26:ObjectDetectionYOLOv5Net: .Used modulesettings.json to get value 1.9.3
22:47:27:ObjectDetectionYOLOv5Net: .Used modulesettings.json to get value dotnet
22:47:27:ObjectDetectionYOLOv5Net: .Used modulesettings.json to get value Shared
22:47:27:ObjectDetectionYOLOv5Net: .Used modulesettings.windows.json to get value bin\ObjectDetectionYOLOv5Net.exe
22:47:27:ObjectDetectionYOLOv5Net: .Used modulesettings.json to get value true
22:47:28:ObjectDetectionYOLOv5Net: .Used modulesettings.json to get value ["all"]
22:47:28:ObjectDetectionYOLOv5Net: .Done
22:47:28:ObjectDetectionYOLOv5Net: Installing module Object Detection (YOLOv5 .NET) 1.9.3
22:47:28:ObjectDetectionYOLOv5Net: Variable Dump
22:47:28:ObjectDetectionYOLOv5Net: moduleName = Object Detection (YOLOv5 .NET)
22:47:28:ObjectDetectionYOLOv5Net: moduleVersion = 1.9.3
22:47:28:ObjectDetectionYOLOv5Net: runtime = dotnet
22:47:28:ObjectDetectionYOLOv5Net: runtimeLocation = Shared
22:47:28:ObjectDetectionYOLOv5Net: installGPU = true
22:47:28:ObjectDetectionYOLOv5Net: pythonVersion =
22:47:28:ObjectDetectionYOLOv5Net: virtualEnvDirPath =
22:47:28:ObjectDetectionYOLOv5Net: venvPythonCmdPath =
22:47:28:ObjectDetectionYOLOv5Net: packagesDirPath =
22:47:28:ObjectDetectionYOLOv5Net: moduleStartFilePath = bin\ObjectDetectionYOLOv5Net.exe
22:47:28:ObjectDetectionYOLOv5Net: Downloading ObjectDetectionYOLOv5Net-DirectML-1.9.3.zip to C:\Program Files\CodeProject\AI\downloads\ObjectDetectionYOLOv5Net\bin
22:47:28:ObjectDetectionYOLOv5Net: Downloading ObjectDetectionYOLOv5Net-DirectML-1.9.3.zip...Checking 'C:\Program Files\CodeProject\AI\downloads\ObjectDetectionYOLOv5Net\ObjectDetectionYOLOv5Net-DirectML-1.9.3.zip'
22:47:54:Response timeout. Try increasing the timeout value
Is this a known issue? Are there any alternative download links I could use to obtain the module?
Best
|
|
|
|
|
|
Is there any chance you could do a tracert to www.codeproject.com and email me the results? (chris@codeproject.com)
cheers
Chris Maunder
|
|
|
|
|
Done
|
|
|
|
|
Medium on Coral using CPAI used to take like ~114ms on the maximum performance driver. But after updating, it's taking ~14ms per detection, and checking from Blue Iris, the detections are way worse now than before.
I tried Large but that's like ~240ms, so it's too slow. What happened to Medium?
(btw, Coral is always "Lost Contact" now)
|
|
|
|
|
I had the same experience. I have an M.2 single TPU but after the update it was set to Multi-TPU. I disabled Multi-TPU Support and everything is running much better. More accurate detection and about the speed it was before.
|
|
|
|
|
I tried disabling multi-TPU but it's still the same. Seems like Small and Medium are exactly the same now for some reason
|
|
|
|
|
Are you seeing "Lost Contact" too? If so, can you try Ctrl+F5?
I'm trying to replicate the issue but it's stubbornly refusing to lose contact for me. What's your system info tab say?
cheers
Chris Maunder
|
|
|
|
|
Mine's also always "Lost Contact". Tried installing from scratch without any change. System info says:
Server version: 2.5.4
System: Docker
Operating System: Linux (Ubuntu 22.04)
CPUs: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (Intel)
1 CPU x 4 cores. 8 logical processors (x64)
System RAM: 15 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Docker
Runtime Env: Production
.NET framework: .NET 7.0.16
Default Python: 3.10
Go Version:
Video adapter info:
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
modified 17-Feb-24 22:12pm.
|
|
|
|
|
Wait, CPAI works on M2 Coral now ? Mine is dual, can it work ?
|
|
|
|