From efc3c392a9441e32171536520e39fa5ce7413916 Mon Sep 17 00:00:00 2001 From: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:50:11 +0800 Subject: [PATCH] Clarify relative path usage for `path` in dataset `yaml` (#18953) Signed-off-by: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com> --- docs/en/datasets/detect/index.md | 2 +- docs/en/datasets/pose/index.md | 2 +- docs/en/datasets/segment/index.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/datasets/detect/index.md b/docs/en/datasets/detect/index.md index c6ea56cf..d5408112 100644 --- a/docs/en/datasets/detect/index.md +++ b/docs/en/datasets/detect/index.md @@ -16,7 +16,7 @@ The Ultralytics YOLO format is a dataset configuration format that allows you to ```yaml # 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: ../datasets/coco8 # dataset root dir +path: ../datasets/coco8 # dataset root dir (absolute or relative; if relative, it's relative to default datasets_dir) train: images/train # train images (relative to 'path') 4 images val: images/val # val images (relative to 'path') 4 images test: # test images (optional) diff --git a/docs/en/datasets/pose/index.md b/docs/en/datasets/pose/index.md index 321bb9c1..0473b310 100644 --- a/docs/en/datasets/pose/index.md +++ b/docs/en/datasets/pose/index.md @@ -42,7 +42,7 @@ The Ultralytics framework uses a YAML file format to define the dataset and mode ```yaml # 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: ../datasets/coco8-pose # dataset root dir +path: ../datasets/coco8-pose # dataset root dir (absolute or relative; if relative, it's relative to default datasets_dir) train: images/train # train images (relative to 'path') 4 images val: images/val # val images (relative to 'path') 4 images test: # test images (optional) diff --git a/docs/en/datasets/segment/index.md b/docs/en/datasets/segment/index.md index 9a954241..9f88aea3 100644 --- a/docs/en/datasets/segment/index.md +++ b/docs/en/datasets/segment/index.md @@ -44,7 +44,7 @@ The Ultralytics framework uses a YAML file format to define the dataset and mode ```yaml # 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: ../datasets/coco8-seg # dataset root dir +path: ../datasets/coco8-seg # dataset root dir (absolute or relative; if relative, it's relative to default datasets_dir) train: images/train # train images (relative to 'path') 4 images val: images/val # val images (relative to 'path') 4 images test: # test images (optional)