Update check_file() (#3622)
* Update `check_file()` * Update datasets.py
This commit is contained in:
1 parent
4c5d9bff80
commit
7d3686a686
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user