Add package name to YOLO checks errors (#16770)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
5dcaa0aa06
commit
28eb65694c
2 changed files with 2 additions and 2 deletions
|
|
@ -685,7 +685,7 @@ def create_synthetic_coco_dataset():
|
||||||
# Read image filenames from label list file
|
# Read image filenames from label list file
|
||||||
label_list_file = dir / f"{subset}.txt"
|
label_list_file = dir / f"{subset}.txt"
|
||||||
if label_list_file.exists():
|
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]
|
image_files = [dir / line.strip() for line in f]
|
||||||
|
|
||||||
# Submit all tasks
|
# Submit all tasks
|
||||||
|
|
|
||||||
|
|
@ -619,7 +619,7 @@ def collect_system_info():
|
||||||
for r in parse_requirements(package="ultralytics"):
|
for r in parse_requirements(package="ultralytics"):
|
||||||
try:
|
try:
|
||||||
current = metadata.version(r.name)
|
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:
|
except metadata.PackageNotFoundError:
|
||||||
current = "(not installed)"
|
current = "(not installed)"
|
||||||
is_met = "❌ "
|
is_met = "❌ "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue