ultralytics 8.0.146 fix SettingsManager un-needed write ops (#4101)

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
This commit is contained in:
Glenn Jocher
2023-08-01 20:26:10 +02:00
committed by GitHub
parent b507e3a032
commit c3c27b019a
3 changed files with 5 additions and 28 deletions

View File

@ -253,7 +253,7 @@ def handle_yolo_settings(args: List[str]) -> None:
SETTINGS_YAML.unlink() # delete the settings file
SETTINGS.reset() # create new settings
LOGGER.info('Settings reset successfully') # inform the user that settings have been reset
else:
else: # save a new setting
new = dict(parse_key_value_pair(a) for a in args)
check_dict_alignment(SETTINGS, new)
SETTINGS.update(new)