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

#1012 in Machine learning

Download history 13/week @ 2024-07-15 14/week @ 2024-07-29 6/week @ 2024-08-05 259/week @ 2024-08-12 8/week @ 2024-08-19 12/week @ 2024-08-26 4/week @ 2024-09-02 10/week @ 2024-09-09 178/week @ 2024-09-16 90/week @ 2024-09-23 101/week @ 2024-09-30 34/week @ 2024-10-07 68/week @ 2024-10-14 33/week @ 2024-10-21 46/week @ 2024-10-28

191 downloads per month
Used in 2 crates (via kalosm-vision)

MIT/Apache

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–32MB
~563K SLoC