mirror of
https://github.com/mii443/usls.git
synced 2025-08-22 15:45:41 +00:00
733 B
733 B
Quick Start
cargo run -r --example fastsam
Or you can manully
1.Donwload or export ONNX Model
-
Export
pip install -U ultralytics yolo export model=FastSAM-s.pt format=onnx simplify dynamic
-
Download
2. Specify the ONNX model path in main.rs
let options = Options::default()
.with_model("../models/FastSAM-s-dyn-f16.onnx") // <= modify this
.with_saveout("FastSAM")
.with_profile(false);
let mut model = YOLO::new(&options)?;
3. Then, run
cargo run -r --example fastsam