Fix YAML model size parsing bug (#9447)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/9448/head^2
Glenn Jocher 10 months ago committed by GitHub
parent e9187c1296
commit aa756069d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ultralytics/utils/checks.py

@ -500,7 +500,7 @@ def check_file(file, suffix="", download=True, hard=True):
raise FileNotFoundError(f"'{file}' does not exist")
elif len(files) > 1 and hard:
raise FileNotFoundError(f"Multiple files match '{file}', specify exact path: {files}")
return files[0] if len(files) else [] if hard else file # return file
return files[0] if len(files) else [] # return file
def check_yaml(file, suffix=(".yaml", ".yml"), hard=True):

Loading…
Cancel
Save