Skip to content
Back to skills

Configuration And Data

ASecurity

Route BiRefNet configuration, task selection, and dataset layout checks.

  • 247 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 8, 2026
tools

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Configuration And Data?

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

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

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: configuration-and-data
description: "Route BiRefNet configuration, task selection, and dataset layout checks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# configuration-and-data

Use this sub-skill when you need to inspect or adapt `Config`, choose task/testset/backbone/loss settings, or prepare a BiRefNet-style dataset tree before training or evaluation.

## Handles
- `Config()` defaults and mutable knobs
- Built-in task names: `DIS5K`, `COD`, `HRSOD`, `General`, `General-2K`, `Matting`
- Data layout under `<data-root>/<task>/<dataset>/{im,gt}`
- `MyData(...)` pairing, augmentation, dynamic-size collation, and `background_color_synthesis`
- Auxiliary classification filename assumptions
- Safe dataset-tree validation for image/label pairing

## Use the bundled scripts
- `scripts/birefnet_config_summary.py` — print distilled config defaults, task profiles, backbone choices, and optional checkout-inspected schedule notes.
- `scripts/birefnet_dataset_check.py` — validate a BiRefNet dataset tree, pair `im`/`gt` files, and report missing or duplicate basenames.

## Read next
- `references/configuration.md` for task profiles, default values, path knobs, precision/compile, losses, and schedule extraction.
- `references/data-formats.md` for the exact dataset tree, image/label pairing rules, dynamic-size collation, and auxiliary classification filenames.
- `references/troubleshooting.md` when data folders are missing, counts differ, Config behaves differently outside a checkout, or dynamic-size training is unstable.

## Recommended operating flow

1. Identify the task family (`DIS5K`, `COD`, `HRSOD`, `General`, `General-2K`, or `Matting`) and decide whether the user is changing data, model shape, or only paths.
2. Run `scripts/birefnet_config_summary.py` to confirm the distilled defaults; add `--repo-root` only when the user has a current checkout and wants live schedule inspection.
3. Validate each dataset with `scripts/birefnet_dataset_check.py --data-root <root> --task <task> --dataset <name>` before recommending training or evaluation.
4. If the user changes `config.bb`, `size`, `dynamic_size`, `lambdas_pix_last`, `mixed_precision`, or `compile`, route to the sibling workflow that depends on that field before finalizing a command.
5. Keep config edits explicit and reversible; BiRefNet stores many active choices directly in `config.py`, so hidden edits can affect model loading, training, and evaluation together.

## Done criteria

- The data tree has matching `im` and `gt` basenames for every selected dataset.
- The selected task/testset/training-set names match the user's directory names.
- Any dynamic-size, `load_all`, auxiliary classification, or background synthesis assumptions are recorded before training begins.
- Architecture-sensitive config changes have been checked with `model-architecture`.

## Route out
- Model internals and patch helpers -> `../model-architecture/SKILL.md`
- Full training and evaluation commands -> `../training-and-evaluation/SKILL.md`
- Image/video outputs and refinement -> `../inference-and-postprocessing/SKILL.md`

Files in this skill

  • SKILL.md3.1 KB
  • references/configuration.md4.2 KB
  • references/data-formats.md3.3 KB
  • references/troubleshooting.md3 KB
  • scripts/birefnet_config_summary.py7 KB
  • scripts/birefnet_dataset_check.py10.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.