Update HUB repo to main branch (#4549)

Co-authored-by: Yonghye Kwon <developer.0hye@gmail.com>
Co-authored-by: andresinsitu <andres.rodriguez@ingenieriainsitu.com>
This commit is contained in:
Glenn Jocher 2023-08-24 15:15:42 +02:00 committed by GitHub
parent 2bcee56e70
commit b638c4ed9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ For example, if your dataset is called "coco8", as our [COCO8](https://docs.ultr
zip -r coco8.zip coco8 zip -r coco8.zip coco8
``` ```
You can download our [COCO8](https://github.com/ultralytics/hub/blob/master/example_datasets/coco8.zip) example dataset and unzip it to see exactly how to structure your dataset. You can download our [COCO8](https://github.com/ultralytics/hub/blob/main/example_datasets/coco8.zip) example dataset and unzip it to see exactly how to structure your dataset.
<p align="center"> <p align="center">
<img src="https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/datasets/hub_upload_dataset_1.jpg" alt="COCO8 Dataset Structure" width="80%" /> <img src="https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/datasets/hub_upload_dataset_1.jpg" alt="COCO8 Dataset Structure" width="80%" />

View File

@ -275,7 +275,7 @@ def test_data_utils():
# from ultralytics.utils.files import WorkingDirectory # from ultralytics.utils.files import WorkingDirectory
# with WorkingDirectory(ROOT.parent / 'tests'): # with WorkingDirectory(ROOT.parent / 'tests'):
download('https://github.com/ultralytics/hub/raw/master/example_datasets/coco8.zip', unzip=False) download('https://github.com/ultralytics/hub/raw/main/example_datasets/coco8.zip', unzip=False)
shutil.move('coco8.zip', TMP) shutil.move('coco8.zip', TMP)
stats = HUBDatasetStats(TMP / 'coco8.zip', task='detect') stats = HUBDatasetStats(TMP / 'coco8.zip', task='detect')
stats.get_json(save=True) stats.get_json(save=True)

View File

@ -373,6 +373,7 @@ class HUBDatasetStats:
autodownload (bool): Attempt to download dataset if not found locally. Default is False. autodownload (bool): Attempt to download dataset if not found locally. Default is False.
Example: Example:
Download *.zip files from i.e. https://github.com/ultralytics/hub/raw/main/example_datasets/coco8.zip.
```python ```python
from ultralytics.data.utils import HUBDatasetStats from ultralytics.data.utils import HUBDatasetStats