Ruff format docstring Python code (#15792)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
c1882a4327
commit
d27664216b
63 changed files with 370 additions and 374 deletions
|
|
@ -136,11 +136,11 @@ def check_dataset(path: str, task: str) -> None:
|
|||
```python
|
||||
from ultralytics.hub import check_dataset
|
||||
|
||||
check_dataset('path/to/coco8.zip', task='detect') # detect dataset
|
||||
check_dataset('path/to/coco8-seg.zip', task='segment') # segment dataset
|
||||
check_dataset('path/to/coco8-pose.zip', task='pose') # pose dataset
|
||||
check_dataset('path/to/dota8.zip', task='obb') # OBB dataset
|
||||
check_dataset('path/to/imagenet10.zip', task='classify') # classification dataset
|
||||
check_dataset("path/to/coco8.zip", task="detect") # detect dataset
|
||||
check_dataset("path/to/coco8-seg.zip", task="segment") # segment dataset
|
||||
check_dataset("path/to/coco8-pose.zip", task="pose") # pose dataset
|
||||
check_dataset("path/to/dota8.zip", task="obb") # OBB dataset
|
||||
check_dataset("path/to/imagenet10.zip", task="classify") # classification dataset
|
||||
```
|
||||
"""
|
||||
HUBDatasetStats(path=path, task=task).get_json()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue