[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FC7D36CS8X0YV0S6AEPFM6":3,"skill-same:01M7FC7D36CS8X0YV0S6AEPFM6":70},{"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},"01M7FC7D36CS8X0YV0S6AEPFM6","training-and-inference",null,"Route legacy SECOND and PointPillars model construction, training, evaluation, checkpoint restoration, and inference with explicit configuration, device, and backend guards.","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-前端与设计\u002Fsecond-pytorch\u002Fsub-skills\u002Ftraining-and-inference\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: training-and-inference\ndescription: \"Route legacy SECOND and PointPillars model construction, training,\n  evaluation, checkpoint restoration, and inference with explicit configuration,\n  device, and backend guards.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# Training and inference\n\nUse this sub-skill when a task asks to train or evaluate SECOND\u002FPointPillars,\nbuild a `VoxelNet`, restore a `.tckpt`, run inference, select a model config,\nor reason about multi-GPU, fp16, NMS, or spconv errors.\n\n## Safety and compatibility boundary\n\n- This repository is deprecated. Its public README recommends OpenPCDet or\n  MMDetection3D for new work; prefer a maintained implementation unless the\n  historical checkpoint or experiment specifically requires this code.\n- The detector route is **legacy-backend guarded and unverified**. Source code\n  depends on old `spconv` APIs (`VoxelGeneratorV2` and NMS symbols), legacy\n  Numba CUDA behavior, and an old PyTorch integration. A modern spconv 2.x\n  import is not proof of compatibility.\n- Run the bundled non-invasive probe before any detector import:\n  `python \u003Ctraining-skill-root>\u002Fscripts\u002Fcheck_legacy_backend.py`.\n  Add `--require-detector` only when deciding whether to attempt a detector\n  route. Without it, the probe is diagnostic and returns success even when the\n  legacy symbols are absent.\n- CUDA availability, a successful CUDA tensor smoke test, or a CPU import does\n  not prove that sparse model construction, NMS, training, or inference works.\n  Do not claim detector execution was verified from those observations.\n- This package has no setup metadata. Use an explicit, isolated environment\n  only when a separately supplied compatible checkout is intentionally in\n  scope. Do not assume a package install or silently mutate an existing\n  environment. This skill does not bundle the historical detector entry point.\n\n## Route the request\n\n1. **Config\u002Fdata contract:** choose a config and validate dataset paths,\n   generated info\u002Fdatabase files, class order, voxel range, and point feature\n   count. Route dataset generation and layout preparation to\n   [data-preparation](..\u002Fdata-preparation\u002FSKILL.md).\n2. **Model\u002Ftraining:** map `network_class_name`, VFE, middle extractor, and RPN\n   names through the registries; use the Fire commands and output semantics in\n   [workflows](references\u002Fworkflows.md).\n3. **Evaluation\u002Fgeometry:** keep box encoding, NMS, score thresholds, and\n   evaluator implementation questions with\n   [geometry-and-evaluation](..\u002Fgeometry-and-evaluation\u002FSKILL.md).\n4. **Viewer\u002Fservice:** route web API, browser, and server operations to\n   [visualization-and-serving](..\u002Fvisualization-and-serving\u002FSKILL.md); do not\n   start the legacy viewer as a training smoke test.\n\n## Reference map\n\n- [workflows](references\u002Fworkflows.md): Fire commands, guarded train\u002Fresume,\n  multi-GPU scaling, evaluation outputs, inference, pretrained loading, and\n  NuScenes tuning notes.\n- [configuration](references\u002Fconfiguration.md): config families, protobuf\n  fields, model registries, class order, optimizers, and schedules.\n- [API reference](references\u002Fapi-reference.md): public signatures, model\n  methods, builder contracts, freeze filters, and torchplus checkpoints.\n- [compatibility](references\u002Fcompatibility.md): exact backend gate, known\n  modern-spconv gaps, and evidence needed to widen executable scope.\n- [troubleshooting](references\u002Ftroubleshooting.md): install\u002Fimport, optional\n  dependencies, data\u002Fconfig, CLI\u002FAPI, checkpoint, multi-GPU, fp16, and\n  workflow-specific failures.\n\n## Guarded command patterns\n\nFirst run the bundled non-invasive probe:\n\n```bash\npython \u003Ctraining-skill-root>\u002Fscripts\u002Fcheck_legacy_backend.py\npython \u003Ctraining-skill-root>\u002Fscripts\u002Fcheck_legacy_backend.py --require-detector\n```\n\nThe second command is the detector gate. This skill does not bundle or invoke\nthat historical writer\u002Frunner, so no source-checkout command is presented as a\nrunnable recipe. If the probe reports missing legacy symbols, stop before any\nhistorical `train`, `evaluate`, or `TorchInferenceContext` attempt; capture the\nexact missing names and use [compatibility](references\u002Fcompatibility.md) for\nrecovery. If a user separately supplies a compatible checkout, the historical\nargument shapes are documented in [workflows](references\u002Fworkflows.md).\n\nThese are guarded historical routes, not verified recipes. `train` refuses an\nexisting `model_dir` unless `--resume=True`; `--create_folder=True` creates a\nnew timestamped folder when the requested prefix already exists. Keep model\noutputs outside the source tree and back up checkpoints before experiments.\n\n## Core decisions\n\n- `batch_size` and `num_workers` in the training input config are **per GPU**.\n  The implementation multiplies both by the visible GPU count for\n  `--multi_gpu=True`; do not multiply the config values yourself.\n- The README says to divide `train_config.steps` and `steps_per_eval` by the\n  number of GPUs when scaling a single-GPU schedule to multi-GPU. Verify this\n  arithmetic before launching; an undivided schedule changes total optimizer\n  updates and evaluation cadence.\n- fp16 requires the historical Apex path and a compatible sparse backend;\n  `enable_mixed_precision: true` is not equivalent to modern PyTorch AMP.\n  Honor the source assertion that `max_number_of_voxels * batch_size \u003C 65535`.\n- `measure_time=True` enables CUDA synchronization\u002Ftimers in model paths and\n  can distort throughput. Use it only for a deliberate timing run.\n- `evaluate` writes `result.pkl` below `\u003Cresult-path>\u002Fstep_\u003Cglobal_step>` and\n  invokes the dataset evaluator. The historical signature does not accept the\n  README-era `--pickle_result` keyword; do not pass it to a separately supplied\n  runner unless its help output proves otherwise. Route official label\n  conversion to geometry\u002Fevaluation after checking the exact dataset API.\n- Checkpoints are named by model\u002Foptimizer plus step and indexed in\n  `checkpoints.json`. Restore the latest compatible state, or pass an explicit\n  `.tckpt`; never mix a checkpoint with an incompatible config.\n\nFor exact signatures, config fields, model registry names, checkpoint utilities,\nand failure recovery, read the linked references before giving a detailed\ncommand or API answer.\n","# Training and inference\n\nUse this sub-skill when a task asks to train or evaluate SECOND\u002FPointPillars,\nbuild a `VoxelNet`, restore a `.tckpt`, run inference, select a model config,\nor reason about multi-GPU, fp16, NMS, or spconv errors.\n\n## Safety and compatibility boundary\n\n- This repository is deprecated. Its public README recommends OpenPCDet or\n  MMDetection3D for new work; prefer a maintained implementation unless the\n  historical checkpoint or experiment specifically requires this code.\n- The detector route is **legacy-backend guarded and unverified**. Source code\n  depends on old `spconv` APIs (`VoxelGeneratorV2` and NMS symbols), legacy\n  Numba CUDA behavior, and an old PyTorch integration. A modern spconv 2.x\n  import is not proof of compatibility.\n- Run the bundled non-invasive probe before any detector import:\n  `python \u003Ctraining-skill-root>\u002Fscripts\u002Fcheck_legacy_backend.py`.\n  Add `--require-detector` only when deciding whether to attempt a detector\n  route. Without it, the probe is diagnostic and returns success even when the\n  legacy symbols are absent.\n- CUDA availability, a successful CUDA tensor smoke test, or a CPU import does\n  not prove that sparse model construction, NMS, training, or inference works.\n  Do not claim detector execution was verified from those observations.\n- This package has no setup metadata. Use an explicit, isolated environment\n  only when a separately supplied compatible checkout is intentionally in\n  scope. Do not assume a package install or silently mutate an existing\n  environment. This skill does not bundle the historical detector entry point.\n\n## Route the request\n\n1. **Config\u002Fdata contract:** choose a config and validate dataset paths,\n   generated info\u002Fdatabase files, class order, voxel range, and point feature\n   count. Route dataset generation and layout preparation to\n   [data-preparation](..\u002Fdata-preparation\u002FSKILL.md).\n2. **Model\u002Ftraining:** map `network_class_name`, VFE, middle extractor, and RPN\n   names through the registries; use the Fire commands and output semantics in\n   [workflows](references\u002Fworkflows.md).\n3. **Evaluation\u002Fgeometry:** keep box encoding, NMS, score thresholds, and\n   evaluator implementation questions with\n   [geometry-and-evaluation](..\u002Fgeometry-and-evaluation\u002FSKILL.md).\n4. **Viewer\u002Fservice:** route web API, browser, and server operations to\n   [visualization-and-serving](..\u002Fvisualization-and-serving\u002FSKILL.md); do not\n   start the legacy viewer as a training smoke test.\n\n## Reference map\n\n- [workflows](references\u002Fworkflows.md): Fire commands, guarded train\u002Fresume,\n  multi-GPU scaling, evaluation outputs, inference, pretrained loading, and\n  NuScenes tuning notes.\n- [configuration](references\u002Fconfiguration.md): config families, protobuf\n  fields, model registries, class order, optimizers, and schedules.\n- [API reference](references\u002Fapi-reference.md): public signatures, model\n  methods, builder contracts, freeze filters, and torchplus checkpoints.\n- [compatibility](references\u002Fcompatibility.md): exact backend gate, known\n  modern-spconv gaps, and evidence needed to widen executable scope.\n- [troubleshooting](references\u002Ftroubleshooting.md): install\u002Fimport, optional\n  dependencies, data\u002Fconfig, CLI\u002FAPI, checkpoint, multi-GPU, fp16, and\n  workflow-specific failures.\n\n## Guarded command patterns\n\nFirst run the bundled non-invasive probe:\n\n```bash\npython \u003Ctraining-skill-root>\u002Fscripts\u002Fcheck_legacy_backend.py\npython \u003Ctraining-skill-root>\u002Fscripts\u002Fcheck_legacy_backend.py --require-detector\n```\n\nThe second command is the detector gate. This skill does not bundle or invoke\nthat historical writer\u002Frunner, so no source-checkout command is presented as a\nrunnable recipe. If the probe reports missing legacy symbols, stop before any\nhistorical `train`, `evaluate`, or `TorchInferenceContext` attempt; capture the\nexact missing names and use [compatibility](references\u002Fcompatibility.md) for\nrecovery. If a user separately supplies a compatible checkout, the historical\nargument shapes are documented in [workflows](references\u002Fworkflows.md).\n\nThese are guarded historical routes, not verified recipes. `train` refuses an\nexisting `model_dir` unless `--resume=True`; `--create_folder=True` creates a\nnew timestamped folder when the requested prefix already exists. Keep model\noutputs outside the source tree and back up checkpoints before experiments.\n\n## Core decisions\n\n- `batch_size` and `num_workers` in the training input config are **per GPU**.\n  The implementation multiplies both by the visible GPU count for\n  `--multi_gpu=True`; do not multiply the config values yourself.\n- The README says to divide `train_config.steps` and `steps_per_eval` by the\n  number of GPUs when scaling a single-GPU schedule to multi-GPU. Verify this\n  arithmetic before launching; an undivided schedule changes total optimizer\n  updates and evaluation cadence.\n- fp16 requires the historical Apex path and a compatible sparse backend;\n  `enable_mixed_precision: true` is not equivalent to modern PyTorch AMP.\n  Honor the source assertion that `max_number_of_voxels * batch_size \u003C 65535`.\n- `measure_time=True` enables CUDA synchronization\u002Ftimers in model paths and\n  can distort throughput. Use it only for a deliberate timing run.\n- `evaluate` writes `result.pkl` below `\u003Cresult-path>\u002Fstep_\u003Cglobal_step>` and\n  invokes the dataset evaluator. The historical signature does not accept the\n  README-era `--pickle_result` keyword; do not pass it to a separately supplied\n  runner unless its help output proves otherwise. Route official label\n  conversion to geometry\u002Fevaluation after checking the exact dataset API.\n- Checkpoints are named by model\u002Foptimizer plus step and indexed in\n  `checkpoints.json`. Restore the latest compatible state, or pass an explicit\n  `.tckpt`; never mix a checkpoint with an incompatible config.\n\nFor exact signatures, config fields, model registry names, checkpoint utilities,\nand failure recovery, read the linked references before giving a detailed\ncommand or API answer.\n",{"name":5,"license":15,"metadata":24,"description":7,"disable-model-invocation":26},{"disco-role":25},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fsecond-pytorch\u002Fsub-skills\u002Ftraining-and-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 training-and-inference",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill training-and-inference",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill training-and-inference","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fsecond-pytorch\u002Fsub-skills\u002Ftraining-and-inference\u002FSKILL.md",[48,54,58,62,66],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fapi-reference.md","REFERENCE","参考文档",7710,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fsecond-pytorch\u002Fsub-skills\u002Ftraining-and-inference\u002Freferences\u002Fapi-reference.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fcompatibility.md",6453,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fsecond-pytorch\u002Fsub-skills\u002Ftraining-and-inference\u002Freferences\u002Fcompatibility.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fconfiguration.md",7718,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fsecond-pytorch\u002Fsub-skills\u002Ftraining-and-inference\u002Freferences\u002Fconfiguration.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Ftroubleshooting.md",10814,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fsecond-pytorch\u002Fsub-skills\u002Ftraining-and-inference\u002Freferences\u002Ftroubleshooting.md",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fworkflows.md",10071,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fsecond-pytorch\u002Fsub-skills\u002Ftraining-and-inference\u002Freferences\u002Fworkflows.md",[71,78,83,90,97,104],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"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":79,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"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":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"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":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"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":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"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":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"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",[],[]]