|
As far as I know there are no memory problems with the Coral module in the latest code. When I ran some longer tests, the memory consumption grew, but leveled off at around 1.1 gb of usage. This points me to Python memory fragmentation, which isn’t really a problem or something I can fix. (AFAIK)
Unfortunately, I don’t have a USB module so I can’t debug anything there. It may be worthwhile for me to get one just for that reason…
|
|
|
|
|
I'm having the exact same problem with the USB Corel. What I have observed, and this might be how it works, but when I installed Corel USB, the device shows under Device Manager as "Corel USB Accelerator". When you start CPAI, it then changes to "UsbDk" and shows no driver. Then when it's running after a reboot, it picks up the adapter in Multi-TPU mode, and after a while will start displaying shutdown messages because of no work to do. Don't know the relevance to this problem, but just to shed some light on what I have observed. To note I'm running on a Beelink SER5 Max mini-PC with a Ryzen 7 5800H APU, so no discreet Graphics Card.
09:21:51:System: Windows
09:21:51:Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
09:21:51:CPUs: AMD Ryzen 7 5800H with Radeon Graphics (AMD)
09:21:51: 1 CPU x 8 cores. 16 logical processors (x64)
09:21:51:GPU (Primary): AMD Radeon(TM) Graphics (3 GiB) (Advanced Micro Devices, Inc.)
09:21:51: Driver: 31.0.21910.5
09:21:51:System RAM: 29 GiB
09:21:51:Platform: Windows
09:21:51:BuildConfig: Release
09:21:51:Execution Env: Native
09:21:51:Runtime Env: Production
09:21:51:Runtimes installed:
09:21:51: .NET runtime: 7.0.10
09:21:51: .NET SDK: Not found
09:21:51: Default Python: Not found
09:21:51: Go: Not found
09:21:51: NodeJS: Not found
09:21:51: Rust: Not found
09:21:51:App DataDir: C:\ProgramData\CodeProject\AI
09:21:51:Video adapter info:
09:21:51: AMD Radeon(TM) Graphics:
09:21:51: Driver Version 31.0.21910.5
09:21:51: Video Processor AMD Radeon Graphics Processor (0x1638)
09:21:51: Microsoft Remote Display Adapter:
09:21:51: Driver Version 10.0.22621.3235
09:21:51: Video Processor
09:21:51:STARTING CODEPROJECT.AI SERVER
09:21:51:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
09:21:51:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
09:21:51:DEMO_MODULES_PATH = C:\Program Files\CodeProject\AI\demos\modules
09:21:51:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
09:21:51:PYTHON_PATH = \bin\windows\%PYTHON_NAME%\venv\Scripts\python
09:21:51:Data Dir = C:\ProgramData\CodeProject\AI
09:21:52:Server version: 2.6.2
09:21:55:
09:21:55:Module 'Object Detection (Coral)' 2.2.2 (ID: ObjectDetectionCoral)
09:21:55:Valid: True
09:21:55:Module Path: <root>\modules\ObjectDetectionCoral
09:21:55:AutoStart: True
09:21:55:Queue: objectdetection_queue
09:21:55:Runtime: python3.9
09:21:55:Runtime Loc: Local
09:21:55:FilePath: objectdetection_coral_adapter.py
09:21:55:Start pause: 1 sec
09:21:55:Parallelism: 16
09:21:55:LogVerbosity:
09:21:55:Platforms: all
09:21:55:GPU Libraries: installed if available
09:21:55:GPU Enabled: enabled
09:21:55:Accelerator:
09:21:55:Half Precis.: enable
09:21:55:Environment Variables
09:21:55:CPAI_CORAL_MODEL_NAME = YOLOv8
09:21:55:CPAI_CORAL_MULTI_TPU = True
09:21:55:MODELS_DIR = <root>\modules\ObjectDetectionCoral\assets
09:21:55:MODEL_SIZE = Small
09:21:55:
09:21:55:Started Object Detection (Coral) module
09:21:57:Server: This is the latest version
09:22:02:objectdetection_coral_adapter.py: TPU detected
09:22:02:objectdetection_coral_adapter.py: Attempting multi-TPU initialisation
09:22:02:objectdetection_coral_adapter.py: Supporting multiple Edge TPUs
09:22:58:objectdetection_coral_adapter.py: WARNING:root:No work in 60.0 seconds, watchdog shutting down TPUs.
09:23:04:objectdetection_coral_adapter.py: WARNING:root:No work in 60.0 seconds, watchdog shutting down TPUs.
09:23:09:objectdetection_coral_adapter.py: WARNING:root:No work in 60.0 seconds, watchdog shutting down TPUs.
09:23:14:objectdetection_coral_adapter.py: WARNING:root:No work in 60.0 seconds, watchdog shutting down TPUs.
09:23:19:objectdetection_coral_adapter.py: WARNING:root:No work in 60.0 seconds, watchdog shutting down TPUs.
|
|
|
|
|
The shutdown messages are only a problem if there is, in fact, work to do and it’s not getting done. It’s designed to start back up quickly on demand.
|
|
|
|
|
And that is fair, just was a WARNING type message, so thought it needed some explanation. Any thoughts on the device manager changes? Is that considered normal do you know? If not, maybe I could dig a big more.
I'll try disabling the auto/start as was suggested.
|
|
|
|
|
Yeah, the more recent code no longer has that as a warning. I’m not sure when it will roll out however. I’m afraid I’m not going to be much help for what to expect with device manager.
|
|
|
|
|
Just wanted to report back on this after a few days. I unchecked CPAI starting with BI as recommended, and it's remained stable so far. Currently still showing TPU (TF-Lite). Not sure if the OP is seeing that same thing?
I did see a number of log entries saying:
07:36:05:objectdetection_coral_adapter.py: no TPU interpreters: Falling back to CPU detection
But I think this is expected behavior when there is no work and it finally does go idle. As @mailseth2 eluded to previously, it restarts again. I'll report back if I see anything else.
Thanks everyone!
|
|
|
|
|
Good to hear it’s working. I wouldn’t expect it to ever fall back to CPU. Weird that it says that there are no TPUs available. I’ve tried to build it so it is easy to catch errors and restart if needed, but my TPU setup has been too reliable to actually test and build it in ‘real world’ conditions.
|
|
|
|
|
Well if you need a Windows/Corel USB tester, then please let me know!
|
|
|
|
|
If you want to write the code to get it to work (and keep it working), I’d be happy to incorporate it! There shouldn’t be too much trickery. Just some try/except statements to handle failures better and a lot of trial and error to make sure it’s right. I can write fast code, but am not the greatest at getting it running on your computer…
|
|
|
|
|
Server version: 2.6.2
System: Windows
Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
20:58:09:Preparing to install module 'FaceProcessing'
20:58:09:Downloading module 'FaceProcessing'
20:58:09:Unable to download module 'FaceProcessing' from https://www.codeproject.com/KB/articles/5348853/FaceProcessing-1.10.2.zip. Error: No bytes downloaded
modified 23-Apr-24 12:35pm.
|
|
|
|
|
We missed deploying that file.
I've fixed it and you should be good to go in about 5 minutes.
"Mistakes are prevented by Experience. Experience is gained by making mistakes."
|
|
|
|
|
|
Installing the Coral Module fails with:
Unable to download module 'ObjectDetectionCoral' from https://www.codeproject.com/KB/articles/5348853/ObjectDetectionCoral-2.2.2.zip. Error: No bytes downloaded
Looks like if you change the version to 2.2.0 you can manually download it.
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): Microsoft Remote Display Adapter (Microsoft)
Driver: 10.0.19041.3636
System RAM: 32 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.5
.NET SDK: Not found
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
Microsoft Remote Display Adapter:
Driver Version 10.0.19041.3636
Video Processor
Intel(R) HD Graphics 530:
Driver Version 27.20.100.9664
Video Processor Intel(R) HD Graphics Family
System GPU info:
GPU 3D Usage 2%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
modified 23-Apr-24 12:35pm.
|
|
|
|
|
Came here looking for solutions to this download issue.
I've managed to get the v2.2.0.zip to download, but I'm unsure of the installation methods. Any hints you can point me to?
Cheers, -Ian
|
|
|
|
|
Directions to install/re-install a module are found above in the Readme First post.
I tried to do that after downloading 2.2.0 and the installer said it was unable to install:
Installing CodeProject.AI Analysis Module
======================================================================
CodeProject.AI Installer
======================================================================
74.0Gb of 237Gb available on
General CodeProject.AI setup
Creating Directories...done
GPU support
CUDA Present...No
ROCm Present...No
Reading ObjectDetectionCoral-2.2.0 settings.......done
Installing module ObjectDetectionCoral-2.2.0
This module cannot be installed on this system
Setup complete
Total setup time 00:00:01.92
c:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral-2.2.0>
-Jason
|
|
|
|
|
I also have this issue
|
|
|
|
|
I'm actually having issues downloading v2.2.2 - keep on getting no bytes downloaded.
Even wget has difficulties actually downloading anything?
I would assume that there are issues with the file hosting?
BTW, I have v2.2 installed but can't get v2.2 to even start, with any options
|
|
|
|
|
Seems like just a corrupted 2.2.2 package on the site.
Calling @chris-maunder to re-upload the zip file.
|
|
|
|
|
Matthew has redeployed so it may be worth trying again, with cache disabled.
cheers
Chris Maunder
|
|
|
|
|
Coral 2.2.2 Update now works for me, thanks for fixing...
Although YOLOv8 1.4.3 also fails to download with the same error I had for Coral
|
|
|
|
|
Please try again. Should be good now.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Works now, thanks for fixing
|
|
|
|
|
Running Ubuntu 22.04. Upon reboot, YOLOv5.NET keeps getting reinstalled on reboot. Any way to stop this?
Thanks
-- modified 16-Apr-24 12:10pm.
|
|
|
|
|
We just identified and fixed the error. We'll have a new release soon.
cheers
Chris Maunder
|
|
|
|
|
Could you please send a copy of the System Info tab
"Mistakes are prevented by Experience. Experience is gained by making mistakes."
|
|
|
|