C++ Machine Learning

Open-source C++ projects categorized as Machine Learning

Top 23 C++ Machine Learning Projects

  • tensorflow

    An Open Source Machine Learning Framework for Everyone

    Project mention: Anyone attempted to convert stablediffusion tensorflow to tf lite? | reddit.com/r/tensorflow | 2022-11-20

    ``` Downloading data from https://github.com/openai/CLIP/blob/main/clip/bpe\_simple\_vocab\_16e6.txt.gz?raw=true 1356917/1356917 [==============================] - 0s 0us/step WARNING:tensorflow:From /usr/local/lib/python3.7/dist-packages/tensorflow/python/autograph/pyct/static_analysis/liveness.py:83: Analyzer.lamba_check (from tensorflow.python.autograph.pyct.static_analysis.liveness) is deprecated and will be removed after 2023-09-23. Instructions for updating: Lambda fuctions will be no more assumed to be used in the statement where they are used, or at least in the same block. https://github.com/tensorflow/tensorflow/issues/56089 By using this model checkpoint, you acknowledge that its usage is subject to the terms of the CreativeML Open RAIL-M license at https://raw.githubusercontent.com/CompVis/stable-diffusion/main/LICENSE Downloading data from https://huggingface.co/fchollet/stable-diffusion/resolve/main/kcv\_encoder.h5 492466864/492466864 [==============================] - 7s 0us/step Downloading data from https://huggingface.co/fchollet/stable-diffusion/resolve/main/kcv\_diffusion\_model.h5 3439090152/3439090152 [==============================] - 85s 0us/step Downloading data from https://huggingface.co/fchollet/stable-diffusion/resolve/main/kcv\_decoder.h5 198180272/198180272 [==============================] - 3s 0us/step ``` I attempted to save the model from Keras_cv but it throws the same error.

  • Pytorch

    Tensors and Dynamic neural networks in Python with strong GPU acceleration

    Project mention: Running Serverless ML on AWS Lambda | dev.to | 2022-11-21

    Then we add the 🤗 Hugging Face transformers library mentioned above, specifying it should also install the PyTorch ML framework it will use under the hood.

  • Zigi

    The context switching struggle is real. Zigi makes context switching a thing of the past. It monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack!

  • tesseract-ocr

    Tesseract Open Source OCR Engine (main repository)

    Project mention: Is there "Text Extractor" tool (from Windows Powertoys) equivalent in linux? | reddit.com/r/linuxquestions | 2022-11-14
  • Caffe

    Caffe: a fast open framework for deep learning.

    Project mention: German ad: "Artificial intelligence: the 4 most used drinks will be placed on the main screen" | reddit.com/r/ProgrammerHumor | 2022-09-20
  • openpose

    OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation

    Project mention: How to get rotation (yaw/pitch/roll) from face detection keypoints? | reddit.com/r/tensorflow | 2022-10-31
  • xgboost

    Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow

    Project mention: XGBoost Save and Load Error | reddit.com/r/datascience | 2022-11-14

    You can find the problem outlined here: https://github.com/dmlc/xgboost/issues/5826. u/hcho3 diagnosed the problem and corrected it as of XGB version 1.2.0.

  • C-Plus-Plus

    Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.

    Project mention: What does @ mean ? | reddit.com/r/cpp_questions | 2022-07-30

    in this repo https://github.com/TheAlgorithms/C-Plus-Plus most of the algorithms using @param or @returns and so on. i cant find any documentation on internet about @.Is this some built-in thing in c++ or the project defined like that. Can anybody help me please ?

  • Sonar

    Free webinar: The Power of Clean C++. Are you ready to take your C++ code to the next level? Join Sonar on December 7th for our live webinar as we discuss how to get your code clean - and stay clean - with minimal effort and without being overloaded with warnings. Register now!

  • DeepSpeech

    DeepSpeech is an open source embedded (offline, on-device) speech-to-text engine which can run in real time on devices ranging from a Raspberry Pi 4 to high power GPU servers.

    Project mention: How can this error be fixed? | reddit.com/r/learnpython | 2022-10-26

    git clone --branch v0.9.3 https://github.com/mozilla/DeepSpeech

  • mxnet

    Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more

  • mediapipe

    Cross-platform, customizable ML solutions for live and streaming media.

    Project mention: Consistent Animation Test with Textual Inversion | reddit.com/r/StableDiffusion | 2022-10-19

    It might be kind of insane, but if you have the programming ability in theory you might be able to use mediapipe to calculate a per frame face mesh. Then store the mesh oriented bounding box and for each frame output a transformed image such that all the faces overlap. Then feed the new images into Stable Diffusion and feed that image into an inverse transform and use that final image to generate the video. Essentially this would remove as much of the changes over time as possible from the face. Should make it more temporally consistent as the transforms will remove the back and forth movement issues.

  • PaddlePaddle

    PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)

    Project mention: Baidu AI Researchers Introduce SE-MoE That Proposes Elastic MoE Training With 2D Prefetch And Fusion Communication Over Hierarchical Storage | reddit.com/r/artificial | 2022-05-29

    Continue reading | Check out the paper, and Github

  • CNTK

    Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit

    Project mention: Worldwide building footprints derived from satellite imagery from Microsoft | reddit.com/r/gis | 2022-05-20
  • LightGBM

    A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.

    Project mention: Use whatever is best for the problem, but still | reddit.com/r/datascience | 2022-08-09

    LGBM doesn't do RF well, but it's easy to manually bag single LGBM trees.

  • Dlib

    A toolkit for making real world machine learning and data analysis applications in C++

    Project mention: Flutter OpenCV and dlib for face detector & recognition | reddit.com/r/FlutterDev | 2022-09-10

    The plugin uses dlib library with a very fast HOG detector for both face recognition and detector following the relative examples.

  • turicreate

    Turi Create simplifies the development of custom machine learning models.

    Project mention: Mac Studio for Deep Learning | reddit.com/r/MacStudio | 2022-10-02

    It depends. What kind of ML will you be working with? Apple's neural engine doesn't have an SDK, but they do have https://github.com/apple/turicreate which talks to CoreML. I've been thinking of getting an Mac Studio Ultra and have been researching whether this would be a good investment considering the advances in hardware lately, as well as Apple's release schedule. Been following Tenstorrent for news about their PCIe Gen 4 cards, too. In any case my wallet is going to be hurting soon. Also, have you checked this out? https://machinelearning.apple.com/research/neural-engine-transformers

  • vowpal_wabbit

    Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learning.

    Project mention: Microsoft Reinforcement Learning Open Source Fest 2022 – Native CSV Parser | dev.to | 2022-08-13

    My project here at the Reinforcement Learning Open Source Fest 2022 is to add the native CSV parsing feature for the Vowpal Wabbit.

  • onnxruntime

    ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator

    Project mention: [P] BetterTransformer: PyTorch-native free-lunch speedups for Transformer-based models | reddit.com/r/MachineLearning | 2022-11-22

    Are you doing dynamic or static quantization? Static quantization can be tricky, usually dynamic quantization is more straightforward. Also, if you deal with encoder-decoder models, it could be that quantization error accumulates in the decoder. For the slowdowns you are seeing... there could be many reasons. The first thing you should check is whether running through ONNX Runtime / OpenVino is at least on par (if not better) than PyTorch eager. If not, there may be an issue at a higher level (e.g. here). If yes, it could be your CPU does not support AVX VNNI instructions for example. Also depending on batch size, sequence length, the speedups from quantization may greatly vary.

  • Open3D

    Open3D: A Modern Library for 3D Data Processing

    Project mention: CD PROJEKT RED announce The Witcher Remake in Unreal Engine 5 | reddit.com/r/linux_gaming | 2022-10-26

    There's also Open3D (O3D) the point cloud library... http://www.open3d.org/

  • MNN

    MNN is a blazing fast, lightweight deep learning framework, battle-tested by business-critical use cases in Alibaba

    Project mention: What’s New in TensorFlow 2.10? | news.ycombinator.com | 2022-09-06

    There are a ton of mobile deployment options that support PyTorch+TF models. It's hard to argue TFLite is the best.


  • jetson-inference

    Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.

    Project mention: help with project involving object detection and tracking with camera | reddit.com/r/JetsonNano | 2022-06-18
  • serving

    A flexible, high-performance serving system for machine learning models

    Project mention: Should I wait for the M2 Macbook Pro? | reddit.com/r/macbookpro | 2022-10-10

    We’re looking into that solution at the moment, the issue I’m referring to is related to this https://github.com/tensorflow/serving/issues/1948 we’ll know if the plug-in approach works for our uses soon but haven’t started looking into implementing it yet

  • tiny-cnn

    header only, dependency-free deep learning framework in C++14

    Project mention: Creating AI without python | reddit.com/r/artificial | 2022-05-07
  • interpret

    Fit interpretable models. Explain blackbox machine learning.

    Project mention: [D] Alternatives to the shap explainability package | reddit.com/r/MachineLearning | 2022-11-25

    Maybe InterpretML? It's developed and maintained by Microsoft Research and consolidates a lot of different explainability methods.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-11-25.

C++ Machine Learning related posts


What are some of the best open-source Machine Learning projects in C++? This list will help you:

Project Stars
1 tensorflow 169,277
2 Pytorch 60,444
3 tesseract-ocr 47,547
4 Caffe 32,983
5 openpose 25,421
6 xgboost 23,498
7 C-Plus-Plus 22,385
8 DeepSpeech 20,585
9 mxnet 20,174
10 mediapipe 19,523
11 PaddlePaddle 19,201
12 CNTK 17,255
13 LightGBM 14,420
14 Dlib 11,522
15 turicreate 10,846
16 vowpal_wabbit 8,076
17 onnxruntime 7,787
18 Open3D 7,739
19 MNN 7,166
20 jetson-inference 5,948
21 serving 5,702
22 tiny-cnn 5,614
23 interpret 5,127
Truly a developer’s best friend
Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.