Add YOLOv8-OBB and some bug fixes (#9)

* Add YOLOv8-Obb & Refactor outputs

* Update README.md
This commit is contained in:
Jamjamjon
2024-04-21 17:06:58 +08:00
committed by GitHub
parent 91049fc18a
commit beda8ef803
109 changed files with 2542 additions and 1940 deletions

View File

@ -15,4 +15,4 @@ cargo run -r --example rtmo
## Results
![](./demo.jpg)
![](./demo.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 KiB

BIN
examples/rtmo/demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 KiB

View File

@ -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(())