executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
conversionGuides TensorFlow YOLOv3 checkpoint conversion, COCO initialization, Darknet weight pitfalls, and graph freezing to PB inference models.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a user asks to convert pretrained YOLOv3 weights, initialize training from COCO, freeze a TensorFlow checkpoint, diagnose convert_weight.py / freeze_graph.py, or decide whether the bundled Darknet conversion scripts are safe to run.
.pb file..pb to the inference sub-skill..weights conversion works unmodified; the bundled direct-conversion scripts have known source bugs../data/classes/coco.names, ./data/anchors/basline_anchors.txt, and ./checkpoint/... resolve correctly.tensorflow-gpu==1.11.0 is optional and difficult on modern CUDA hardware../checkpoint/yolov3_coco.ckpt (cfg.YOLO.ORIGINAL_WEIGHT)./checkpoint/yolov3_coco_demo.ckpt (cfg.YOLO.DEMO_WEIGHT)./yolov3_coco.pbinput/input_data, pred_sbbox/concat_2, pred_mbbox/concat_2, pred_lbbox/concat_2Read conversion workflows for the exact COCO release checkpoint, --train_from_coco, and freeze flows.
Run the safe preflight checker before expensive or destructive commands:
python sub-skills/conversion/scripts/check_conversion_inputs.py --repo-root .
If creating custom-class training initialization from COCO, update the class-name config first, then use:
python convert_weight.py --train_from_coco
This intentionally skips the output head variables (conv_sbbox, conv_mbbox, conv_lbbox) and saves randomly initialized heads into cfg.YOLO.DEMO_WEIGHT.
If creating a COCO demo PB, use the release checkpoint flow, run python convert_weight.py, then run python freeze_graph.py.
If the user supplies Darknet .weights, consult conversion troubleshooting before running anything; prefer the release checkpoint flow or patch a copy of the direct conversion scripts first.
.meta, .index, and at least one .data-* shard before restore.freeze_graph.py, use output node names without :0; inference code fetches the same tensors with :0 suffix.