Skip to content
Back to skills

Data And Datasets

ASecurity

"Operate FastReID dataset registries, built-in layouts, custom

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
devopspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill data-and-datasets --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data And Datasets?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data And Datasets
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-and-datasets/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-and-datasets)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-and-datasets
description: "Operate FastReID dataset registries, built-in layouts, custom
  dataset classes, dataloaders, transforms, samplers, and safe data preflight
  checks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# FastReID data and datasets

Use this sub-skill when a FastReID task involves dataset roots, `FASTREID_DATASETS`, built-in dataset names, custom dataset registration, `ImageDataset`/`CommDataset` tuple shape, train/test dataloader APIs, transforms, samplers, or preflight checks before training/evaluation.

## Start here

1. Identify the dataset name exactly as FastReID expects it, for example `Market1501`, `DukeMTMC`, `MSMT17`, `VeRi`, `VehicleID`, `SmallVehicleID`, `VeRiWild`, or `SmallVeRiWild`.
2. Resolve the dataset root that FastReID will receive: `FASTREID_DATASETS` if set, otherwise a relative `datasets` directory from the process working directory.
3. Validate the tree before launching any train/eval job:

```bash
python sub-skills/data-and-datasets/scripts/validate_dataset_layout.py --root <datasets-root> --dataset Market1501
```

4. If using a custom dataset, import the module that registers it before calling FastReID's train/test loader builders.

## Runtime references and scripts

- [`references/dataset-formats.md`](references/dataset-formats.md): use for built-in dataset names, expected directory/list-file layouts, file-name parsing rules, and the canonical `(img_path, pid, camid)` item schema.
- [`references/data-api.md`](references/data-api.md): use for `DATASET_REGISTRY`, `ImageDataset`, `CommDataset`, `build_reid_train_loader`, `build_reid_test_loader`, transform options, sampler choices, and custom dataset registration patterns.
- [`references/troubleshooting.md`](references/troubleshooting.md): use when FastReID cannot find datasets, parses pid/camid incorrectly, query/gallery is empty, samplers fail because of batch settings, or old dataset tests/imports conflict with this API.
- [`scripts/validate_dataset_layout.py`](scripts/validate_dataset_layout.py): safe no-download validator for selected built-in layout roots; run it before expensive train/eval commands or when diagnosing partial dataset trees.

## Route boundaries

- Training loops, schedulers, checkpoints, distributed launch, evaluator output, and train/eval command construction belong to [`../training-and-evaluation/`](../training-and-evaluation/).
- Model registry, backbone/head/meta-architecture construction, predictors, feature tensors, and checkpoint loading belong to [`../modeling-and-inference/`](../modeling-and-inference/).
- Source-only package setup, config inheritance, YAML merge behavior, and config recipe selection belong to [`../setup-and-configuration/`](../setup-and-configuration/).
- Project-specific datasets under FastReID extension projects belong to [`../deployment-and-projects/`](../deployment-and-projects/); use this sub-skill only for the shared registry/layout mechanics they rely on.

## Verified operating facts

- `FASTREID_DATASETS` defaults to `datasets` when the environment variable is unset.
- Dataset records are tuples `(img_path, pid, camid)`. Training built-ins usually prefix training `pid`/`camid` with a dataset name string before `CommDataset(..., relabel=True)` maps them to contiguous integers.
- Built-in registry keys include person ReID datasets (`Market1501`, `DukeMTMC`, `MSMT17`, `CUHK03`, `VIPeR`, `GRID`, `iLIDS`, etc.) and vehicle ReID datasets (`VeRi`, `VehicleID`, `SmallVehicleID`, `MediumVehicleID`, `LargeVehicleID`, `VeRiWild`, `SmallVeRiWild`, `MediumVeRiWild`, `LargeVeRiWild`).
- API signatures verified for this FastReID version include `build_reid_train_loader(train_set, *, sampler=None, total_batch_size, num_workers=0)` and `build_reid_test_loader(test_set, test_batch_size, num_query, num_workers=4)`; the config system also permits calls such as `build_reid_train_loader(cfg, combineall=...)` and `build_reid_test_loader(cfg, dataset_name=...)`.

Files in this skill

  • SKILL.md3.9 KB
  • references/data-api.md8.8 KB
  • references/dataset-formats.md6.8 KB
  • references/troubleshooting.md7 KB
  • scripts/validate_dataset_layout.py18.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.