Add package name to YOLO checks errors (#16770)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
pull/16772/head
Glenn Jocher 2 months ago committed by GitHub
parent 5dcaa0aa06
commit 28eb65694c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ultralytics/data/converter.py
  2. 2
      ultralytics/utils/checks.py

@ -685,7 +685,7 @@ def create_synthetic_coco_dataset():
# Read image filenames from label list file
label_list_file = dir / f"{subset}.txt"
if label_list_file.exists():
with open(label_list_file, "r") as f:
with open(label_list_file) as f:
image_files = [dir / line.strip() for line in f]
# Submit all tasks

@ -619,7 +619,7 @@ def collect_system_info():
for r in parse_requirements(package="ultralytics"):
try:
current = metadata.version(r.name)
is_met = "" if check_version(current, str(r.specifier), hard=True) else ""
is_met = "" if check_version(current, str(r.specifier), name=r.name, hard=True) else ""
except metadata.PackageNotFoundError:
current = "(not installed)"
is_met = ""

Loading…
Cancel
Save