Fix program exit (#254)

main
Antonio Zarauz Moreno 2 years ago committed by GitHub
parent 53fa0f4550
commit 55b313b167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save