Fix YAML model size parsing bug (#9447)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
e9187c1296
commit
aa756069d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue