Skip to content
Back to skills

Data Preparation

ASecurity

"Prepare and validate LR/HR/SR dataset layouts for image-directory

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolstesting

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-preparation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Preparation?

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

Security grade badge for Data Preparation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-preparation-05b1497e/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-preparation-05b1497e)

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-preparation
description: "Prepare and validate LR/HR/SR dataset layouts for image-directory
  and LMDB workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# data-preparation

Use this sub-skill for dataset roots, resize layouts, and safe fixture checks.

## Route here when
- A user asks how to prepare SR triplets for `datatype: img` or `datatype: lmdb`.
- A config uses `dataroot`, `l_resolution`, `r_resolution`, `datatype`, `mode`, or `data_len`.
- A dataset root is missing `lr_<L>`, `hr_<R>`, or `sr_<L>_<R>`.
- An LMDB root fails to load because keys or `length` are missing.
- You need a deterministic tiny dataset for smoke testing.

## Start with
1. [references/data-layouts.md](references/data-layouts.md) for the directory and LMDB contracts.
2. [scripts/validate_dataset_layout.py](scripts/validate_dataset_layout.py) to check an existing `img` root.
3. [scripts/prepare_tiny_dataset.py](scripts/prepare_tiny_dataset.py) to create a small RGB fixture.

## What this sub-skill covers
- LR/HR/SR triplet directory layout.
- LMDB key layout and length metadata.
- Dataset config fields that control loading.
- Common data-shape, naming, and mode mismatches.

## What it does not cover
- Training, validation, inference, or metric workflows.
- Network downloads or large-scale preprocessing jobs.
- Model architecture or checkpoint selection.

## Usage notes
- `mode: LRHR` expects LR, HR, and SR data.
- `mode: HR` reads HR and SR only, but the preparation layout still includes all triplets.
- Keep directory contents image-only and aligned by relative path.
- The bundled validator is for `img` layouts; LMDB checks are described in the references.

## Bundled files
- [references/data-layouts.md](references/data-layouts.md)
- [references/troubleshooting.md](references/troubleshooting.md)
- [scripts/validate_dataset_layout.py](scripts/validate_dataset_layout.py)
- [scripts/prepare_tiny_dataset.py](scripts/prepare_tiny_dataset.py)

Files in this skill

  • SKILL.md2 KB
  • references/data-layouts.md5 KB
  • references/troubleshooting.md3.4 KB
  • scripts/prepare_tiny_dataset.py4.8 KB
  • scripts/validate_dataset_layout.py5.4 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.