Update script headers (#4163)

* Update download script headers

* cleanup

* bug fix attempt

* bug fix attempt2

* bug fix attempt3

* cleanup
This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-07-26 15:23:33 +02:00
1 parent f8e11483df
commit 0ad6301c96
9 files changed
+36 -32

No files matched your search

+1 -1
View File
@@ -909,7 +909,7 @@ def dataset_stats(path='coco128.yaml', autodownload=False, verbose=False):
return False, None, path
zipped, data_dir, yaml_path = unzip(Path(path))
with open(check_file(yaml_path)) as f:
with open(check_file(yaml_path), encoding='ascii', errors='ignore') as f:
data = yaml.safe_load(f) # data dict
if zipped:
data['path'] = data_dir # TODO: should this be dir.resolve()?