← all repositories
facebookresearch/detectron2

Facebook's CV workhorse grew a plugin system

Detectron2 is the research platform Meta uses to train and ship object-detection models, and it is built to be extended rather than replaced.

34.5k stars Python Computer VisionML Frameworks
detectron2
Velocity · 7d
+14
★ / day
Trend
steady
star history

What it does Detectron2 is a PyTorch-based platform for object detection, instance segmentation, panoptic segmentation, and related visual recognition tasks. It bundles implementations of modern architectures—Cascade R-CNN, PointRend, ViTDet, MViTv2, DeepLab, DensePose, rotated bounding boxes—into a single library with a model zoo of pretrained weights. Models can be exported to TorchScript or Caffe2 for deployment.

The interesting bit The project is explicitly designed as a substrate, not a monolith. The projects/ directory hosts research extensions built on top of the core, which means the same training loop, data loader, and config system get battle-tested across dozens of papers. That is the boring part that matters: a stable foundation keeps research code from rotting between paper submission and reproduction.

Key highlights

  • Successor to Detectron and maskrcnn-benchmark; claims faster training (benchmarks linked, not reproduced here)
  • Supports panoptic segmentation, DensePose, rotated boxes, and newer transformers like ViTDet
  • Exports to TorchScript and Caffe2 for production paths
  • Large model zoo with baseline results
  • Apache 2.0 licensed

Caveats

  • The README is light on concrete numbers; “trains much faster” is asserted but not quantified in the source text
  • Installation and getting-started docs live off-repo, so the README itself is more billboard than manual

Verdict Worth a look if you are doing computer vision research or need a mature, extensible detection stack in PyTorch. Skip it if you want a lightweight, single-purpose detector or if you are allergic to Facebook/Meta infrastructure.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.