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
trainingRoute for SSD Keras model building, compilation, training, and fine-tuning.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this route when the task is about building a trainable SSD model, loading pretrained weights, compiling the loss, wiring the encoder, or running a fitting loop.
SSDLossSSDInputEncoder instances that match the model anchorsSend those tasks to data-preparation or inference-evaluation.
references/model-architecture.md to confirm the model / encoder / loss contract.references/workflows.md for the notebook-derived training sequence.references/compatibility.md if the old TensorFlow / Keras stack is not importing.scripts/smoke.py for a tiny synthetic model / encoder / train-step check.ssd_300 is the canonical path and matches the main Pascal VOC / COCO notebook recipes.ssd_512 uses the same design at a larger input size.build_model is the smaller SSD7 template and is the best smoke path or custom-backbone starting point.The model builder and the encoder must agree on:
If these drift apart, the model will build but the targets or decoded boxes will be wrong.
load_weights(..., by_name=True) when the source weights were saved with a different head shape.sample_tensors before loading them.SSDLoss.compute_loss as the model loss.DataGenerator through the data-preparation route.OOM and NaN are the two common failure modes.When the class set changes, do not edit the pretrained weights by hand.
Instead:
sample_tensors to sub-sample or up-sample the classifier tensors consistently.ssd_300ssd_512build_modelSSDLossSSDInputEncodersample_tensorsAnchorBoxesL2NormalizationDecodeDetectionsDecodeDetectionsFastscripts/smoke.py — builds a small model, encodes a synthetic batch, runs one training step, and exercises the weight-sampling utility.ssd_300.build_model.sample_tensors before loading the new head.