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:
parent
20fe708f31
commit
bdc6cd4d8b
18 changed files with 86 additions and 46 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue