Skip to content

facebookresearch/detectron2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Yanghan Wangfacebook-github-bot
Yanghan Wang
and
Apr 24, 2025
536dc9d · Apr 24, 2025
Apr 24, 2025
Aug 22, 2024
Nov 15, 2021
Sep 9, 2024
Apr 24, 2025
May 3, 2024
Jul 16, 2022
Dec 14, 2022
Nov 21, 2024
May 29, 2024
May 3, 2024
Jun 9, 2020
Jul 16, 2022
Jan 16, 2021
Dec 3, 2021
Apr 24, 2025
Nov 5, 2020
Jul 21, 2021
Apr 24, 2025
Jan 7, 2023
Aug 14, 2023

Detectron2 is Facebook AI Research's next generation library that provides state-of-the-art detection and segmentation algorithms. It is the successor of Detectron and maskrcnn-benchmark. It supports a number of computer vision research projects and production applications in Facebook.


Learn More about Detectron2

  • Includes new capabilities such as panoptic segmentation, Densepose, Cascade R-CNN, rotated bounding boxes, PointRend, DeepLab, ViTDet, MViTv2 etc.
  • Used as a library to support building research projects on top of it.
  • Models can be exported to TorchScript format or Caffe2 format for deployment.
  • It trains much faster.

See our blog post to see more demos. See this interview to learn more about the stories behind detectron2.

Installation

See installation instructions.

Getting Started

See Getting Started with Detectron2, and the Colab Notebook to learn about basic usage.

Learn more at our documentation. And see projects/ for some projects that are built on top of detectron2.

Model Zoo and Baselines

We provide a large set of baseline results and trained models available for download in the Detectron2 Model Zoo.

License

Detectron2 is released under the Apache 2.0 license.

Citing Detectron2

If you use Detectron2 in your research or wish to refer to the baseline results published in the Model Zoo, please use the following BibTeX entry.

@misc{wu2019detectron2,
  author =       {Yuxin Wu and Alexander Kirillov and Francisco Massa and
                  Wan-Yen Lo and Ross Girshick},
  title =        {Detectron2},
  howpublished = {\url{https://github.com/facebookresearch/detectron2}},
  year =         {2019}
}