Darkflow
Darkflow is the legacy TensorFlow 1.x YOLO package exposed by the flow CLI and the darkflow.net.build.TFNet API.
Use this skill when the user wants to:
- run detections on images, folders, videos, or a webcam
- read JSON predictions or call
return_predict()from Python - export a frozen
.pb/.metapair or load one for inference - train or fine-tune a YOLO model on Pascal VOC style annotations
- adapt Darkflow-compatible config files and labels for a custom dataset
Start here
- If the package is not installed yet, read
references/installation.md. - Run
scripts/check_install.pyto confirm the import stack before deeper work. - Use
sub-skills/inference/SKILL.mdfor prediction, demo, JSON, and protobuf export/import. - Use
sub-skills/training/SKILL.mdfor dataset prep, labels, training, and checkpoints.
Verified install shape
The verified inspection path used a Python 3.6 environment with:
tensorflow==1.4.1opencv-pythonnumpyrequestsCython<3pytestandpytest-covfor test-backed validation
If editable install fails with a Cython compile error, see references/troubleshooting.md. The legacy build needs a pre-3.0 Cython release.
Quick smoke checks
python scripts/check_install.pyflow --helporpython scripts/flow.py --helppython -m pip check
Read these references when needed
references/cli-reference.mdfor flags, defaults, and command patternsreferences/api-reference.mdforTFNetandargHandlersignaturesreferences/model-overview.mdfor bundled config families and label rulesreferences/troubleshooting.mdfor install, import, build, and runtime failuresreferences/repo-provenance.mdbefore refreshing or comparing this skill to a new checkout
Route map
- Inference / export: image folders, JSON output, camera or video demo, Python predictions,
.pbexport, or.pb/.metaloading. - Training / custom data:
--train, Pascal VOC XML annotations,labels.txt,--dataset,--annotation, checkpointing, or custom config editing.
If a request spans both routes, begin with training for dataset/config preparation and finish with inference for prediction or export.