* Update imageproc crates * Add top-p method for sampling * Add SVTR for text recognition & bug fix |
||
|---|---|---|
| .. | ||
| README.md | ||
| demo.jpg | ||
| main.rs | ||
README.md
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
