ultralytics 8.2.99 faster JSONDict settings (#16427)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
f5a60c6340
commit
43726d699f
7 changed files with 64 additions and 51 deletions
|
|
@ -19,7 +19,7 @@ from ultralytics.utils import (
|
|||
ROOT,
|
||||
RUNS_DIR,
|
||||
SETTINGS,
|
||||
SETTINGS_YAML,
|
||||
SETTINGS_FILE,
|
||||
TESTS_RUNNING,
|
||||
IterableSimpleNamespace,
|
||||
__version__,
|
||||
|
|
@ -532,7 +532,7 @@ def handle_yolo_settings(args: List[str]) -> None:
|
|||
try:
|
||||
if any(args):
|
||||
if args[0] == "reset":
|
||||
SETTINGS_YAML.unlink() # delete the settings file
|
||||
SETTINGS_FILE.unlink() # delete the settings file
|
||||
SETTINGS.reset() # create new settings
|
||||
LOGGER.info("Settings reset successfully") # inform the user that settings have been reset
|
||||
else: # save a new setting
|
||||
|
|
@ -540,8 +540,8 @@ def handle_yolo_settings(args: List[str]) -> None:
|
|||
check_dict_alignment(SETTINGS, new)
|
||||
SETTINGS.update(new)
|
||||
|
||||
LOGGER.info(f"💡 Learn about settings at {url}")
|
||||
yaml_print(SETTINGS_YAML) # print the current settings
|
||||
print(SETTINGS) # print the current settings
|
||||
LOGGER.info(f"💡 Learn more about Ultralytics Settings at {url}")
|
||||
except Exception as e:
|
||||
LOGGER.warning(f"WARNING ⚠️ settings error: '{e}'. Please see {url} for help.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue