mxnet-model-zoo
Choose, instantiate, customize, and smoke-check MXNet GluonCV model-zoo models.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- mxnet-model-zoo
- license
- Apache 2.0
- metadata
- { "package": "gluoncv", "disco-role": "operating", "parent-skill": "gluon-cv", "source-framework": "mxnet" }
- description
- Choose, instantiate, customize, and smoke-check MXNet GluonCV model-zoo models.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md9.9 KB
- 参考文档references/model-zoo-workflows.md10.9 KB
- 参考文档references/troubleshooting.md7.3 KB
- 脚本scripts/mxnet_model_inventory.py8.6 KB
03 SKILL.md 正文
MXNet GluonCV model zoo workflows
Use this sub-skill when the task mentions GluonCV's MXNet model zoo, gluoncv.model_zoo.get_model, pretrained MXNet models, model lists, MXNet inference, reset_class, SSD/YOLO/Faster R-CNN/Mask R-CNN/CenterNet, semantic or instance segmentation, pose, MXNet action recognition, depth, tracking, quantized/int8 variants, or MXNet import/version failures.
Verified operating facts:
gluoncv.model_zoo.get_model(name, **kwargs)constructs MXNet GluonCV models by registry name.gluoncv.model_zoo.get_model_list()returns the MXNet registry; the verified registry contains 332 names.- A CPU smoke check with
get_model('cifar_resnet20_v1', pretrained=False), initialized manually, returned output shape(1, 10)for input(1, 3, 32, 32). pretrainedacceptsFalse,True, or a string hash selector.Trueor a hash may download weights into the MXNet model cache unless already present.
Route first
Stay in this sub-skill for MXNet model-name selection, dry-run instantiation, pretrained inference recipes, output-shape checks, custom detector class heads, reset_class, model cache issues, and MXNet-specific compatibility problems.
Route elsewhere when the user's goal is not MXNet model-zoo API work:
- Dataset classes, transforms, presets, loaders, metrics, and annotation validation:
../data-transforms-datasets/ - PyTorch action-recognition, DirectPose, COOT, Torch configs, and DDP:
../torch-video-workflows/ - Full training/evaluation/demo command construction from source scripts:
../training-evaluation-scripts/ - AutoGluon, export, deployment, ONNX/TVM, or programmatic export checks:
../automl-deployment-export/
Default workflow
-
Confirm the environment can import MXNet-backed GluonCV. If not, use
references/troubleshooting.mdbefore changing code. -
Choose a model family and registry name with
references/model-zoo-workflows.mdor the bundled helper:python scripts/mxnet_model_inventory.py --filter yolo3 --names -
For a no-network sanity check, instantiate with
pretrained=False; initialize parameters before the first forward:import mxnet as mx from gluoncv.model_zoo import get_model ctx = mx.cpu() net = get_model('cifar_resnet20_v1', pretrained=False) net.initialize(ctx=ctx) y = net(mx.nd.random.uniform(shape=(1, 3, 32, 32), ctx=ctx)) assert tuple(y.shape) == (1, 10) -
Use
pretrained=Trueorpretrained='<hash>'only when network access or an existing model cache is acceptable. -
For detector class changes, prefer a pretrained detector plus
reset_class(classes, reuse_weights=...)when the new labels overlap the original dataset; otherwise instantiate a_custommodel withclasses=[...]and train/fine-tune normally. -
Validate outputs by task family: classification logits
(N, classes), detection tuples(ids, scores, bboxes), segmentation logits(N, classes, H, W)or list/tuple outputs, pose heatmaps, action logits, depth prediction dictionaries, and tracking tracker outputs.
References
references/model-zoo-workflows.md— model-name families and recipes for inventory, dry-run, pretrained inference, reset-class, and export-adjacent decisions.references/api-reference.md— verified signatures, kwargs, return conventions, and source-backed reset behavior.references/troubleshooting.md— import/version/cache/GPU/custom-class/Cython fixes.scripts/mxnet_model_inventory.py— safe inventory and tiny CPU dry-forward helper; it performs no downloads.
Source notes
This sub-skill distills public API and behavior from setup.py, README.md, docs/model_zoo, docs/tutorials/index.rst, gluoncv/model_zoo/model_zoo.py, tests/model_zoo/test_model_zoo.py, and the source script families under scripts/classification, scripts/detection, scripts/instance, scripts/pose, scripts/segmentation, scripts/action-recognition, scripts/depth, and scripts/tracking. Long demo/train/eval scripts are treated as reference evidence because they require external images/videos/datasets, pretrained downloads, GPUs, or long-running jobs.
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).