Update check_file() (#3622)

* Update `check_file()`

* Update datasets.py
This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-06-15 13:21:04 +02:00
1 parent 4c5d9bff80
commit 7d3686a686
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1095,7 +1095,7 @@ def dataset_stats(path='coco128.yaml', autodownload=False, verbose=False):
autodownload: Attempt to download dataset if not found locally
verbose: Print stats dictionary
"""
with open(check_file(Path(path))) as f:
with open(check_file(path)) as f:
data = yaml.safe_load(f) # data dict
check_dataset(data, autodownload) # download dataset if missing
nc = data['nc'] # number of classes