mirror of
https://github.com/mii443/usls.git
synced 2025-08-22 15:45:41 +00:00
Add YOLOv8-OBB and some bug fixes (#9)
* Add YOLOv8-Obb & Refactor outputs * Update README.md
This commit is contained in:
@ -15,4 +15,4 @@ cargo run -r --example rtmo
|
||||
|
||||
## Results
|
||||
|
||||

|
||||

|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 242 KiB |
BIN
examples/rtmo/demo.png
Normal file
BIN
examples/rtmo/demo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 455 KiB |
@ -1,10 +1,10 @@
|
||||
use usls::{models::RTMO, Annotator, DataLoader, Options, COCO_SKELETON_17};
|
||||
use usls::{coco, models::RTMO, Annotator, DataLoader, Options};
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// build model
|
||||
let options = Options::default()
|
||||
.with_model("../rtmo-l-dyn-f16.onnx")
|
||||
.with_i00((1, 2, 8).into())
|
||||
.with_model("../rtmo-s-dyn.onnx")
|
||||
.with_i00((1, 1, 8).into())
|
||||
.with_nk(17)
|
||||
.with_confs(&[0.3])
|
||||
.with_kconfs(&[0.5]);
|
||||
@ -19,7 +19,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// // annotate
|
||||
let annotator = Annotator::default()
|
||||
.with_saveout("RTMO")
|
||||
.with_skeletons(&COCO_SKELETON_17);
|
||||
.with_skeletons(&coco::SKELETONS_16);
|
||||
annotator.annotate(&x, &y);
|
||||
|
||||
Ok(())
|
||||
|
Reference in New Issue
Block a user