Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML reformat #542

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 5 additions & 6 deletions example_datasets/coco8-pose/coco8-pose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 4 additions & 6 deletions example_datasets/coco8-seg/coco8-seg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -96,6 +95,5 @@ names:
78: hair drier
79: toothbrush


# Download script/URL (optional)
download:
10 changes: 4 additions & 6 deletions example_datasets/coco8/coco8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -96,6 +95,5 @@ names:
78: hair drier
79: toothbrush


# Download script/URL (optional)
download:
4 changes: 2 additions & 2 deletions example_datasets/dota8/dota8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down