Predictor support (#65)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Laughing-q <1185102784@qq.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
479992093c
commit
e6737f1207
22 changed files with 916 additions and 48 deletions
|
|
@ -39,9 +39,9 @@ def cli(cfg):
|
|||
module_function = module_file.train
|
||||
elif cfg.mode.lower() == "val":
|
||||
module_function = module_file.val
|
||||
elif cfg.mode.lower() == "infer":
|
||||
module_function = module_file.infer
|
||||
elif cfg.mode.lower() == "predict":
|
||||
module_function = module_file.predict
|
||||
|
||||
if not module_function:
|
||||
raise Exception("mode not recognized. Choices are `'train', 'val', 'infer'`")
|
||||
raise Exception("mode not recognized. Choices are `'train', 'val', 'predict'`")
|
||||
module_function(cfg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue