ultralytics 8.0.166 expand HUBDatasetStats to Classify tasks (#4635)

This commit is contained in:
Glenn Jocher 2023-08-29 16:17:59 +02:00 committed by GitHub
parent 896da0c0a0
commit 52afadcb97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 37 deletions

View file

@ -277,7 +277,7 @@ def test_data_utils():
# from ultralytics.utils.files import WorkingDirectory
# with WorkingDirectory(ROOT.parent / 'tests'):
for task in 'detect', 'segment', 'pose':
for task in 'detect', 'segment', 'pose', 'classify':
file = Path(TASK2DATA[task]).with_suffix('.zip') # i.e. coco8.zip
download(f'https://github.com/ultralytics/hub/raw/main/example_datasets/{file}', unzip=False, dir=TMP)
stats = HUBDatasetStats(TMP / file, task=task)