[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FCFGDA0643R9W66A6G5Z9Z":3,"skill-same:01M7FCFGDA0643R9W66A6G5Z9Z":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7FCFGDA0643R9W66A6G5Z9Z","model-inference",null,"Construct, inspect, and troubleshoot SSD300 model inference internals for the ssd.pytorch repository.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fssd-pytorch\u002Fsub-skills\u002Fmodel-inference\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: model-inference\ndescription: \"Construct, inspect, and troubleshoot SSD300 model inference\n  internals for the ssd.pytorch repository.\"\nmetadata:\n  disco-role: operating\ndisable-model-invocation: true\nlicense: MIT\n---\n\n# model-inference\n\nUse this sub-skill when a task needs to construct or inspect the SSD300 model, its prior boxes, multibox heads, detection decode\u002FNMS path, single-image inference preprocessing, or pretrained weight compatibility.\n\n## When to use\n\n- Build or inspect `build_ssd(phase, size=300, num_classes=21)`.\n- Explain the VGG base, extra layers, L2 normalization, localization heads, confidence heads, prior boxes, decode, and NMS contracts.\n- Diagnose model construction, state-dict loading, class-count\u002Fhead mismatches, tensor shape\u002Fdevice issues, or the legacy `Detect` incompatibility on modern PyTorch.\n- Plan safe single-image inference preprocessing and postprocessing without overclaiming that test-phase inference works unchanged on modern PyTorch.\n\n## Route elsewhere\n\n- Dataset roots, VOC\u002FCOCO layout, annotation transforms, augmentation, dataloaders, and training commands: `..\u002Fdata-training\u002FSKILL.md`.\n- `eval.py`, `test.py`, notebook demo, webcam demo, VOC result files, and runnable evaluation\u002Fdemo command workflows: `..\u002Fevaluation-demos\u002FSKILL.md`.\n\n## Start here\n\n1. Read `references\u002Fmodel-api.md` for signatures, model components, config facts, tensor shapes, and output contracts.\n2. Read `references\u002Finference-workflow.md` before loading weights or performing single-image inference; it includes the safe construction path and the modern PyTorch detection-layer decision point.\n3. Read `references\u002Ftroubleshooting.md` when imports, phases, state dicts, devices, or test-phase forward passes fail.\n4. Use the bundled scripts for focused, low-cost checks:\n\n```bash\npython scripts\u002Finspect_model_shapes.py --num-classes 21\npython scripts\u002Finspect_model_shapes.py --num-classes 21 --phase train --run-forward\npython scripts\u002Fcheck_box_utils.py\n```\n\nThe scripts assume they are run from a checkout or environment where the repository source modules are importable. They do not download data or weights.\n\n## Do not overclaim\n\n- `build_ssd('train', 300, 21)` constructs and train-phase zero forward has been observed to return `(loc, conf, priors)` with shapes `(1, 8732, 4)`, `(1, 8732, 21)`, `(8732, 4)` under a modern Torch runtime, aside from a `Variable(..., volatile=True)` warning.\n- `build_ssd('test', ...)` constructs the legacy detection module, but a forward pass can fail on modern PyTorch because `Detect` subclasses `torch.autograd.Function` with an old-style instance `forward`. Patch `Detect` or use a legacy-compatible PyTorch before claiming end-to-end inference\u002Feval works.\n- Importing `ssd` or `data` may fail before model construction if the COCO label-map default path is absent; see troubleshooting for safe remedies.\n","# model-inference\n\nUse this sub-skill when a task needs to construct or inspect the SSD300 model, its prior boxes, multibox heads, detection decode\u002FNMS path, single-image inference preprocessing, or pretrained weight compatibility.\n\n## When to use\n\n- Build or inspect `build_ssd(phase, size=300, num_classes=21)`.\n- Explain the VGG base, extra layers, L2 normalization, localization heads, confidence heads, prior boxes, decode, and NMS contracts.\n- Diagnose model construction, state-dict loading, class-count\u002Fhead mismatches, tensor shape\u002Fdevice issues, or the legacy `Detect` incompatibility on modern PyTorch.\n- Plan safe single-image inference preprocessing and postprocessing without overclaiming that test-phase inference works unchanged on modern PyTorch.\n\n## Route elsewhere\n\n- Dataset roots, VOC\u002FCOCO layout, annotation transforms, augmentation, dataloaders, and training commands: `..\u002Fdata-training\u002FSKILL.md`.\n- `eval.py`, `test.py`, notebook demo, webcam demo, VOC result files, and runnable evaluation\u002Fdemo command workflows: `..\u002Fevaluation-demos\u002FSKILL.md`.\n\n## Start here\n\n1. Read `references\u002Fmodel-api.md` for signatures, model components, config facts, tensor shapes, and output contracts.\n2. Read `references\u002Finference-workflow.md` before loading weights or performing single-image inference; it includes the safe construction path and the modern PyTorch detection-layer decision point.\n3. Read `references\u002Ftroubleshooting.md` when imports, phases, state dicts, devices, or test-phase forward passes fail.\n4. Use the bundled scripts for focused, low-cost checks:\n\n```bash\npython scripts\u002Finspect_model_shapes.py --num-classes 21\npython scripts\u002Finspect_model_shapes.py --num-classes 21 --phase train --run-forward\npython scripts\u002Fcheck_box_utils.py\n```\n\nThe scripts assume they are run from a checkout or environment where the repository source modules are importable. They do not download data or weights.\n\n## Do not overclaim\n\n- `build_ssd('train', 300, 21)` constructs and train-phase zero forward has been observed to return `(loc, conf, priors)` with shapes `(1, 8732, 4)`, `(1, 8732, 21)`, `(8732, 4)` under a modern Torch runtime, aside from a `Variable(..., volatile=True)` warning.\n- `build_ssd('test', ...)` constructs the legacy detection module, but a forward pass can fail on modern PyTorch because `Detect` subclasses `torch.autograd.Function` with an old-style instance `forward`. Patch `Detect` or use a legacy-compatible PyTorch before claiming end-to-end inference\u002Feval works.\n- Importing `ssd` or `data` may fail before model construction if the COCO label-map default path is absent; see troubleshooting for safe remedies.\n",{"name":5,"license":15,"metadata":24,"description":7,"disable-model-invocation":26},{"disco-role":25},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fssd-pytorch\u002Fsub-skills\u002Fmodel-inference",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill model-inference",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill model-inference",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill model-inference","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fssd-pytorch\u002Fsub-skills\u002Fmodel-inference\u002FSKILL.md",[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Finference-workflow.md","REFERENCE","参考文档",5576,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fssd-pytorch\u002Fsub-skills\u002Fmodel-inference\u002Freferences\u002Finference-workflow.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fmodel-api.md",6723,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fssd-pytorch\u002Fsub-skills\u002Fmodel-inference\u002Freferences\u002Fmodel-api.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Ftroubleshooting.md",5509,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fssd-pytorch\u002Fsub-skills\u002Fmodel-inference\u002Freferences\u002Ftroubleshooting.md",[63,70,75,82,89,96],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":71,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]