diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 934864a..129413d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,8 +9,7 @@ on: branches: [main] workflow_dispatch: schedule: - - cron: '0 2 * * *' # runs every 24 hours, starting at 02:00 UTC - + - cron: "0 2 * * *" # runs every 24 hours, starting at 02:00 UTC jobs: Tests: @@ -19,14 +18,14 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ['3.11'] + python-version: ["3.11"] timeout-minutes: 60 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - cache: 'pip' # caching pip dependencies + cache: "pip" # caching pip dependencies - name: Install requirements run: | python -m pip install --upgrade pip wheel diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 91356ab..4f0e42c 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -6,9 +6,9 @@ name: Ultralytics Actions on: push: - branches: [main,master] + branches: [main, master] pull_request: - branches: [main,master] + branches: [main, master] jobs: format: @@ -17,7 +17,7 @@ jobs: - name: Run Ultralytics Formatting uses: ultralytics/actions@main with: - token: ${{ secrets.GITHUB_TOKEN }} # automatically generated + token: ${{ secrets.GITHUB_TOKEN }} # automatically generated python: true docstrings: true markdown: true diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index d00cb61..8259160 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -12,7 +12,7 @@ name: Check Broken links on: workflow_dispatch: schedule: - - cron: '0 0 * * *' # runs at 00:00 UTC every day + - cron: "0 0 * * *" # runs at 00:00 UTC every day jobs: Links: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 8748cd5..827281f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -3,7 +3,7 @@ name: Close stale issues on: schedule: - - cron: '0 0 * * *' # Runs at 00:00 UTC every day + - cron: "0 0 * * *" # Runs at 00:00 UTC every day jobs: stale: @@ -43,5 +43,5 @@ jobs: days-before-issue-close: 10 days-before-pr-stale: 90 days-before-pr-close: 30 - exempt-issue-labels: 'documentation,tutorial,TODO' - operations-per-run: 300 # The maximum number of operations per run, used to control rate limiting. + exempt-issue-labels: "documentation,tutorial,TODO" + operations-per-run: 300 # The maximum number of operations per run, used to control rate limiting. diff --git a/README.md b/README.md index e56d30e..cb65255 100644 --- a/README.md +++ b/README.md @@ -61,10 +61,10 @@ The dataset YAML follows the established YOLOv5 and YOLOv8 format. For exhaustiv ```yaml # YAML configuration example for custom datasets -path: # dataset root dir (leave empty for HUB integration) -train: images/train # train images (relative to 'path') 8 images -val: images/val # val images (relative to 'path') 8 images -test: # test images (optional) +path: # dataset root dir (leave empty for HUB integration) +train: images/train # train images (relative to 'path') 8 images +val: images/val # val images (relative to 'path') 8 images +test: # test images (optional) # Class labels names: diff --git a/README.zh-CN.md b/README.zh-CN.md index 4d154bb..529d493 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -44,10 +44,10 @@ zip -r coco8.zip coco8 ```yaml # 自定义数据集的 YAML 配置示例 -path: # 数据集根目录(集成 HUB 时留空) -train: images/train # 训练图片(相对于 'path')8张图片 -val: images/val # 验证图片(相对于 'path')8张图片 -test: # 测试图片(可选) +path: # 数据集根目录(集成 HUB 时留空) +train: images/train # 训练图片(相对于 'path')8张图片 +val: images/val # 验证图片(相对于 'path')8张图片 +test: # 测试图片(可选) # 类别标签 names: diff --git a/example_datasets/coco8-pose/coco8-pose.yaml b/example_datasets/coco8-pose/coco8-pose.yaml index 02dea22..d7ccff0 100644 --- a/example_datasets/coco8-pose/coco8-pose.yaml +++ b/example_datasets/coco8-pose/coco8-pose.yaml @@ -6,15 +6,14 @@ # └── datasets # └── coco8-pose ← downloads here (1 MB) - # Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..] -path: # dataset root dir (leave empty for HUB) -train: images/train # train images (relative to 'path') 4 images -val: images/val # val images (relative to 'path') 4 images -test: # test images (optional) +path: # dataset root dir (leave empty for HUB) +train: images/train # train images (relative to 'path') 4 images +val: images/val # val images (relative to 'path') 4 images +test: # test images (optional) # Keypoints -kpt_shape: [17, 3] # number of keypoints, number of dims (2 for x,y or 3 for x,y,visible) +kpt_shape: [17, 3] # number of keypoints, number of dims (2 for x,y or 3 for x,y,visible) flip_idx: [0, 2, 1, 4, 3, 6, 5, 8, 7, 10, 9, 12, 11, 14, 13, 16, 15] # Classes diff --git a/example_datasets/coco8-seg/coco8-seg.yaml b/example_datasets/coco8-seg/coco8-seg.yaml index 566c97f..cdd4d33 100644 --- a/example_datasets/coco8-seg/coco8-seg.yaml +++ b/example_datasets/coco8-seg/coco8-seg.yaml @@ -6,12 +6,11 @@ # └── datasets # └── coco8-seg ← downloads here (1 MB) - # Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..] -path: # dataset root dir (leave empty for HUB) -train: images/train # train images (relative to 'path') 4 images -val: images/val # val images (relative to 'path') 4 images -test: # test images (optional) +path: # dataset root dir (leave empty for HUB) +train: images/train # train images (relative to 'path') 4 images +val: images/val # val images (relative to 'path') 4 images +test: # test images (optional) # Classes names: @@ -96,6 +95,5 @@ names: 78: hair drier 79: toothbrush - # Download script/URL (optional) download: diff --git a/example_datasets/coco8/coco8.yaml b/example_datasets/coco8/coco8.yaml index f7b86b8..cd2805f 100644 --- a/example_datasets/coco8/coco8.yaml +++ b/example_datasets/coco8/coco8.yaml @@ -6,12 +6,11 @@ # └── datasets # └── coco8 ← downloads here (1 MB) - # Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..] -path: # dataset root dir (leave empty for HUB) -train: images/train # train images (relative to 'path') 4 images -val: images/val # val images (relative to 'path') 4 images -test: # test images (optional) +path: # dataset root dir (leave empty for HUB) +train: images/train # train images (relative to 'path') 4 images +val: images/val # val images (relative to 'path') 4 images +test: # test images (optional) # Classes names: @@ -96,6 +95,5 @@ names: 78: hair drier 79: toothbrush - # Download script/URL (optional) download: diff --git a/example_datasets/dota8/dota8.yaml b/example_datasets/dota8/dota8.yaml index 8071de8..598a463 100644 --- a/example_datasets/dota8/dota8.yaml +++ b/example_datasets/dota8/dota8.yaml @@ -7,8 +7,8 @@ # └── datasets # └── dota8 ← downloads here (1MB) -train: images/train # train images (relative to 'path') 4 images -val: images/val # val images (relative to 'path') 4 images +train: images/train # train images (relative to 'path') 4 images +val: images/val # val images (relative to 'path') 4 images # Classes for DOTA 1.0 names: