-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/master' into onnx_yolov9
- Loading branch information
Showing
5 changed files
with
120 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
extern crate kesa; | ||
use kesa::backends::compute_backends::ComputeBackendType; | ||
use kesa::backends::onnx_backend::{init_onnx_backend, load_onnx_model}; | ||
use anyhow::{Result, Error}; | ||
use clap::{ArgAction, Parser,Args }; | ||
use kesa::fileutils::get_all_images; | ||
|
||
|
||
#[derive(Parser, Debug)] | ||
struct CliArguments { | ||
#[arg(long, required=true)] | ||
weights: String, | ||
|
||
#[arg(long, required=true)] | ||
folder: String | ||
} | ||
|
||
|
||
fn main() -> Result<(), Error> { | ||
let args = CliArguments::parse(); | ||
let all_imgs = get_all_images(&args.folder); | ||
|
||
|
||
let _init = init_onnx_backend()?; | ||
let load_model = load_onnx_model(&args.weights, all_imgs[0].to_owned().to_str().unwrap(), false, None); | ||
println!("LOADED MODEL : {:#?}", load_model); | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
names: | ||
- 10C | ||
- 10D | ||
- 10H | ||
- 10S | ||
- 2C | ||
- 2D | ||
- 2H | ||
- 2S | ||
- 3C | ||
- 3D | ||
- 3H | ||
- 3S | ||
- 4C | ||
- 4D | ||
- 4H | ||
- 4S | ||
- 5C | ||
- 5D | ||
- 5H | ||
- 5S | ||
- 6C | ||
- 6D | ||
- 6H | ||
- 6S | ||
- 7C | ||
- 7D | ||
- 7H | ||
- 7S | ||
- 8C | ||
- 8D | ||
- 8H | ||
- 8S | ||
- 9C | ||
- 9D | ||
- 9H | ||
- 9S | ||
- AC | ||
- AD | ||
- AH | ||
- AS | ||
- JC | ||
- JD | ||
- JH | ||
- JS | ||
- KC | ||
- KD | ||
- KH | ||
- KS | ||
- QC | ||
- QD | ||
- QH | ||
- QS | ||
nc: 52 | ||
train: ../export_l2y_test/train/images | ||
val: ../export_l2y_test/val/images | ||
test: ../export_l2y_test/test/images | ||
model_version: yolov9 |