|
|
@ -28,6 +28,7 @@ from ultralytics.utils import ( |
|
|
|
ONLINE, |
|
|
|
ONLINE, |
|
|
|
ROOT, |
|
|
|
ROOT, |
|
|
|
USER_CONFIG_DIR, |
|
|
|
USER_CONFIG_DIR, |
|
|
|
|
|
|
|
Retry, |
|
|
|
SimpleNamespace, |
|
|
|
SimpleNamespace, |
|
|
|
ThreadingLocked, |
|
|
|
ThreadingLocked, |
|
|
|
TryExcept, |
|
|
|
TryExcept, |
|
|
@ -390,6 +391,7 @@ def check_requirements(requirements=ROOT.parent / "requirements.txt", exclude=() |
|
|
|
try: |
|
|
|
try: |
|
|
|
t = time.time() |
|
|
|
t = time.time() |
|
|
|
assert is_online(), "AutoUpdate skipped (offline)" |
|
|
|
assert is_online(), "AutoUpdate skipped (offline)" |
|
|
|
|
|
|
|
with Retry(times=1, delay=1): # retry once on failure after 1 second |
|
|
|
LOGGER.info(subprocess.check_output(f"pip install --no-cache {s} {cmds}", shell=True).decode()) |
|
|
|
LOGGER.info(subprocess.check_output(f"pip install --no-cache {s} {cmds}", shell=True).decode()) |
|
|
|
dt = time.time() - t |
|
|
|
dt = time.time() - t |
|
|
|
LOGGER.info( |
|
|
|
LOGGER.info( |
|
|
|