Click here to Skip to main content
15,796,456 members
Articles / Programming Languages / CUDA

CodeProject.AI Server: AI the easy way.

Rate me:
Please Sign up or sign in to vote.
5.00/5 (79 votes)
5 Nov 202314 min read 1.6M   349.6K   230   5K
Version 2.3.4. 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

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 or under Docker. 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.

Under Docker, it runs on any system that can host Docker, and provides specific Arm64 versions for Apple Silicon and Boards such as Raspberry Pi and Jetson. There is also a native Windows installer that allows it to run as a service.

Image 2 Image 3 Image 4 Image 5 Image 6 Image 7 Image 8 Image 9
Windows macOS macOS-arm64 Ubuntu Raspberry Pi Docker Visual Studio
2019+
Visual Studio
Code

What Does It Do?

Image 10

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 11

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.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

Previous Versions

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

 
PinnedREADME if you are having issues Pin
Chris Maunder23-Apr-23 5:21
cofounderChris Maunder23-Apr-23 5:21 
PinnedA note on custom models and Blue Iris PinPopular
Chris Maunder24-Sep-22 12:18
cofounderChris Maunder24-Sep-22 12:18 
PinnedFound a bug? Got a Suggestion? Please read first! PinPopular
Chris Maunder23-Sep-22 13:51
cofounderChris Maunder23-Sep-22 13:51 
QuestionAI 2.3.4 beta and BI Issue - no alerts Pin
Chris D_Keir21hrs 14mins ago
Chris D_Keir21hrs 14mins ago 
AnswerRe: AI 2.3.4 beta and BI Issue - no alerts Pin
David Lonsdale17hrs 32mins ago
David Lonsdale17hrs 32mins ago 
GeneralRe: AI 2.3.4 beta and BI Issue - no alerts Pin
Chris D_Keir16hrs 26mins ago
Chris D_Keir16hrs 26mins ago 
GeneralRe: AI 2.3.4 beta and BI Issue - no alerts Pin
David Lonsdale15hrs 41mins ago
David Lonsdale15hrs 41mins ago 
GeneralRe: AI 2.3.4 beta and BI Issue - no alerts Pin
fotingo15hrs 35mins ago
fotingo15hrs 35mins ago 
GeneralRe: AI 2.3.4 beta and BI Issue - no alerts Pin
Sean Ewington14hrs 34mins ago
staffSean Ewington14hrs 34mins ago 
AnswerRe: AI 2.3.4 beta and BI Issue - no alerts Pin
Sean Ewington14hrs 32mins ago
staffSean Ewington14hrs 32mins ago 
GeneralRe: AI 2.3.4 beta and BI Issue - no alerts Pin
Chris D_Keir14hrs 3mins ago
Chris D_Keir14hrs 3mins ago 
GeneralRe: AI 2.3.4 beta and BI Issue - no alerts Pin
David Lonsdale12hrs 30mins ago
David Lonsdale12hrs 30mins ago 
GeneralRe: AI 2.3.4 beta and BI Issue - no alerts Pin
Sean Ewington12hrs 9mins ago
staffSean Ewington12hrs 9mins ago 
GeneralRe: AI 2.3.4 beta and BI Issue - no alerts Pin
David Lonsdale11hrs 35mins ago
David Lonsdale11hrs 35mins ago 
Question2.3.4 Windows GPU Object Detection Not Working (for me) Pin
K980455-Dec-23 20:55
K980455-Dec-23 20:55 
Questionwindows 10 nivdia 3060 not using cudas, blueiris Pin
Joe.king.cool5-Dec-23 19:28
Joe.king.cool5-Dec-23 19:28 
I've been using codeproject for some time now. and it always seems to be a headache in getting it to work. so im hoping someone can shed some light on how to resolve it.

usually the .net works better as far as resources are concerned i can explain if needed. but recently i had to reinstall windows and now neither the new version or the old version will use .net object detection. so i figured to try and get 6.2 to actually use the gpu. one part of the logs says its true and other says cant use.

<pre>Server version:   2.3.4-Beta
System:           Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs:             AMD Ryzen 7 2700X Eight-Core Processor          (AMD)
                  1 CPU x 8 cores. 16 logical processors (x64)
GPU:              NVIDIA GeForce RTX 3060 (12 GiB) (NVIDIA) 
                  Driver: 546.29 CUDA: 12.3 (max supported: 12.3) Compute: 8.6
System RAM:       16 GiB
Target:           Windows
BuildConfig:      Release
Execution Env:    Native
Runtime Env:      Production
.NET framework:   .NET 7.0.5
Video adapter info:
  NVIDIA GeForce RTX 3060:
    Driver Version     31.0.15.4629
    Video Processor    NVIDIA GeForce RTX 3060
System GPU info:
  GPU 3D Usage       19%
  GPU RAM Usage      2.2 GiB
Global Environment variables:
  CPAI_APPROOTPATH = <root>
  CPAI_PORT        = 32168




00:03:48:System:           Windows
00:03:48:Operating System: Windows (Microsoft Windows 10.0.19045)
00:03:48:CPUs:             AMD Ryzen 7 2700X Eight-Core Processor          (AMD)
00:03:48:                  1 CPU x 8 cores. 16 logical processors (x64)
00:03:48:GPU:              NVIDIA GeForce RTX 3060 (12 GiB) (NVIDIA)
00:03:48:                  Driver: 546.29 CUDA: 12.3 (max supported: 12.3) Compute: 8.6
00:03:48:System RAM:       16 GiB
00:03:48:Target:           Windows
00:03:48:BuildConfig:      Release
00:03:48:Execution Env:    Native
00:03:48:Runtime Env:      Production
00:03:48:.NET framework:   .NET 7.0.5
00:03:48:App DataDir:      C:\ProgramData\CodeProject\AI
00:03:48:Video adapter info:
00:03:48:  NVIDIA GeForce RTX 3060:
00:03:48:    Driver Version     31.0.15.4629
00:03:48:    Video Processor    NVIDIA GeForce RTX 3060
00:03:48:STARTING CODEPROJECT.AI SERVER
00:03:48:RUNTIMES_PATH             = C:\Program Files\CodeProject\AI\runtimes
00:03:48:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
00:03:48:MODULES_PATH              = C:\Program Files\CodeProject\AI\modules
00:03:48:PYTHON_PATH               = \bin\windows\%PYTHON_DIRECTORY%\venv\Scripts\python
00:03:48:Data Dir                  = C:\ProgramData\CodeProject\AI
00:03:48:Server version:   2.3.4-Beta
00:03:51:
00:03:51:Module 'Object Detection (YOLOv5 6.2)' 1.7.1 (ID: ObjectDetectionYolo)
00:03:51:Module Path:   C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
00:03:51:AutoStart:     True
00:03:51:Queue:         objectdetection_queue
00:03:51:Platforms:     all
00:03:51:GPU Libraries: installed if available
00:03:51:GPU Enabled:   enabled
00:03:51:Parallelism:   0
00:03:51:Accelerator:
00:03:51:Half Precis.:  enable
00:03:51:Runtime:       python3.7
00:03:51:Runtime Loc:   Shared
00:03:51:FilePath:      detect_adapter.py
00:03:51:Pre installed: False
00:03:51:Start pause:   1 sec
00:03:51:LogVerbosity:
00:03:51:Valid:         True
00:03:51:Environment Variables
00:03:51:APPDIR                 = %CURRENT_MODULE_PATH%
00:03:51:CPAI_MODULE_ENABLE_GPU = True
00:03:51:CUSTOM_MODELS_DIR      = %CURRENT_MODULE_PATH%/custom-models
00:03:51:MODELS_DIR             = %CURRENT_MODULE_PATH%/assets
00:03:51:MODEL_SIZE             = Medium
00:03:51:USE_CUDA               = True
00:03:51:YOLOv5_AUTOINSTALL     = false
00:03:51:YOLOv5_VERBOSE         = false
00:03:51:
00:03:51:Started Object Detection (YOLOv5 6.2) module
00:03:53:Server: This is the latest version
00:03:56:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'list-custom' (...39abee) took 2ms
00:03:56:Sending shutdown request to python/ObjectDetectionYolo
00:04:06:detect_adapter.py: Inference processing will occur on device 'CPU'
00:04:07:Module ObjectDetectionYolo has shutdown
00:04:07:detect_adapter.py: has exited
00:04:16:Unable to find module YOLOv5-3.1
00:04:29:ObjectDetectionYolo went quietly
00:04:29:
00:04:29:Module 'Object Detection (YOLOv5 6.2)' 1.7.1 (ID: ObjectDetectionYolo)
00:04:29:Module Path:   C:\Program Files\CodeProject\AI\modules\ObjectDetectionYolo
00:04:29:AutoStart:     True
00:04:29:Queue:         objectdetection_queue
00:04:29:Platforms:     all
00:04:29:GPU Libraries: installed if available
00:04:29:GPU Enabled:   enabled
00:04:29:Parallelism:   0
00:04:29:Accelerator:
00:04:29:Half Precis.:  enable
00:04:29:Runtime:       python3.7
00:04:29:Runtime Loc:   Shared
00:04:29:FilePath:      detect_adapter.py
00:04:29:Pre installed: False
00:04:29:Start pause:   1 sec
00:04:29:LogVerbosity:
00:04:29:Valid:         True
00:04:29:Environment Variables
00:04:29:APPDIR                 = %CURRENT_MODULE_PATH%
00:04:29:CPAI_MODULE_ENABLE_GPU = True
00:04:29:CUSTOM_MODELS_DIR      = %CURRENT_MODULE_PATH%/custom-models
00:04:29:MODELS_DIR             = %CURRENT_MODULE_PATH%/assets
00:04:29:MODEL_SIZE             = Medium
00:04:29:USE_CUDA               = True
00:04:29:YOLOv5_AUTOINSTALL     = false
00:04:29:YOLOv5_VERBOSE         = false
00:04:29:
00:04:29:Started Object Detection (YOLOv5 6.2) module
00:04:37:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...8831ed) took 2760ms
00:04:37:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...6e599a) took 2776ms
00:04:37:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...98383f) took 3033ms
00:04:38:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...fd42e6) took 3129ms
00:04:38:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...c797ab) took 3186ms
00:04:38:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...35b568) took 3204ms
00:04:38:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...7ddd23) took 3208ms
00:04:49:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...60e08e) took 788ms
00:04:49:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...d57faa) took 832ms
00:04:49:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...8f5dd1) took 724ms
00:04:49:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...539eef) took 546ms
00:07:28:Object Detection (YOLOv5 6.2): Rec'd request for Object Detection (YOLOv5 6.2) command 'detect' (...84f6d2) took 715ms


