Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Leon Dong 754469e176 Address Breaking Detectron Test 1 week ago
.github add linux and windows cpu tests 6 months ago
configs fix inference accuracy test 3 months ago
datasets download mini data in OSS CI, and enable more tests 3 years ago
demo removing base_module] fbcode/vision/fair/detectron2/demo/TARGETS 3 months ago
detectron2 Address Breaking Detectron Test 1 week ago
dev reapply linter & upgrade black to 24.3.0 7 months ago
docker Add support for ONNX-only 2 years ago
docs Copy cubercnn/modeling to vitdet_cubercnn. (rpn) 2 years ago
projects Migrate `fbcode/vision/fair/detectron2/projects/DensePose` to per-target checking 2 weeks ago
tests Update onnx test skip condition 6 months ago
tools reapply linter & upgrade black to 24.3.0 7 months ago
.clang-format Cut FOR_EACH_KV 5 years ago
.flake8 Add support for ONNX-only 2 years ago
.gitignore update docs 4 years ago
GETTING_STARTED.md rename master->main 3 years ago
INSTALL.md Better error message in lazyconfig relative import 2 years ago
LICENSE update copyright header 4 years ago
MODEL_ZOO.md docs about LazyConfig 3 years ago
README.md MViTv2 README & configs 2 years ago
setup.cfg make timm optional dependency 2 years ago
setup.py Pin omegaconf, as latest release conflicts with hydra-core 1 year ago

README.md

Support Ukraine - Help Provide Humanitarian Aid to Ukraine.

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

Explain Like I’m 5: Detectron2 Using Machine Learning with Detectron2
Explain Like I’m 5: Detectron2 Using Machine Learning with Detectron2

What's New

  • 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 and learn about 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}
}