C++ library for ONNX-based offline AI model execution
Top 53.9% on sourcepulse
This C++ library provides a pure C++ implementation of AI models like Stable Diffusion (1.5 and XL), ControlNet, Midas, HED, and OpenPose. It targets developers of real-time graphics applications and games, offering simplified deployment and integration by eliminating Python dependencies and running the entire generation process in a single executable.
How It Works
The library leverages ONNX models executed via the ONNX Runtime, supporting various execution providers like CUDA, TensorRT, and DirectML. This approach allows for cross-platform compatibility and hardware acceleration. It integrates feature extractors (OpenPose, MiDAS, HED) to guide Stable Diffusion generation via ControlNet, enabling precise control over output based on pose, depth, or edge maps.
Quick Start & Requirements
Axodox.Common
and Axodox.MachineLearning
into Visual Studio C++ projects (Desktop/UWP).build_nuget.ps1
or build from Visual Studio. Set AxodoxMachineLearning-Location
environment variable to point to local build for development.Highlighted Details
Maintenance & Community
The project is maintained by axodox. Further community or roadmap information is not detailed in the README.
Licensing & Compatibility
Limitations & Caveats
The current codebase and NuGet packages are Windows-specific, though porting to other platforms is stated as feasible with minimal effort. The library is x64 only.
2 months ago
1 day