Create Exporter() Class (#117)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
a9dc1637c2
commit
076d73cfaa
10 changed files with 531 additions and 540 deletions
|
|
@ -31,7 +31,7 @@ def cli(cfg):
|
|||
elif task == "classify":
|
||||
module = yolo.v8.classify
|
||||
elif task == "export":
|
||||
func = yolo.trainer.exporter.export_model
|
||||
func = yolo.engine.exporter.export
|
||||
else:
|
||||
raise SyntaxError("task not recognized. Choices are `'detect', 'segment', 'classify'`")
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ def cli(cfg):
|
|||
elif mode == "predict":
|
||||
func = module.predict
|
||||
elif mode == "export":
|
||||
func = yolo.trainer.exporter.export_model
|
||||
func = yolo.engine.exporter.export
|
||||
else:
|
||||
raise SyntaxError("mode not recognized. Choices are `'train', 'val', 'predict', 'export'`")
|
||||
func(cfg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue