ultralytics 8.0.166 expand HUBDatasetStats to Classify tasks (#4635)
This commit is contained in:
parent
896da0c0a0
commit
52afadcb97
5 changed files with 67 additions and 37 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue