인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
디자인 및 창작 · SKILL.md

inference-visualization

inference-visualization

Run Detectron2 inference, inspect model outputs, and visualize predictions safely without depending on the source demo script.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: inference-visualization description: "Run Detectron2 inference, inspect model outputs, and visualize predictions safely without depending on the source demo script." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Detectron2 Inference & Visualization

Use this sub-skill when a task asks to run Detectron2 inference, call DefaultPredictor, call a built model directly, inspect Instances/Boxes/masks, visualize predictions, plan demo-style image/video/webcam commands, or validate COCO-style prediction JSON before drawing it.

Fast Routing

Safe Defaults

  • Set inference device before model or predictor construction: Yacs configs use cfg.MODEL.DEVICE = "cpu" or the CLI override MODEL.DEVICE cpu.
  • Do not instantiate DefaultPredictor during no-download validation if cfg.MODEL.WEIGHTS points to a URL or detectron2:// URI; it loads weights during construction.
  • Treat OpenCV images as BGR, but pass RGB images to Visualizer; convert with image_rgb = image_bgr[:, :, ::-1].
  • Move predictions to CPU before visualization: instances = outputs["instances"].to("cpu").
  • Check instances.has("pred_boxes"), instances.has("scores"), and metadata class names before assuming labels or boxes exist.

Boundaries

This sub-skill owns inference calls, model input/output formats, Instances, Boxes, BoxMode, BitMasks, PolygonMasks, ImageList, Visualizer, ColorMode, demo-style flags, confidence thresholds, CPU overrides, and prediction JSON sanity checks.

Route model-zoo config/checkpoint selection to ../configuration-model-zoo/. Route dataset registration, catalog metadata, and dataset dict validation to ../data-datasets/. Route training, evaluation loops, evaluators, and metrics to ../training-evaluation/. Route TorchScript, tracing, Caffe2, and deployment packaging to ../deployment-export/.

저장한 Skills