--- license: cc-by-4.0 task_categories: - object-detection tags: - yolo - aerial - drone - master-reservoir size_categories: - 10K C[Class-mapping unification] B[AOD4 raw] --> C C --> D[YOLO label conversion] D --> E[Image / label validation
0 missing pairs] E --> F[(Master Reservoir) v1] ``` ## Download ```python from huggingface_hub import snapshot_download snapshot_download( repo_id="/master-reservoir", repo_type="dataset", local_dir="./master-reservoir" ) ``` ```bash huggingface-cli download /master-reservoir --repo-type dataset --local-dir ./master-reservoir ``` ## Usage The dataset is currently unsplit, so create your own train/val/test split before training. Example with a simple random split: ```python import os, random, shutil random.seed(42) images = os.listdir("master-reservoir/images") random.shuffle(images) n = len(images) splits = { "train": images[:int(0.8 * n)], "val": images[int(0.8 * n):int(0.9 * n)], "test": images[int(0.9 * n):], } for split, files in splits.items(): os.makedirs(f"master-reservoir/{split}/images", exist_ok=True) os.makedirs(f"master-reservoir/{split}/labels", exist_ok=True) for f in files: stem = os.path.splitext(f)[0] shutil.copy(f"master-reservoir/images/{f}", f"master-reservoir/{split}/images/{f}") shutil.copy(f"master-reservoir/labels/{stem}.txt", f"master-reservoir/{split}/labels/{stem}.txt") ``` Then point Ultralytics YOLO at it: ```yaml # data.yaml path: ./master-reservoir train: train/images val: val/images test: test/images names: 0: class_0 1: class_1 2: class_2 3: class_3 ``` ```python from ultralytics import YOLO model = YOLO("yolo11n.pt") model.train(data="data.yaml", epochs=100, imgsz=640) ``` ## Data Quality Notes - Image/label pairing validated — 0 missing images, 0 missing labels. - 5,101 label files (~12.7%) are empty (no annotated instances) — these are background images, not errors. - Class mapping was unified across DetFly and AOD4 prior to merge; the mapping table itself isn't included in the archive yet (see below).