Click here to Skip to main content
15,888,816 members
Articles / Artificial Intelligence

CodeProject.AI Server: AI the easy way.

Rate me:
Please Sign up or sign in to vote.
5.00/5 (91 votes)
29 Feb 202416 min read 3.2M   490.2K   270   6.8K
Version 2.6.2. Our fast, free, self-hosted Artificial Intelligence Server for any platform, any language
CodeProject.AI Server is a locally installed, self-hosted, fast, free and Open Source Artificial Intelligence server for any platform, any language. No off-device or out of network data transfer, no messing around with dependencies, and able to be used from any platform, any language. Runs as a Windows Service or a Docker container.

Image 1

Previous

Quick Links

CodeProject.AI Server: An Artificial Intelligence Server

For those who want to integrate AI functionality into their applications without writing the AI functionality or dealing with the insanely painful task of ensuring everything is setup correctly. CodeProject.AI Server manages your MLOps for you.

Think of CodeProject.AI Server like a database server: you install it, it runs in the background, and provides AI operations for any application via a simple API. The AI operations are handled by drop-in modules that can be easily created using any language, any stack, as long as that stack runs on the host machine. Python, .NET, node - whatever works for you.

CodeProject.AI server runs as a Windows service, under systemd in Linux, or on startup on macOS. Alternatively there are multiple Docker images for x64, arm64 and CUDA enabled systems. Any language that can make HTTP calls can access the service, and the server does not require an external internet connection. Your data stays in your network.

Image 2 Image 3 Image 4 Image 5 Image 6 Image 7 Image 8 Image 9 Image 10
Windows macOS macOS-arm64 Ubuntu Debian Raspberry Pi Orange Pi Jetson Nano Docker

What Does It Do?

Image 11

The CodeProject.AI Server's Dashboard

