Release 8.0.4 fixes (#256)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com> Co-authored-by: TechieG <35962141+gokulnath30@users.noreply.github.com> Co-authored-by: Parthiban Marimuthu <66585214+partheee@users.noreply.github.com>
This commit is contained in:
parent
f5dfd5be8b
commit
216cf2ddb6
18 changed files with 96 additions and 67 deletions
|
|
@ -6,6 +6,7 @@ from pathlib import Path
|
|||
import hydra
|
||||
|
||||
from ultralytics import hub, yolo
|
||||
from ultralytics.yolo.configs import get_config
|
||||
from ultralytics.yolo.utils import DEFAULT_CONFIG, LOGGER, colorstr
|
||||
|
||||
DIR = Path(__file__).parent
|
||||
|
|
@ -20,6 +21,9 @@ def cli(cfg):
|
|||
cfg (DictConfig): Configuration for the task and mode.
|
||||
"""
|
||||
# LOGGER.info(f"{colorstr(f'Ultralytics YOLO v{ultralytics.__version__}')}")
|
||||
if cfg.cfg:
|
||||
LOGGER.info(f"Overriding default config with {cfg.cfg}")
|
||||
cfg = get_config(cfg.cfg)
|
||||
task, mode = cfg.task.lower(), cfg.mode.lower()
|
||||
|
||||
# Special case for initializing the configuration
|
||||
|
|
@ -28,7 +32,7 @@ def cli(cfg):
|
|||
LOGGER.info(f"""
|
||||
{colorstr("YOLO:")} configuration saved to {Path.cwd() / DEFAULT_CONFIG.name}.
|
||||
To run experiments using custom configuration:
|
||||
yolo task='task' mode='mode' --config-name config_file.yaml
|
||||
yolo cfg=config_file.yaml
|
||||
""")
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue