Files
usls/examples/fastsam/README.md
jamjamjon af934086bb Initial
2024-03-29 15:54:24 +08:00

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

    FastSAM-s-dyn-f16

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

Results