协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
detrex【开发与工程】Use detrex for detection-transformer configs, training/evaluation, demos, model zoo conversion, and package API debugging.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
detrex is a Detectron2-based toolbox for Transformer object detection, segmentation, and related DETR-family research workflows. Use this skill when a task names detrex or asks for DETR/DINO/Deformable-DETR/MaskDINO/CO-MOT configs, training, evaluation, demos, checkpoint conversion, or package API debugging.
| User need | Read |
|---|---|
| Build or debug train/eval commands, LazyConfig overrides, datasets, fast debug, AMP, EMA, WandB, DDP, Hydra, or Slurm command shape | training-and-configs |
| Choose a project/model family, interpret model zoo rows, use DINO/MaskDINO/CO-MOT project notes, inspect/convert DETR-family checkpoints, or change pretrained backbones | model-zoo-and-converters |
| Run or construct image/video demos, visualize JSON predictions or datasets, inspect model structure/FLOPs, or build benchmark commands | tools-and-demos |
| Import/inspect Python APIs for layers, losses, matchers, backbones, data mappers, config helpers, checkpointing, EMA, distributed utilities, WandB writer, or compiled ops | package-apis |
Public source installations normally require Linux, Python 3.7+, matching PyTorch/torchvision, Detectron2, compiler tools, and CUDA toolkit when the custom CUDA extension is needed. A minimal validation sequence is:
python -c "import torch, torchvision; print(torch.__version__, torchvision.__version__)"
python -c "import detectron2; import detrex; print('detrex import ok')"
python scripts/check_environment.py --strict --check-config common/train.py
python scripts/check_environment.py --strict --check-cuda-extension
Only require the CUDA-extension check when the task needs MultiScaleDeformableAttention, Deformable-DETR, DINO, or other compiled-op paths. CPU-safe API/config work can still be valid without running full GPU demos or COCO training.