Update MANIFEST.in (#4894)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Glenn Jocher 2023-09-15 01:32:10 +02:00 committed by GitHub
parent 32f7c522b5
commit daf16ecf31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 53 deletions

View file

@ -11,15 +11,12 @@ try:
import os
import re
from importlib.metadata import version
from pathlib import Path
import pkg_resources as pkg
from ultralytics.utils.checks import check_version
ver = version('dvclive')
if pkg.parse_version(ver) < pkg.parse_version('2.11.0'):
LOGGER.debug(f'DVCLive is detected but version {ver} is incompatible (>=2.11 required).')
dvclive = None # noqa: F811
if not check_version(dvclive.__version__, '2.11.0', name='dvclive', verbose=True):
dvclive = None
# DVCLive logger instance
live = None
@ -74,9 +71,7 @@ def on_pretrain_routine_start(trainer):
try:
global live
live = dvclive.Live(save_dvc_exp=True, cache_images=True)
LOGGER.info(
f'DVCLive is detected and auto logging is enabled (can be disabled in the {SETTINGS.file} with `dvc: false`).'
)
LOGGER.info("DVCLive is detected and auto logging is enabled (run 'yolo settings dvc=False' to disable).")
except Exception as e:
LOGGER.warning(f'WARNING ⚠️ DVCLive installed but not initialized correctly, not logging this run. {e}')