ultralytics 8.0.186 add Open Images V7 models (#5070)

This commit is contained in:
Glenn Jocher 2023-09-25 01:15:26 +02:00 committed by GitHub
parent a9033118cf
commit eb976f5ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 152 additions and 96 deletions

View file

@ -1,23 +1,17 @@
# Ultralytics YOLO 🚀, AGPL-3.0 license
from ultralytics.utils import LOGGER, SETTINGS, TESTS_RUNNING
from ultralytics.utils import LOGGER, SETTINGS, TESTS_RUNNING, checks
try:
assert not TESTS_RUNNING # do not log pytest
assert SETTINGS['dvc'] is True # verify integration is enabled
import dvclive
assert hasattr(dvclive, '__version__') # verify package is not directory
assert checks.check_version('dvclive', '2.11.0', verbose=True)
import os
import re
from pathlib import Path
from ultralytics.utils.checks import check_version
if not check_version(dvclive.__version__, '2.11.0', name='dvclive', verbose=True):
dvclive = None
# DVCLive logger instance
live = None
_processed_plots = {}