Skip to content
Back to skills

Training

ASecurity

"Guides tensorflow-yolov3 YOLOv3 training setup, custom datasets,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
datapythonbashapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill training --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Training?

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

Security grade badge for Training
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-a7c9ec81/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-a7c9ec81)

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
description: "Guides tensorflow-yolov3 YOLOv3 training setup, custom datasets,
  COCO-initialized weights, cfg.TRAIN/cfg.YOLO edits, logs, checkpoints, NaN
  fixes, and GPU/TF1 prerequisites."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Training

Use this sub-skill when a user wants to configure or run this repository's
YOLOv3 training workflow from scratch or from COCO-initialized weights, adjust
`cfg.TRAIN`/`cfg.YOLO`, diagnose dataset/class/annotation mismatches, understand
losses and checkpoints, or prepare a long TF1 training run.

Before launching `python train.py`, load these bundled references:

- [Training workflows](references/workflows.md) for from-scratch and
  COCO-initialized procedures, two-stage training behavior, monitoring, and
  output files.
- [Training API/config reference](references/api-reference.md) for exact
  `cfg.TRAIN`, `cfg.YOLO`, `Dataset`, and `YOLOV3` training contracts.
- [Training troubleshooting](references/troubleshooting.md) for missing
  checkpoints, custom class-count bugs, NaN losses, path/cwd issues, TF1/GPU
  compatibility, and data-loader edge cases.
- [Safe config checker](scripts/check_training_config.py) to validate paths,
  class files, anchors, annotation rows, input sizes, and optional checkpoint
  prefixes without importing TensorFlow or running training.

## Operating rules

1. Treat full training as expensive and state prerequisites first: a TensorFlow
   1.x-compatible Python environment, images reachable from the training working
   directory, writable `./data/log/` and `./checkpoint/`, enough GPU/CPU memory
   for the chosen `TRAIN.BATCH_SIZE` and multi-scale `TRAIN.INPUT_SIZE`, and a
   clear time budget.
2. Run or recommend the checker before training. For COCO-initialized training,
   pass `--require-checkpoint`; for intentional scratch training, omit it and
   set or tolerate a missing `TRAIN.INITIAL_WEIGHT`.
3. Keep `core/config.py` and dataset files consistent. `cfg.YOLO.CLASSES`
   determines `num_classes`, output-head width, and valid annotation class ids.
4. Remember the repo's typo: the first-stage epoch field is
   `cfg.TRAIN.FISRT_STAGE_EPOCHS`, not `FIRST_STAGE_EPOCHS`.
5. Do not imply that CPU-only checks prove throughput or convergence. CPU graph
   construction can validate APIs, but long training normally needs a compatible
   GPU stack and real data.

## Quick diagnostic command

From the repository root, validate the default training config without running
training:

```bash
python sub-skills/training/scripts/check_training_config.py \
  --repo-root . \
  --config-py ./core/config.py
```

For expected COCO-initialized training, require the checkpoint prefix:

```bash
python sub-skills/training/scripts/check_training_config.py \
  --repo-root . \
  --config-py ./core/config.py \
  --require-checkpoint
```

Files in this skill

  • SKILL.md2.8 KB
  • references/api-reference.md6.7 KB
  • references/troubleshooting.md7.4 KB
  • references/workflows.md7.3 KB
  • scripts/check_training_config.py21.7 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.