ssd-keras
Router for SSD300, SSD512, and SSD7 Keras detection workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- ssd-keras
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Router for SSD300, SSD512, and SSD7 Keras detection workflows.
- disable-model-invocation
- true
02 资源文件 45
- 参考文档references/compatibility.md1.7 KB
- 参考文档references/data-formats.md3.8 KB
- 参考文档references/model-architecture.md3.9 KB
- 参考文档references/repo-provenance.md897 B
- 参考文档references/repo-routing-metadata.json418 B
- 参考文档references/runtime-source.md1.4 KB
- 参考文档references/troubleshooting.md3.0 KB
- 参考文档references/workflows.md4.5 KB
- 脚本runtime-src/__init__.py—
- 脚本runtime-src/bounding_box_utils/__init__.py—
- 脚本runtime-src/bounding_box_utils/bounding_box_utils.py19.6 KB
- 脚本runtime-src/data_generator/__init__.py—
- 脚本runtime-src/data_generator/data_augmentation_chain_constant_input_size.py9.2 KB
- 脚本runtime-src/data_generator/data_augmentation_chain_original_ssd.py14.0 KB
- 脚本runtime-src/data_generator/data_augmentation_chain_satellite.py8.3 KB
- 脚本runtime-src/data_generator/data_augmentation_chain_variable_input_size.py7.9 KB
- 脚本runtime-src/data_generator/object_detection_2d_data_generator.py69.4 KB
- 脚本runtime-src/data_generator/object_detection_2d_geometric_ops.py36.4 KB
- 脚本runtime-src/data_generator/object_detection_2d_image_boxes_validation_utils.py17.8 KB
- 脚本runtime-src/data_generator/object_detection_2d_misc_utils.py3.2 KB
- 脚本runtime-src/data_generator/object_detection_2d_patch_sampling_ops.py46.0 KB
- 脚本runtime-src/data_generator/object_detection_2d_photometric_ops.py16.3 KB
- 脚本runtime-src/eval_utils/__init__.py—
- 脚本runtime-src/eval_utils/average_precision_evaluator.py51.6 KB
- 脚本runtime-src/eval_utils/coco_utils.py10.7 KB
- 脚本runtime-src/keras_layers/__init__.py—
- 脚本runtime-src/keras_layers/keras_layer_AnchorBoxes.py15.4 KB
- 脚本runtime-src/keras_layers/keras_layer_DecodeDetections.py15.3 KB
- 脚本runtime-src/keras_layers/keras_layer_DecodeDetectionsFast.py14.3 KB
- 脚本runtime-src/keras_layers/keras_layer_L2Normalization.py2.4 KB
- 脚本runtime-src/keras_loss_function/__init__.py—
- 脚本runtime-src/keras_loss_function/keras_ssd_loss.py12.4 KB
- 许可证runtime-src/LICENSE.txt9.9 KB
- 脚本runtime-src/misc_utils/__init__.py—
- 脚本runtime-src/misc_utils/tensor_sampling_utils.py10.9 KB
- 脚本runtime-src/models/__init__.py—
- 脚本runtime-src/models/keras_ssd300.py33.9 KB
- 脚本runtime-src/models/keras_ssd512.py36.0 KB
- 脚本runtime-src/models/keras_ssd7.py29.4 KB
- 参考文档runtime-src/README.md658 B
- 脚本runtime-src/ssd_encoder_decoder/__init__.py—
- 脚本runtime-src/ssd_encoder_decoder/matching_utils.py5.4 KB
- 脚本runtime-src/ssd_encoder_decoder/ssd_input_encoder.py39.9 KB
- 脚本runtime-src/ssd_encoder_decoder/ssd_output_decoder.py42.3 KB
- 脚本scripts/check_env.py4.3 KB
03 SKILL.md 正文
SSD Keras
This skill routes work on the SSD Keras repository. It covers the SSD300, SSD512, and SSD7 model builders, the custom layers and losses they depend on, the data generator and augmentation stack, training and fine-tuning workflows, and Pascal VOC / MS COCO inference and evaluation.
Quick compatibility note
Use a Python 3.7 environment with TensorFlow 1.15.x and Keras 2.2.x. The verified baseline also needs protobuf 3.20.x or lower. The codebase is TensorFlow-only; Theano and CNTK are unsupported. Start with scripts/check_env.py before deeper work.
Choose a route
data-preparation
Use this route when the task is about:
- parsing CSV, Pascal VOC XML, COCO JSON, or HDF5 data
- validating boxes, labels, and image sets
- creating batches or augmentation pipelines
- using
DataGenerator,BoxFilter,ImageValidator, orapply_inverse_transforms
Read:
sub-skills/data-preparation/SKILL.mdreferences/data-formats.mdreferences/workflows.mdsub-skills/data-preparation/references/troubleshooting.md
training
Use this route when the task is about:
- building a trainable model
- loading VGG / pretrained SSD weights
- compiling with
SSDLoss - wiring
SSDInputEncoder - fitting on VOC, custom CSV data, or synthetic fixtures
- adapting weights with
sample_tensors
Read:
sub-skills/training/SKILL.mdreferences/model-architecture.mdreferences/workflows.mdsub-skills/training/references/troubleshooting.md
inference-evaluation
Use this route when the task is about:
- loading a trained model
- decoding predictions
- drawing or interpreting detections
- computing VOC mAP or COCO JSON output
- using
Evaluator,decode_detections,decode_detections_fast, orpredict_all_to_json
Read:
sub-skills/inference-evaluation/SKILL.mdreferences/model-architecture.mdreferences/workflows.mdsub-skills/inference-evaluation/references/troubleshooting.md
Shared references
references/model-architecture.md— constructors, modes, custom layers, encoder/decoder, and box math.references/data-formats.md— CSV/XML/JSON/HDF5 layouts and generator outputs.references/compatibility.md— supported Python and dependency baseline.references/runtime-source.md— bundled runtime module layout used by the smoke scripts.references/troubleshooting.md— cross-cutting backend, import, and shape mismatches.references/workflows.md— notebook-derived end-to-end recipes.
Smoke path
When you only need a fast confidence check, run:
scripts/check_env.py- the smoke script owned by the relevant sub-skill
- the smallest synthetic case described in that sub-skill's troubleshooting notes
The smoke scripts resolve imports from the bundled runtime-src/ copy of the Python modules, so they do not rely on an external checkout.
What this skill does not do
- It does not run or document maintainer release automation.
- It does not expose Theano or CNTK paths.
- It does not depend on the original repository's absolute checkout path.
- It does not require the notebooks to stay available once the skill is loaded.
Entry-point summary
- Bundled runtime source lives under
runtime-src/and mirrors the repo's Python package layout. - Model constructors live under
models/. - Loss and encoder utilities live under
keras_loss_function/andssd_encoder_decoder/. - Dataset parsing and augmentation live under
data_generator/. - Evaluation helpers live under
eval_utils/. - Weight sampling utilities live under
misc_utils/.
If you need an unfamiliar object or function, open the shared reference that matches the workflow before reading the source tree.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).