3 unstable releases

0.2.1 Feb 28, 2024
0.2.0 Feb 18, 2024
0.1.0 Dec 16, 2023

#815 in Machine learning

Download history 152/week @ 2024-02-19 179/week @ 2024-02-26 18/week @ 2024-03-04 99/week @ 2024-03-11 18/week @ 2024-03-18 8/week @ 2024-03-25 53/week @ 2024-04-01 9/week @ 2024-04-22

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

MIT/Apache and LGPL-3.0

37KB
226 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

~39–52MB
~779K SLoC