ImageNet names, classify inference, resume fixes (#712)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com>
This commit is contained in:
Glenn Jocher 2023-01-30 22:34:28 +01:00 committed by GitHub
parent aecd17d455
commit 522f1937ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1121 additions and 115 deletions

View file

@ -479,7 +479,7 @@ def set_sentry():
if SETTINGS['sync'] and \
not is_pytest_running() and \
not is_github_actions_ci() and \
(is_pip_package() or
((is_pip_package() and not is_git_dir()) or
(get_git_origin_url() == "https://github.com/ultralytics/ultralytics.git" and get_git_branch() == "main")):
import sentry_sdk # noqa
@ -493,6 +493,10 @@ def set_sentry():
before_send=before_send,
ignore_errors=[KeyboardInterrupt])
# Disable all sentry logging
for logger in "sentry_sdk", "sentry_sdk.errors":
logging.getLogger(logger).setLevel(logging.CRITICAL)
def get_settings(file=USER_CONFIG_DIR / 'settings.yaml', version='0.0.1'):
"""