Darkflow Training and Custom Data
Use this sub-skill when the user wants to train or fine-tune Darkflow on a custom object-detection dataset, prepare Pascal VOC annotations, edit label/config files, or resume checkpoints.
Inputs you should collect
- Image directory for
--dataset. - Pascal VOC XML annotation directory for
--annotation. - Label list: one class per line.
- A Darkflow-compatible
.cfgmodel file. - Optional pretrained
.weightsfile or checkpoint step. - Training controls such as
--trainer,--lr,--batch,--epoch,--save,--summary, and--keep.
First checks
- If the package is not already proven, run
../../scripts/check_install.py. - Validate the annotations and labels with
scripts/check_voc_dataset.pybefore running a long training job. - Read
references/data-formats.mdwhen a dataset or label file is ambiguous. - Read
../../references/model-overview.mdbefore changing class counts or filters. - Read
references/troubleshooting.mdbefore retrying a failed training run.
Route by task
- Custom dataset setup: Use
references/data-formats.mdplusscripts/check_voc_dataset.py. - Config and label edits: Use
references/workflows.md#custom-class-configurationand../../references/model-overview.md. - Training from weights: Use
references/workflows.md#fine-tune-from-pretrained-weights. - Training from scratch: Use
references/workflows.md#train-from-scratch. - Checkpoint resume or export handoff: Use
references/workflows.md#checkpointing-and-resume, then hand off to../inference/SKILL.mdfor export or prediction.
Outputs to expect
- Checkpoints under the selected backup directory, defaulting to
ckpt/. - Profile files saved beside checkpoints.
- Optional TensorBoard summaries under the selected summary directory.
- A trained model that can be loaded with
--load <step>or--load -1for the latest checkpoint.
Boundaries
This sub-skill does not own image-folder prediction, video/camera demos, JSON output, or protobuf load/export details. Those are handled by ../inference/SKILL.md after the model has weights or checkpoints.
Quality checks before claiming success
- The label list, final
[region]classes, and penultimate[convolutional]filtersagree. - The annotation XML folder exists and each object label is in the label file.
- The image filenames referenced by annotation XMLs exist when an image directory is provided.
- The checkpoint path and
--loadvalue match the selected model name. - The workflow does not assume external weights or datasets are downloadable unless the user explicitly allows network access.