Currently CodeProject.AI Server contains AI modules that provide:

  • Object Detection (Python and .NET versions that use YOLO, plus a Tensorflow-Lite module that's ultra-lightweight and great for Raspberry Pi and Coral USB sticks
  • Face Detection and recognition
  • Text processing such as sentiment analysis and summarization
  • Image processing such as background removal, background blur, cartoon-isation and resolution enhancement
  • Model training, including dataset acquisition, for YOLO object detection

How Do I Use It?

Install the server and start making calls to the API. It's that easy.

Guides, Help, FAQs

CodeProject.AI Server Home Assistant Blue Iris

Image 12

The CodeProject.AI Server's Explorer in action

Why We Built CodeProject.AI Server

  • AI programming is something every single developer should be aware of

    We wanted a fun project we could use to help teach developers and get them involved in AI. We'll be using CodeProject.AI Server as a focus for articles and exploration to make it fun and painless to learn AI programming.

    We want your contributions!

  • AI coding examples have too many moving parts

    You need to install packages and languages and extensions to tools, and then updates and libraries (but version X, not version Y) and then you have to configure paths and...Oh, you want to run on Windows not Linux? In that case, you need to... It's all too hard. There was much yelling at CodeProject.

    CodeProject.AI Server includes everything you need in a single installer. CodeProject.AI Server also provides an installation script that will setup your dev environment and get you debugging within a couple of clicks.

  • AI solutions often require the use of cloud services

    If you trust the cloud provider, or understand the billing structure, or can be assured you aren't sending sensitive data or won't go over the free tier, this is fine. If you have a webcam inside your house, or can't work out how much AWS will charge, it's not so OK.

    CodeProject.AI Server can be installed locally. Your machine, your network, no data needs to leave your device.

1: Running and Playing With the Features

  1. Install and Run
    1. For a Windows Service, download the latest version, install, and launch the shortcut to the server's dashboard on your desktop or open a browser to http://localhost:32168.

      If you wish to take advantage of a CUDA enabled NVIDIA GPU, please ensure you have the CUDA drivers installed before you install CodeProject.AI. We recommend CUDA 11.8 if running Windows

    2. For a Docker Container for 64 Bit Linux, run:
      docker run -p 32168:32168 --name CodeProject.AI -d codeproject/ai-server

      For Docker GPU (supports NVIDIA CUDA), please use:

      docker run --gpus all -p 32168:32168 --name CodeProject.AI -d codeproject/ai-server:cuda11_7
  2. On the dashboard, at the top, is a link to the demo playground. Open that and play!

2: Running and Debugging the Code

  1. Clone the CodeProject CodeProject.AI Server repository.
  2. Make sure you have Visual Studio Code or Visual Studio 2019+ installed.
  3. Run the setup script in /src
  4. Debug the front-end server application (see notes below, but it's easy).

3. Using CodeProject.AI Server in My Application

Here's an example of using the API for scene detection using a simple JavaScript call:

HTML
<html>
<body>
Detect the scene in this file: <input id="image" type="file" />
<input type="button" value="Detect Scene" onclick="detectScene(image)" />

<script>
function detectScene(fileChooser) {
    var formData = new FormData();
    formData.append('image', fileChooser.files[0]);

    fetch('http://localhost:5000/v1/vision/detect/scene', {
        method: "POST",
        body: formData
    })
    .then(response => {
        if (response.ok) response.json().then(data => {
            console.log(`Scene is ${data.label}, ${data.confidence} confidence`)
        });
    });
}
</script>
</body>
</html>

You can include the CodeProject.AI Server installer (or just a link to the latest version of the installer) in your own apps and installers and voila, you have an AI enabled app.

See the API documentation for a complete rundown of functionality.

Notes on the installers

The native installers (Windows, Ubuntu and macOS) all install the server as a service. On Windows it's a Windows service, on Ubuntu it uses systemd, and on macOS it's simply a login item so will start each time you login.

For all platforms, open http://localhost:32168 to view the dashboard.

To uninstall, please take note of the instructions when you install. For reference:

  • Windows uses the standard Windows installer, so use the Control Panel / Apps and Features applet to manage the installation.
     
  • Ubuntu uses dpkg, so to uninstall simply call
    Bash
    sudo dpkg -r codeproject.ai-server
  • macOS uninstall is via the command line
    Shell
    sudo bash "/Library/CodeProject.AI Server/<version>/uninstall.sh"

Notes on CUDA and Nvidia Support

If you have a CUDA enabled Nvidia card, please then ensure you

  1. install the CUDA Drivers (We recommend CUDA 11.7 or CUDA 11.8 if running Windows)
  2. Install CUDA Toolkit 11.8.
  3. Download and run our cuDNN install script to install cuDNN 8.9.4.

Nvidia downloads and drivers are challenging! Please ensure you download a driver that is compatible with CUDA 11.7+, which generally means the CUDA driver version 516.94 or below. Version 522.x or above may not work. You may need to refer to the release notes for each driver to confirm.

Our Docker images are based on CUDA 11.7 (for legacy reasons) and 12.2. As long as you have a driver installed that can handle 11.7 or 12.2 then the docker image will interface with your drivers and work fine.

CUDA 12.2 brings a few challenges with code that uses PyTorch due to the move to Torch 2.0, so we tend to favour 11.7. Some older cards will not be compatible with CUDA 12, or even CUDA 11.7. If you are struggling with older cards that don't support CUDA 11.7 then post a comment and we'll try and help.

Since we are using CUDA 11.7+ (which has support for compute capability 3.7 and above), we can only support Nvidia CUDA cards that are equal to or better than a GK210 or Tesla K80 card. Please refer to this table of supported cards to determine if your card has compute capability 3.7 or above.

Newer cards such as the GTX 10xx, 20xx and 30xx series, RTX, MX series are fully supported.

AI is a memory intensive operation. Some cards with 2GB RAM or less may struggle in some situations. Using the dashboard, you can either disable modules you don't need, or disable GPU support entirely for one or more modules. This will free up memory and help get you back on track.

What Does It Include?

CodeProject.AI Server includes:

  • A HTTP REST API Server. The server listens for requests from other apps, passes them to the backend analysis services for processing, and then passes the results back to the caller. It runs as a simple self-contained web service on your device.
  • Backend Analysis services. The brains of the operation is in the analysis services sitting behind the front end API. All processing of data is done on the current machine. No calls to the cloud and no data leaving the device.
  • The source code, naturally.

CodeProject.AI Server can currently

  • Detect objects in images
  • Detect faces in images
  • Detect the type of scene represented in an image
  • Recognise faces that have been registered with the service
  • Perform detection on custom models

The development environment also provides modules that can

  • Remove a background from an image
  • Blur a background from an image
  • Enhance the resolution of an image
  • Pull out the most important sentences in text to generate a text summary
  • Prove sentiment analysis on text

We will be constantly expanding the feature list.

Our Goals

  • To promote AI development and inspire the AI developer community to dive in and have a go. Artificial Intelligence is a huge paradigm change in the industry and all developers owe it to themselves to experiment in and familiarize themselves with the technology. CodeProject.AI Server was built as a learning tool, a demonstration, and a library and service that can be used out of the box.
  • To make AI development easy. It's not that AI development is that hard. It's that there are so, so many options. Our architecture is designed to allow any AI implementation to find a home in our system, and for our service to be callable from any language.
  • To focus on core use-cases. We're deliberately not a solution for everyone. Instead, we're a solution for common day-to-day needs. We will be adding dozens of modules and scores of AI capabilities to our system, but our goal is always clarity and simplicity over a 100% solution.
  • To tap the expertise of the Developer Community. We're not experts but we know a developer or two out there who are. The true power of CodeProject.AI Server comes from the contributions and improvements from our AI community.

License

CodeProject.AI Server is licensed under the Server-Side Public License.

Release Notes

What's New - 2.6

  • You can now select, at install time, which modules you wish to have initially installed
  • Some modules (Coral, Yolov8) now allow you to download individual models at runtime via the dashboard.
  • A new generative AI module (Llama LLM Chatbot)
  • A standardised way to handle (in code) modules that run long processes such as generative AI
  • Debian support has been improved
  • Small UI improvements to the dashboard
  • Some simplification of the modulesettings files
  • The inclusion, in the source code, of template .NET and Python modules (both simple and long process demos)
  • Improvements to the Coral and ALPR modules (thanks to Seth and Mike)
  • Docker CUDA 12.2 image now includes cuDNN
  • Install script fixes
  • Added Object Segmentation to the YOLOv8 module

Previous Versions

Release 2.5

  • Dynamic Explorer UI: Each module now supplies its own UI for the explorer
  • Improved dashboard and explorer
    • The module listing now shows module version history if you click the version number
    • Explorer benchmark has been updated to use the custom models of the currently active object detection module
    • The Info button on the dashboard now includes a status data dump from the module. For things like object detectors, it will include a dictionary of labels / counts so you can see what's being detected. For longer running modules such as training it will include the training status. This is here to enable better UI features in the future
  • Updated module settings schema that includes module author and original project acknowledgement
  • Installer fixes
  • Improved Jetson support
  • Lots of bug fixes, but specifically there was a script issue affecting module installs, and a modulesettings.json issue affecting the YOLOv5 6.2 module, as well as the SuperResolution module.
  • Updated ALPR, OCR (PP-OCR4 support thanks to Mike Lud) and Coral Object Detection (multi-TPU support thanks to Seth Price) modules
  • Pre-installed modules in Docker can now be uninstalled / reinstalled
  • A new Sound Classifier module has been included
  • 2.5.4: A separate status update from each module that decouples the stats for a module. This just cleans things up a little on the backend
  • 2.5.4: Minor modulesettings.json schema update, which introduces the concept of model requirements.
  • 2.5.5: Support for long running processes with accompanying stable difussion module.

Release 2.4

  • Mesh support Automatically offload inference work to other servers on your network based on inference speed. Zero config, and dashboard support to enable/disable.
  • CUDA detection fixed
  • Module self-test performed on installation
  • YOLOv8 module added
  • YOLOv5 .NET module fixes for GPU, and YOLOv5 3.1 GPU support fixed
  • Python package and .NET installation issues fixed
  • Better prompts for admin-only installs
  • More logging output to help diagnose issues
  • VC Redist hash error fixed
  • General bug fixes.
  • Breaking: modulesettings.json schema changed

Release 2.3

  • A focus on improving the installation of modules at runtime. More error checks, faster re-install, better reporting, and manual fallbacks in situations where admin rights are needed
  • A revamped SDK that removes much (or all, in some cases) of the boilerplate code needed in install scripts
  • Fine grained support for different CUDA versions as well as systems such as Raspberry Pi, Orange Pi and Jetson
  • Support for CUDA 12.2
  • GPU support for PaddlePaddle (OCR and license plate readers benefit)
  • CUDA 12.2 Docker image
  • Lots of bug fixes in install scripts
  • UI tweaks
  • 2.3.4 ALPR now using GPU in Windows
  • 2.3.4 Corrections to Linux/macOS installers

Release 2.2.0

This release is still in testing and is focussed mainly on the installation process

  • An entirely new Windows installer offering more installation options and a smoother upgrade experience from here on.
  • New macOS and Ubuntu native installers, for x64 and arm64 (including Raspberry Pi)
  • A new installation SDK for making module installers far easier
  • Improved installation feedback and self-checks
  • Coral.AI support for Linux, macOS (version 11 and 12 only) and Windows
  • Updates:
    • 2.2.1 - 2.2.3 various installer fixes
    • 2.2.4 - Fix to remove chunking in order to allow HTTP1.1 access to the API (Blue Iris fix)

Release 2.1.x Beta

  • Improved Raspberry Pi support. A new, fast object detection module with support for the Coral.AI TPU, all within an Arm64 Docker image
  • All modules can now be installed / uninstalled (rather than having some modules fixed and uninstallable).
  • Installer is streamlined: Only the server is installed at installation time, and on first run, we install Object Detection (Python and .NET) and Face Processing (which can be uninstalled).
  • Reworking of the Python module SDK. Modules are new child classes, not aggregators of our module runner.
  • Reworking of the modulesettings file to make it simpler and have less replication
  • Improved logging: quantity, quality, filtering and better information
  • Addition of two modules: ObjectDetectionTFLite for Object Detection on Raspberry Pi using Coral, and Cartoonise for some fun
  • Improvements to half-precision support checks on CUDA cards
  • Modules are now versioned and our module registry will now only show modules that fit your current server version.
  • Various bug fixes
  • Shared Python runtimes now in /runtimes.
  • All modules moved from the /AnalysisLayer folder to the /modules folder
  • Tested on CUDA 12
     
  • Patch 2.1.11: YOLO training modulke now allows you to use your own dataset. YOLO 6.2 / Face Processing reverted back to Torch 1.13.
  • Patch 2.1.10: Added YOLOv5 training module and support. Improved system info. Orange Pi and NVIDIA Jetson support. Added Triggers. Renamed VersionCompatibililty to ModuleReleases. Becoz speling.
  • Patch 2.1.9: Increased and adjustable module install timeout and improved install logs. Fixes around resource contention in PyTorch, Fixes to resource usage reporting, improved Native Linux/WSL CUDA setup. Async fixes. Improvements to half-precision support.
  • Patch 2.1.8: Reduced, drastically, the load on the system while getting CPU/GPU usage updates.
  • Patch 2.1.7: Fixed a memory / resource leak that may have been causing server shutdowns
  • Patch 2.1.6 and below: Installer fixes

Please see our CUDA Notes for information on setting up, and restrictions around, Nvidia cards and CUDA support.

If you are upgrading: when the dashboard launches, it might be necessary to force-reload (Ctrl+R on Windows) the dashboard to ensure you are viewing the latest version.

Release 2.0.x Beta

  • 2.0.8: Improved analysis process management. Stamp out those errant memory hogging Python processes!
  • 2.0.7: Improved logging, both file based and in the dashboard, module installer/uninstaller bug fixes
  • 2.0.6: Corrected issues with downloadable modules installer
  • Our new Module Registry: download and install modules at runtime via the dashboard
  • Improved performance for the Object Detection modules
  • Optional YOLO 3.1 Object Detection module for older GPUs
  • Optimised RAM use
  • Support for Raspberry Pi 4+. Code and run natively directly on the Raspberry Pi using VSCode natively
  • Revamped dashboard
  • New timing reporting for each API call
  • New, simplified setup and install scripts

Release 1.6.x Beta

  • Optimised RAM use
  • Ability to enable / disable modules and GPU support via the dashboard
  • REST settings API for updating settings on the fly
  • Apple M1/M2 GPU support
  • Workarounds for some Nvidia cards
  • Async processes and logging for a performance boost
  • Breaking: The CustomObjectDetection is now part of ObjectDetectionYolo
  • Performance fix for CPU + video demo
  • Patch 1.6.7: potential memory leak addressed
  • Patch 1.6.8: image handling improvements on Linux, multi-thread ONNX on .NET

Release 1.5.6.2 Beta

  • Docker nVidia GPU support
  • Further performance improvements
  • cuDNN install script to help with nVidia driver and toolkit installation
  • Bug fixes

Release 1.5.6 Beta

  • nVidia GPU support for Windows
  • Perf improvements to Python modules
  • Work on the Python SDK to make creating modules easier
  • Dev installers now drastically simplified for those creating new modules
  • Added SuperResolution as a demo module

Release 1.5 Beta

  • Support for custom models

Release 1.3.x Beta

  • Refactored and improved setup and module addition system
  • Introduction of modulesettings.json files
  • New analysis modules

Release 1.2.x Beta

  • Support for Apple Silicon for development mode
  • Native Windows installer
  • Runs as Windows Service
  • Run in a Docker Container
  • Installs and builds using VSCode in Linux (Ubuntu), macOS and Windows, as well as Visual Studio on Windows
  • General optimisation of the download payload sizes

Previous

  • We started with a proof of concept on Windows 10+ only. Installs we via a simple BAT script, and the code is full of exciting sharp edges. A simple dashboard and playground are included. Analysis is currently Python code only.
  • Version checks are enabled to alert users to new versions.
  • A new .NET implementation scene detection using the YOLO model to ensure the codebase is platform and tech stack agnostic
  • Blue Iris integration completed.

Written By
Software Developer CodeProject Solutions
Canada Canada
The CodeProject team have been writing software, building communities, and hosting CodeProject.com for over 20 years. We are passionate about helping developers share knowledge, learn new skills, and connect. We believe everyone can code, and every contribution, no matter how small, helps.

The CodeProject team is currently focussing on CodeProject.AI Server, a stand-alone, self-hosted server that provides AI inferencing services on any platform for any language. Learn AI by jumping in the deep end with us: codeproject.com/AI.
This is a Organisation

4 members

Comments and Discussions

 
GeneralRe: Face recognition using only cpu, not gpu's, in docker on an ubuntu machine Pin
DaxSalmon21-Aug-23 7:40
DaxSalmon21-Aug-23 7:40 
AnswerRe: Face recognition using only cpu, not gpu's, in docker on an ubuntu machine Pin
Chris Maunder21-Aug-23 7:35
cofounderChris Maunder21-Aug-23 7:35 
GeneralRe: Face recognition using only cpu, not gpu's, in docker on an ubuntu machine Pin
DaxSalmon21-Aug-23 8:00
DaxSalmon21-Aug-23 8:00 
GeneralRe: Face recognition using only cpu, not gpu's, in docker on an ubuntu machine Pin
Chris Maunder21-Aug-23 8:02
cofounderChris Maunder21-Aug-23 8:02 
QuestionCodeProject.AI NVMS Integration Pin
Member 1607534420-Aug-23 16:18
Member 1607534420-Aug-23 16:18 
AnswerRe: CodeProject.AI NVMS Integration Pin
Mike Lud20-Aug-23 23:59
communityengineerMike Lud20-Aug-23 23:59 
GeneralRe: CodeProject.AI NVMS Integration Pin
Member 1607534423-Aug-23 14:42
Member 1607534423-Aug-23 14:42 
QuestionCoral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202219-Aug-23 22:36
Ghost Man Nov202219-Aug-23 22:36 
Hi,

I've purchased a Coral Edge Dual TPU module along with an M.2 Adaptor. I know someone who successfully is running one of the edge dual models on a PCIE adaptor, so no reason why this shouldn't work. But it won't launch.

Here it becomes a bit blurry - there's no guide for CPAI on how to install the various Coral Adaptors - an oversight Code Project?? The Coral Guide suggests a series of steps, but I have reason to believe some steps probably aren't necessary with CPAI (stand to be corrected).

Steps so far:

1. Physically installed the Coral Edge Dual & Adaptor

2. Installed the Visual Studio Re distributable from the Microsoft Website (This should have installed the 2022 version)

3. Installed the EdgeTpuRuntime Package that installs the Coral TPU driver and the Edge TPU Runtime software.


Upon starting BI / CPAI, I found that Yolo 5 6.2 was being reported as stopped despite me having removed it. I've also found that the Coral TPU adpator isn't being started and is exiting.

Can anyone at CPAI please help with this?

These are the logs:

Quote:
An update to version 2.1.11-Beta is available Download
Improvements to YOLO model training.

09:00:43:Operating System: Windows (Microsoft Windows 10.0.19045)
09:00:43:CPUs: 11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz (Intel)
09:00:43: 1 CPU x 6 cores. 12 logical processors (x64)
09:00:43:GPU: Intel(R) UHD Graphics 730 (1,024 MiB) (Intel Corporation)
09:00:43: Driver: 30.0.101.1273
09:00:43:System RAM: 16 GiB
09:00:43:Target: Windows
09:00:43:BuildConfig: Release
09:00:43:Execution Env: Native
09:00:43:Runtime Env: Production
09:00:43:.NET framework: .NET 7.0.5
09:00:43:App DataDir: C:\ProgramData\CodeProject\AI
09:00:43:Video adapter info:
09:00:43: Intel(R) UHD Graphics 730:
09:00:43: Driver Version 30.0.101.1273
09:00:43: Video Processor Intel(R) UHD Graphics Family
09:00:43:ROOT_PATH = C:\Program Files\CodeProject\AI
09:00:43:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
09:00:43:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
09:00:43:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
09:00:43:PYTHON_PATH = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
09:00:43:Data Dir = C:\ProgramData\CodeProject\AI
09:00:43:Server version: 2.1.10-Beta
09:00:43:ModuleRunner Start
09:00:43:Starting Background AI Modules
09:00:45:Client request 'list-custom' in queue 'objectdetection_queue' (...321197)
09:00:46:GetCommandByRuntime: Runtime=python37, Location=Shared
09:00:46:Command: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python
09:00:46:
09:00:46:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
09:00:46:Attempting to start ObjectDetectionYolo with C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect_adapter.py"
09:00:46:
09:00:46:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
09:00:46:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
09:00:46:AutoStart: True
09:00:46:Queue: objectdetection_queue
09:00:46:Platforms: all
09:00:46:GPU: Support enabled
09:00:46:Parallelism: 0
09:00:46:Accelerator:
09:00:46:Half Precis.: enable
09:00:46:Runtime: python37
09:00:46:Runtime Loc: Shared
09:00:46:FilePath: detect_adapter.py
09:00:46:Pre installed: False
09:00:46:Start pause: 1 sec
09:00:46:LogVerbosity:
09:00:46:Valid: True
09:00:46:Environment Variables
09:00:46:APPDIR = %CURRENT_MODULE_PATH%
09:00:46:CPAI_MODULE_SUPPORT_GPU = False
09:00:46:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
09:00:46:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
09:00:46:MODEL_SIZE = Medium
09:00:46:USE_CUDA = False
09:00:46:YOLOv5_AUTOINSTALL = false
09:00:46:YOLOv5_VERBOSE = false
09:00:46:
09:00:46:Started Object Detection (YOLOv5 6.2) module
09:00:48:A new version 2.1.11-Beta is available
09:00:48:Current Version is 2.1.10-Beta
09:00:49:detect_adapter.py: CPAI_MODULE_REQUIRED_MB not found. Setting to default 0
09:00:49:detect_adapter.py: APPDIR: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
09:00:49:detect_adapter.py: MODEL_SIZE: medium
09:00:49:detect_adapter.py: MODELS_DIR: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\assets
09:00:49:Request 'list-custom' dequeued from 'objectdetection_queue' (...321197)
09:00:49:Running init for Object Detection (YOLOv5 6.2)
09:00:49:Object Detection (YOLOv5 6.2): Object Detection (YOLOv5 6.2) started.
09:00:49:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:00:49:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'list-custom' (...321197) took 1ms
09:00:49:Response received (...321197)
09:00:50:Sending shutdown request to python/ObjectDetectionYolo
09:00:50:Client request 'Quit' in queue 'objectdetection_queue' (...0c7f7f)
09:00:50:Request 'Quit' dequeued from 'objectdetection_queue' (...0c7f7f)
09:00:50:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:00:59:Module ObjectDetectionYolo has shutdown
09:00:59:detect_adapter.py: has exited
09:01:20:Preparing to install module 'ObjectDetectionCoral'
09:01:20:Downloading module 'ObjectDetectionCoral'
09:01:21:Installing module 'ObjectDetectionCoral'
09:01:21:ObjectDetectionCoral: Installing CodeProject.AI Analysis Module
09:01:21:ObjectDetectionCoral: ========================================================================
09:01:21:ObjectDetectionCoral: CodeProject.AI Installer
09:01:21:ObjectDetectionCoral: ========================================================================
09:01:21:ObjectDetectionCoral: Checking GPU support
09:01:21:ObjectDetectionCoral: CUDA Present...False
09:01:21:ObjectDetectionCoral: Allowing GPU Support: Yes
09:01:21:ObjectDetectionCoral: Allowing CUDA Support: No
09:01:21:ObjectDetectionCoral: General CodeProject.AI setup
09:01:21:ObjectDetectionCoral: Creating Directories...Done
09:01:21:ObjectDetectionCoral: Installing module ObjectDetectionCoral
09:01:21:ObjectDetectionCoral: Installing python37 in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37
09:01:21:ObjectDetectionCoral: Checking for python37 download...Present
09:01:23:ObjectDetectionYolo went quietly
09:01:23:GetCommandByRuntime: Runtime=python37, Location=Shared
09:01:23:Command: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python
09:01:23:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
09:01:23:
09:01:23:Attempting to start ObjectDetectionYolo with C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect_adapter.py"
09:01:23:
09:01:23:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
09:01:23:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
09:01:23:AutoStart: True
09:01:23:Queue: objectdetection_queue
09:01:23:Platforms: all
09:01:23:GPU: Support enabled
09:01:23:Parallelism: 0
09:01:23:Accelerator:
09:01:23:Half Precis.: enable
09:01:23:Runtime: python37
09:01:23:Runtime Loc: Shared
09:01:23:FilePath: detect_adapter.py
09:01:23:Pre installed: False
09:01:23:Start pause: 1 sec
09:01:23:LogVerbosity:
09:01:23:Valid: True
09:01:23:Environment Variables
09:01:23:APPDIR = %CURRENT_MODULE_PATH%
09:01:23:CPAI_MODULE_SUPPORT_GPU = False
09:01:23:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
09:01:23:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
09:01:23:MODEL_SIZE = Medium
09:01:23:USE_CUDA = False
09:01:23:YOLOv5_AUTOINSTALL = false
09:01:23:YOLOv5_VERBOSE = false
09:01:23:
09:01:23:Started Object Detection (YOLOv5 6.2) module
09:01:26:detect_adapter.py: CPAI_MODULE_REQUIRED_MB not found. Setting to default 0
09:01:26:detect_adapter.py: APPDIR: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
09:01:26:detect_adapter.py: MODEL_SIZE: medium
09:01:26:detect_adapter.py: MODELS_DIR: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\assets
09:01:26:Running init for Object Detection (YOLOv5 6.2)
09:01:26:Object Detection (YOLOv5 6.2): Object Detection (YOLOv5 6.2) started.
09:01:27:ObjectDetectionCoral: Creating Virtual Environment...Done
09:01:27:ObjectDetectionCoral: Enabling our Virtual Environment...Done
09:01:27:ObjectDetectionCoral: Confirming we have Python 3.7...present
09:01:28:ObjectDetectionCoral: Ensuring Python package manager (pip) is installed...Done
09:01:33:ObjectDetectionCoral: Ensuring Python package manager (pip) is up to date...Done
09:01:33:ObjectDetectionCoral: Choosing Python packages from requirements.txt
09:01:38:ObjectDetectionCoral: Installing Packages into Virtual Environment...Success
09:01:39:ObjectDetectionCoral: Ensuring Python package manager (pip) is installed...Done
09:01:39:ObjectDetectionCoral: Ensuring Python package manager (pip) is up to date...Done
09:01:39:ObjectDetectionCoral: Choosing Python packages from requirements.txt
09:01:46:ObjectDetectionCoral: Installing Packages into Virtual Environment...Success
09:01:50:ObjectDetectionCoral: Downloading edge TPU runtime...Expanding...Done.
09:01:50:ObjectDetectionCoral: *** You may need to run C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\edgetpu_runtime\install.bat to complete this process. Attempting to run this script now.
09:01:50:ObjectDetectionCoral: Installing UsbDk
09:01:50:ObjectDetectionCoral: Installing Windows drivers
09:01:50:ObjectDetectionCoral: Microsoft PnP Utility
09:01:50:ObjectDetectionCoral: Adding driver package: coral.inf
09:01:50:ObjectDetectionCoral: Driver package added successfully. (Already exists in the system)
09:01:50:ObjectDetectionCoral: Published Name: oem10.inf
09:01:50:ObjectDetectionCoral: Driver package installed on device: PCI\VEN_1AC1&DEV_089A&SUBSYS_089A1AC1&REV_00\6&fb5d63b&0&00380030
09:01:50:ObjectDetectionCoral: Driver package installed on device: PCI\VEN_1AC1&DEV_089A&SUBSYS_089A1AC1&REV_00\6&1b005fa9&0&00180030
09:01:50:ObjectDetectionCoral: Adding driver package: Coral_USB_Accelerator.inf
09:01:50:ObjectDetectionCoral: Driver package added successfully. (Already exists in the system)
09:01:50:ObjectDetectionCoral: Published Name: oem14.inf
09:01:50:ObjectDetectionCoral: Adding driver package: Coral_USB_Accelerator_(DFU).inf
09:01:50:ObjectDetectionCoral: Driver package added successfully. (Already exists in the system)
09:01:50:ObjectDetectionCoral: Published Name: oem16.inf
09:01:50:ObjectDetectionCoral: Total driver packages: 3
09:01:50:ObjectDetectionCoral: Added driver packages: 3
09:01:50:ObjectDetectionCoral: Installing performance counters
09:01:50:ObjectDetectionCoral: Info: Provider {aaa5bf9e-c44b-4177-af65-d3a06ba45fe7} defined in C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\edgetpu_runtime\third_party\coral_accelerator_windows\coral.man is already installed in system repository.
09:01:50:ObjectDetectionCoral: Info: Successfully installed performance counters in C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\edgetpu_runtime\third_party\coral_accelerator_windows\coral.manCopying edgetpu and libusb to System32
09:01:50:ObjectDetectionCoral: 1 file(s) copied.
09:01:51:ObjectDetectionCoral: 1 file(s) copied.
09:01:51:ObjectDetectionCoral: Install complete
09:02:07:ObjectDetectionCoral: Downloading MobileNet models...Expanding...Done.
09:02:07:ObjectDetectionCoral: Module setup complete
09:02:07:Module ObjectDetectionCoral installed successfully.
09:02:07:Module ObjectDetectionCoral not configured to AutoStart.
09:02:07:Installer exited with code 0
09:03:24:Client request 'list-custom' in queue 'objectdetection_queue' (...7f387a)
09:03:24:Request 'list-custom' dequeued from 'objectdetection_queue' (...7f387a)
09:03:24:Response received (...7f387a)
09:03:24:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:03:24:Object Detection (YOLOv5 6.2): Queue request for Object Detection (YOLOv5 6.2) command 'list-custom' (...7f387a) took 1ms
09:03:25:Sending shutdown request to python/ObjectDetectionYolo
09:03:25:Client request 'Quit' in queue 'objectdetection_queue' (...3e58ba)
09:03:25:Request 'Quit' dequeued from 'objectdetection_queue' (...3e58ba)
09:03:25:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:03:34:Module ObjectDetectionYolo has shutdown
09:03:34:detect_adapter.py: has exited
09:03:58:ObjectDetectionYolo went quietly
09:03:58:GetCommandByRuntime: Runtime=python37, Location=Shared
09:03:58:Command: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python
09:03:58:
09:03:58:Attempting to start ObjectDetectionYolo with C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\scripts\Python "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\detect_adapter.py"
09:03:58:
09:03:58:Module 'Object Detection (YOLOv5 6.2)' (ID: ObjectDetectionYolo)
09:03:58:Module Path: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
09:03:58:AutoStart: True
09:03:58:Queue: objectdetection_queue
09:03:58:Platforms: all
09:03:58:GPU: Support enabled
09:03:58:Parallelism: 0
09:03:58:Starting C:\Program Files...ws\python37\venv\scripts\Python "C:\Program Files...tectionYolo\detect_adapter.py"
09:03:58:Accelerator:
09:03:58:Half Precis.: enable
09:03:58:Runtime: python37
09:03:58:Runtime Loc: Shared
09:03:58:FilePath: detect_adapter.py
09:03:58:Pre installed: False
09:03:58:Start pause: 1 sec
09:03:58:LogVerbosity:
09:03:58:Valid: True
09:03:58:Environment Variables
09:03:58:APPDIR = %CURRENT_MODULE_PATH%
09:03:58:CPAI_MODULE_SUPPORT_GPU = False
09:03:58:CUSTOM_MODELS_DIR = %CURRENT_MODULE_PATH%/custom-models
09:03:58:MODELS_DIR = %CURRENT_MODULE_PATH%/assets
09:03:58:MODEL_SIZE = Medium
09:03:58:USE_CUDA = False
09:03:58:YOLOv5_AUTOINSTALL = false
09:03:58:YOLOv5_VERBOSE = false
09:03:58:
09:03:58:Started Object Detection (YOLOv5 6.2) module
09:04:01:detect_adapter.py: CPAI_MODULE_REQUIRED_MB not found. Setting to default 0
09:04:01:detect_adapter.py: APPDIR: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
09:04:01:detect_adapter.py: MODEL_SIZE: medium
09:04:01:detect_adapter.py: MODELS_DIR: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo\assets
09:04:01:Running init for Object Detection (YOLOv5 6.2)
09:04:01:Object Detection (YOLOv5 6.2): Object Detection (YOLOv5 6.2) started.
09:04:41:Sending shutdown request to python/ObjectDetectionYolo
09:04:41:Client request 'Quit' in queue 'objectdetection_queue' (...eda207)
09:04:41:Request 'Quit' dequeued from 'objectdetection_queue' (...eda207)
09:04:41:Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command
09:04:51:Module ObjectDetectionYolo has shutdown
09:04:51:detect_adapter.py: has exited
09:05:14:ObjectDetectionYolo went quietly
09:07:27:Client request 'list-custom' in queue 'objectdetection_queue' (...fa36bf)
09:10:13:Client request 'list-custom' in queue 'objectdetection_queue' (...e10fa8)


Coral suggests installing a python Library (complex set of command line options and seems aimed at teaching / developing a module) and TensorFlow something or other, but I rather think these are probably elements contained within the CPAI module, or at least they should be.

Anyone at CPAI help with this?
AnswerRe: Coral TPU Issues - Can't get it to launch Pin
Chris Maunder21-Aug-23 5:50
cofounderChris Maunder21-Aug-23 5:50 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202221-Aug-23 12:48
Ghost Man Nov202221-Aug-23 12:48 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Chris Maunder22-Aug-23 3:44
cofounderChris Maunder22-Aug-23 3:44 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202222-Aug-23 7:29
Ghost Man Nov202222-Aug-23 7:29 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202222-Aug-23 7:39
Ghost Man Nov202222-Aug-23 7:39 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Chris Maunder22-Aug-23 7:45
cofounderChris Maunder22-Aug-23 7:45 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202222-Aug-23 8:06
Ghost Man Nov202222-Aug-23 8:06 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Chris Maunder23-Aug-23 4:55
cofounderChris Maunder23-Aug-23 4:55 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202222-Aug-23 22:31
Ghost Man Nov202222-Aug-23 22:31 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Chris Maunder23-Aug-23 4:57
cofounderChris Maunder23-Aug-23 4:57 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202222-Aug-23 23:10
Ghost Man Nov202222-Aug-23 23:10 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Chris Maunder23-Aug-23 5:18
cofounderChris Maunder23-Aug-23 5:18 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202222-Aug-23 23:27
Ghost Man Nov202222-Aug-23 23:27 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Chris Maunder23-Aug-23 5:01
cofounderChris Maunder23-Aug-23 5:01 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202223-Aug-23 11:01
Ghost Man Nov202223-Aug-23 11:01 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202224-Aug-23 10:00
Ghost Man Nov202224-Aug-23 10:00 
GeneralRe: Coral TPU Issues - Can't get it to launch Pin
Ghost Man Nov202231-Aug-23 3:43
Ghost Man Nov202231-Aug-23 3:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Flags: Answered

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.