5 unstable releases
0.3.2 | Aug 14, 2024 |
---|---|
0.3.0 | Aug 13, 2024 |
0.2.1 | Feb 28, 2024 |
0.2.0 | Feb 18, 2024 |
0.1.0 | Dec 16, 2023 |
#1018 in Machine learning
169 downloads per month
Used in 2 crates
(via kalosm-vision)
31KB
208 lines
Segment Anything RS
A rust wrapper for Segment Anything
Usage
use segment_anything_rs::*;
let model = SegmentAnything::builder().build().unwrap();
let image = image::open("examples/landscape.jpg").unwrap();
let images = model.segment_everything(image).unwrap();
for (i, img) in images.iter().enumerate() {
img.save(&format!("{}.png", i)).unwrap();
}
Dependencies
~17–33MB
~564K SLoC