From 55b313b167d2e65910058ca5710483c90a8208c4 Mon Sep 17 00:00:00 2001 From: Antonio Zarauz Moreno <87022369+hedrergudene@users.noreply.github.com> Date: Wed, 11 Jan 2023 12:43:02 +0100 Subject: [PATCH] Fix program exit (#254) --- ultralytics/yolo/configs/hydra_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultralytics/yolo/configs/hydra_patch.py b/ultralytics/yolo/configs/hydra_patch.py index d68d725..5d50f98 100644 --- a/ultralytics/yolo/configs/hydra_patch.py +++ b/ultralytics/yolo/configs/hydra_patch.py @@ -71,7 +71,7 @@ def check_config_mismatch(overrides, cfg): for option in mismatched: LOGGER.info(f"{colorstr(option)} is not a valid key. Similar keys: {get_close_matches(option, cfg, 3, 0.6)}") if mismatched: - exit() + sys.exit() hydra._internal.config_loader_impl.ConfigLoaderImpl._apply_overrides_to_config = override_config