Module 'Object Detection (YOLOv5 6.2)' 1.7.1 (ID: ObjectDetectionYolo)
Module Path:   <root>\modules\ObjectDetectionYolo
AutoStart:     True
Queue:         objectdetection_queue
Platforms:     all
GPU Libraries: installed if available
GPU Enabled:   enabled
Parallelism:   0
Accelerator:   
Half Precis.:  enable
Runtime:       python3.7
Runtime Loc:   Shared
FilePath:      detect_adapter.py
Pre installed: False
Start pause:   1 sec
LogVerbosity:  
Valid:         True
Environment Variables
   APPDIR                 = <root>\modules\ObjectDetectionYolo
   CPAI_MODULE_ENABLE_GPU = True
   CUSTOM_MODELS_DIR      = <root>\modules\ObjectDetectionYolo\custom-models
   MODELS_DIR             = <root>\modules\ObjectDetectionYolo\assets
   MODEL_SIZE             = Medium
   USE_CUDA               = True
   YOLOv5_AUTOINSTALL     = false
   YOLOv5_VERBOSE         = false
Started:      06 Dec 2023 12:06:26 AM Eastern Standard Time
LastSeen:     06 Dec 2023 12:29:30 AM Eastern Standard Time
Status:       Started
Processed:    130
Provider:     
CanUseGPU:    False
HardwareType: CPU



Installation Log
2023-12-05 23:32:06:              Installing CodeProject.AI Analysis Module                
2023-12-05 23:32:06: ========================================================================
2023-12-05 23:32:06:                    CodeProject.AI Installer                             
2023-12-05 23:32:06: ========================================================================
2023-12-05 23:32:06: General CodeProject.AI setup                                          
2023-12-05 23:32:07: Creating Directories...Done
2023-12-05 23:32:07: GPU support                                                           
2023-12-05 23:32:07: CUDA Present...No
2023-12-05 23:32:07: ROCm Present...False
2023-12-05 23:32:07: Installing module ObjectDetectionYolo 1.7.1                           
2023-12-05 23:32:07: Installing Python 3.7
2023-12-05 23:32:07: Python 3.7 is already installed
2023-12-05 23:32:07: Creating Virtual Environment (Shared)...Virtual Environment already present
2023-12-05 23:32:07: Confirming we have Python 3.7 in our virtual environment...present
2023-12-05 23:32:13: Downloading Standard YOLO models...Expanding...Done.
2023-12-05 23:32:13: Copying contents of models-yolo5-pt.zip to assets...done
2023-12-05 23:32:13: Cleaning up...done
2023-12-05 23:32:21: Downloading Custom YOLO models...Expanding...Done.
2023-12-05 23:32:21: Copying contents of custom-models-yolo5-pt.zip to custom-models...done
2023-12-05 23:32:21: Cleaning up...done
2023-12-05 23:32:21: Installing Python packages for ObjectDetectionYolo
2023-12-05 23:32:21: nstalling GPU-enabled libraries: If available
2023-12-05 23:32:22: Ensuring Python package manager (pip) is installed...Done
2023-12-05 23:32:25: Ensuring Python package manager (pip) is up to date...Done
2023-12-05 23:32:25: Python packages specified by requirements.txt
2023-12-05 23:32:26:   - Installing urllib3, the HTTP client for Python...Already installed
2023-12-05 23:32:27:   - Installing Pandas, a data analysis / data manipulation tool...Already installed
2023-12-05 23:32:28:   - Installing CoreMLTools, for working with .mlmodel format models...Already installed
2023-12-05 23:32:29:   - Installing OpenCV, the Open source Computer Vision library...Already installed
2023-12-05 23:32:30:   - Installing Pillow, a Python Image Library...Already installed
2023-12-05 23:32:31:   - Installing SciPy, a library for mathematics, science, and engineering...Already installed
2023-12-05 23:32:32:   - Installing PyYAML, a library for reading configuration files...Already installed
2023-12-05 23:32:33:   - Installing PyTorch, for Tensor computation and Deep neural networks...Already installed
2023-12-05 23:32:34:   - Installing TorchVision, for Computer Vision based AI...Already installed
2023-12-05 23:34:28:   - Installing Ultralytics YoloV5 package for object detection in images...(âœ"️ checked) Done
2023-12-05 23:34:29:   - Installing Seaborn, a data visualization library based on matplotlib...Already installed
2023-12-05 23:34:29: Installing Python packages for the CodeProject.AI Server SDK
2023-12-05 23:34:30: Ensuring Python package manager (pip) is installed...Done
2023-12-05 23:34:33: Ensuring Python package manager (pip) is up to date...Done
2023-12-05 23:34:33: Python packages specified by requirements.txt
2023-12-05 23:34:35:   - Installing Pillow, a Python Image Library...Already installed
2023-12-05 23:34:36:   - Installing Charset normalizer...Already installed
2023-12-05 23:34:37:   - Installing aiohttp, the Async IO HTTP library...Already installed
2023-12-05 23:34:38:   - Installing aiofiles, the Async IO Files library...Already installed
2023-12-05 23:34:39:   - Installing py-cpuinfo to allow us to query CPU info...Already installed
2023-12-05 23:34:41:   - Installing Requests, the HTTP library...Already installed
2023-12-05 23:34:41: Setup complete                                                        
Installer exited with code 0

QuestionWatch Folders? Pin
Michael Kammes5-Dec-23 13:29
Michael Kammes5-Dec-23 13:29 
QuestionFound the issue Pin
fotingo5-Dec-23 12:25
fotingo5-Dec-23 12:25 
QuestionObject detection diminishes over time and eventually stops Pin
Franc 159366845-Dec-23 10:53
Franc 159366845-Dec-23 10:53 
AnswerRe: Object detection diminishes over time and eventually stops Pin
Sean Ewington14hrs 36mins ago
staffSean Ewington14hrs 36mins ago 
QuestionWhich Yolo Version? Pin
fotingo5-Dec-23 7:16
fotingo5-Dec-23 7:16 
AnswerRe: Which Yolo Version? Pin
Chris Maunder5-Dec-23 7:34
cofounderChris Maunder5-Dec-23 7:34 
GeneralRe: Which Yolo Version? Pin
Mike Lud5-Dec-23 7:37
communityengineerMike Lud5-Dec-23 7:37 
GeneralRe: Which Yolo Version? Pin
Chris Maunder5-Dec-23 7:45
cofounderChris Maunder5-Dec-23 7:45 
GeneralRe: Which Yolo Version? Pin
fotingo5-Dec-23 7:39
fotingo5-Dec-23 7:39 

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

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