6 releases (3 breaking)

0.4.0 Feb 9, 2025
0.3.2 Aug 14, 2024
0.2.1 Feb 28, 2024
0.1.0 Dec 16, 2023

#911 in Machine learning

Download history 23/week @ 2024-11-03 21/week @ 2024-11-10 52/week @ 2024-11-17 38/week @ 2024-11-24 46/week @ 2024-12-01 71/week @ 2024-12-08 56/week @ 2024-12-15 16/week @ 2024-12-22 31/week @ 2024-12-29 39/week @ 2025-01-05 39/week @ 2025-01-12 39/week @ 2025-01-19 23/week @ 2025-01-26 43/week @ 2025-02-02 205/week @ 2025-02-09 41/week @ 2025-02-16

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

MIT/Apache

33KB
224 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
~587K SLoC