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

Download history 2/week @ 2024-07-21 14/week @ 2024-07-28 5/week @ 2024-08-04 245/week @ 2024-08-11 22/week @ 2024-08-18 9/week @ 2024-08-25 8/week @ 2024-09-01 9/week @ 2024-09-08 173/week @ 2024-09-15 87/week @ 2024-09-22 100/week @ 2024-09-29 43/week @ 2024-10-06 64/week @ 2024-10-13 34/week @ 2024-10-20 46/week @ 2024-10-27 21/week @ 2024-11-03

169 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–33MB
~564K SLoC