mirror of
https://github.com/mii443/usls.git
synced 2025-08-22 23:55:38 +00:00
Add YOLOv8-OBB and some bug fixes (#9)
* Add YOLOv8-Obb & Refactor outputs * Update README.md
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
use usls::{models::RTDETR, Annotator, DataLoader, Options, COCO_NAMES_80};
|
||||
use usls::{coco, models::RTDETR, Annotator, DataLoader, Options};
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// build model
|
||||
let options = Options::default()
|
||||
.with_model("../models/rtdetr-l-f16.onnx")
|
||||
.with_confs(&[0.4, 0.15]) // person: 0.4, others: 0.15
|
||||
.with_names(&COCO_NAMES_80);
|
||||
.with_names(&coco::NAMES_80);
|
||||
let mut model = RTDETR::new(&options)?;
|
||||
|
||||
// load image
|
||||
|
Reference in New Issue
Block a user