rust-numpy
Dlib
Our great sponsors
rust-numpy | Dlib | |
---|---|---|
10 | 33 | |
1,015 | 13,011 | |
5.1% | - | |
6.7 | 7.9 | |
5 days ago | 1 day ago | |
Rust | C++ | |
BSD 2-clause "Simplified" License | Boost Software License 1.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-numpy
-
Numba: A High Performance Python Compiler
On the contrary, it can use and interface with numpy quite easily: https://github.com/PyO3/rust-numpy
- Carefully exploring Rust as a Python developer
-
Hmm
Once I figured out the right tools, it was easy. Its just "maturin new". It automatically converts python floats and strings. Numpy arrays come through as a special Pyarray type, that you need to unwrap, but that's just one builtin function. Using pyo3, maturin and numpy, https://github.com/PyO3/rust-numpy it's fairly easy.
-
Man, I love this language.
If I'm understanding this documentation correctly then you may be able to pass the numpy array directly with func(df['col'].to_numpy) which may save some conversion.
-
[D] Is Rust stable/mature enough to be used for production ML? Is making Rust-based python wrappers a good choice for performance heavy uses and internal ML dependencies in 2021?
Otherwise, though, Rust is an excellent choice. The many advantages of Rust (great package manager, memory safety, modern language features, ...) are already well documented so I won't repeat them here. Specifically for writing Python libraries, check out PyO3, maturin, and rust-numpy, which allow for seamless integration with the Python scientific computing ecosystem. Dockerizing/packaging is a non-issue, with the aforementioned libraries you can easily publish Rust libraries as pip packages or compile them from source as part of your docker build. We have several successful production deployments of Rust code at OpenAI, and I have personally found it to be a joy to work with.
-
Writing Rust libraries for the Python scientific computing ecosystem
Integration with numpy uses the rust-numpy crate: Example of method that accepts numpy arrays as arguments Example of a method that returns a numpy array to Python (this performs a copy, there ought to be a way to avoid it but the current implementation has been plenty fast for my use case so far)
-
Feasibility of Using a Python Image Super Resolution Library in My Rust App
This example maybe helpful.
-
Julia is the better language for extending Python
Given that it's via pyO3, you could even pass the numpy arrays using https://github.com/PyO3/rust-numpy and get ndarrays at the other side.
Same no copy, slightly more user friendly approach.
Further criticism of the actual approach - even if we didn't do zero copy, there's no preallocation for the vector despite the size being known upfront, and nested vectors are very slow by default.
So you could speed up the entire thing by passing it to ndarray, and then running a single call to sum over the 2D array you'd find at the other end. (https://docs.rs/ndarray/0.15.1/ndarray/struct.ArrayBase.html...)
-
Parsing PDF Documents in Rust
I believe converting between pandas Series (e.g. columns) and numpy ndarrays can be pretty cheap, right? Once they're in that format, you can use rust to work directly on the numpy memory buffer with rust-numpy. Otherwise, feather is a format designed for IPC of columnar data; pyarrow is in pandas (might be an optional dependency) and may be pretty quick for that, and rust has an arrow implementation too.
-
PyO3: Rust Bindings for the Python Interpreter
https://github.com/PyO3/rust-numpy
Dlib
- Modern Image Processing Algorithms Implementation in C
-
[Cpp] Une assez grande liste de bibliothèques graphiques C ++
dlib
-
32 years old. HRT in April or May. Things I can do to maximize results and what to expect.
The apparent gender estimates from photos are using dlib, and I really ought to get what I'm doing cleaned up in such a way that other people can use it easily.
-
What are some C++ projects with high quality code that I can read through?
I really like dlib's code https://github.com/davisking/dlib
-
C++ for machine learning
Additionally, C++ may be used for extremely high levels of optimization even for cloud-based ML. Dlib and Kaldi are C++ libraries used as dependencies in Python codebases for computer vision and audio processing, for example. So if your application requires you to customize any functions similar to those libraries, then you'll need C++ knowhow.
-
What programming language should I learn after C++ for Audio DSP?
If you know C++, you don't need anything else. Go and learn APIs for C++ libraries. If you're into DSP, why not study Dlib?.
-
Exponential vs linear progress?
The data is mostly in this spreadsheet. The apparently facial gender estimates are made with Dlib. The mental health assessments are from Beck's Depression Inventory and the Snaith-Hamilton Pleasure Scale. The graph is made with gnuplot.
-
Flutter OpenCV and dlib for face detector & recognition
The plugin uses dlib library with a very fast HOG detector for both face recognition and detector following the relative examples.
-
How long after starting HRT did facial recognition not recognize you?
The dlib facial recognition model thinks that I am now a distance of about 0.3 from where I started, which is far enough to start getting many false positive matches, but still within the design intent that different pictures of the same individual will be within 0.6 of each other.
-
Does hrt effect facial recognition software?
Dlib's face recognition module thinks that I am about 0.25 units away from where I started; its design intent is that distinct individuals will be 0.6 or more apart, although in practice other people start showing up around 0.3.
What are some alternatives?
RustPython - A Python Interpreter written in Rust
mlpack - mlpack: a fast, header-only C++ machine learning library
julia - The Julia Programming Language
Pytorch - Tensors and Dynamic neural networks in Python with strong GPU acceleration
polars - Dataframes powered by a multithreaded, vectorized query engine, written in Rust
Boost - Super-project for modularized Boost
rayon - Rayon: A data parallelism library for Rust
Face Recognition - The world's simplest facial recognition api for Python and the command line
image-super-resolution - 🔎 Super-scale your images and run experiments with Residual Dense and Adversarial Networks.
OpenCV - Open Source Computer Vision Library
PyO3 - Rust bindings for the Python interpreter
Caffe - Caffe: a fast open framework for deep learning.