Skip to content

Commit

Permalink
Add utils for pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
alexuvarovskii committed Oct 7, 2024
1 parent 6b325c8 commit 0a482ee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions training/src/infer_model_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from inference import inference_model
import argparse


def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("--model_path", type=str, required=True)
parser.add_argument("--data_path", type=str, required=True)
parser.add_argument("--ann_save_path", type=str, required=True)
parser.add_argument("--conf_thresh", type=float, default=0.2)
return parser.parse_args()

if __name__ == "__main__":
args = parse_args()
inference_model(args.model_path, args.data_path, args.ann_save_path)

0 comments on commit 0a482ee

Please sign in to comment.