ultralytics 8.0.37 add TFLite metadata in AutoBackend (#953)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com>
Co-authored-by: Yonghye Kwon <developer.0hye@gmail.com>
Co-authored-by: Aarni Koskela <akx@iki.fi>
This commit is contained in:
Glenn Jocher 2023-02-14 14:28:23 +04:00 committed by GitHub
parent 20fe708f31
commit bdc6cd4d8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 86 additions and 46 deletions

View file

@ -221,11 +221,10 @@ def is_jupyter():
Returns:
bool: True if running inside a Jupyter Notebook, False otherwise.
"""
try:
with contextlib.suppress(Exception):
from IPython import get_ipython
return get_ipython() is not None
except ImportError:
return False
return False
def is_docker() -> bool:
@ -287,11 +286,9 @@ def is_pytest_running():
Returns:
(bool): True if pytest is running, False otherwise.
"""
try:
import sys
with contextlib.suppress(Exception):
return "pytest" in sys.modules
except ImportError:
return False
return False
def is_github_actions_ci() -> bool: