Skip to content
Back to skills

Training And Evaluation

ASecurity

"Route BiRefNet training launches, resume semantics, evaluation

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolsgo

Works with

  • cli

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 training-and-evaluation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Training And Evaluation?

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

Security grade badge for Training And Evaluation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-and-evaluation-5032f454/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-and-evaluation-5032f454)

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: training-and-evaluation
description: "Route BiRefNet training launches, resume semantics, evaluation
  metrics, and best-checkpoint selection."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# training-and-evaluation

Use this sub-skill for BiRefNet fine-tuning, epoch scheduling, checkpoint loading/saving, metric evaluation, and best-epoch selection.

## Handles
- `train.py` CLI: `--resume`, `--epochs`, `--ckpt_dir`, `--dist`, `--use_accelerate`
- `train.sh` task-specific epoch, validation, and save schedules
- `train_test.sh` train-then-evaluate orchestration
- `test.sh` inference plus evaluation over configured testsets
- `eval_existingOnes.py`, `evaluation.metrics.evaluator`, `sort_and_round_scores`
- `gen_best_ep.py` checkpoint ranking from `e_results/*_eval.txt`

## Use the bundled script
- `scripts/birefnet_metric_smoke.py` — create tiny mask fixtures and exercise `evaluation.metrics.evaluator` from an explicit or inferred repo root.

## Read next
- `references/training-workflows.md`
- `references/evaluation-workflows.md`
- `references/metrics-reference.md`
- `references/troubleshooting.md`

## Recommended operating flow

1. Validate dataset layout and task/testset names with `../configuration-and-data/SKILL.md` before building a training or evaluation command.
2. Confirm backbone/weight compatibility with `../model-architecture/SKILL.md`; wrong `config.bb` often appears as a checkpoint tensor-size error.
3. For fine-tuning, compute total epochs from the checkpoint filename epoch plus the desired additional epochs because `train.py` resumes at filename epoch + 1.
4. Treat full training as GPU/data/weight/budget dependent; use this sub-skill to plan commands and only execute after explicit user approval.
5. Before evaluating real predictions, run `scripts/birefnet_metric_smoke.py` to confirm metric dependencies and evaluator wiring.

## Done criteria

- Training commands name the run directory, GPU IDs, total epoch count, resume path, and whether Accelerate/DDP is used.
- Evaluation commands have matching `gt_root`, `pred_root`, dataset names, and metric flags.
- Checkpoint selection criteria (`sm`, `wfm`, and DIS-only `hce`) are explicit.
- Asset-heavy native runs are marked skipped unless the user provides data, weights, hardware, and time budget.

## Route out
- Dataset tree and task/testset selection -> `../configuration-and-data/SKILL.md`
- Backbone choice, checkpoint key cleanup, and weight compatibility -> `../model-architecture/SKILL.md`
- Standalone image/video mask generation and foreground refinement -> `../inference-and-postprocessing/SKILL.md`

Files in this skill

  • SKILL.md2.6 KB
  • references/evaluation-workflows.md2.9 KB
  • references/metrics-reference.md3.3 KB
  • references/training-workflows.md4.1 KB
  • references/troubleshooting.md4.1 KB
  • scripts/birefnet_metric_smoke.py11 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.