explaingit

facebookresearch/detectron

Analysis updated 2026-06-21

26,389PythonAudience · researcherComplexity · 5/5LicenseSetup · hard

TLDR

Facebook AI Research's original platform for object detection, the AI that identifies and locates objects in images. Now deprecated, use Detectron2 instead. Home of the landmark Mask R-CNN algorithm.

Mindmap

mindmap
  root((Detectron))
    What it does
      Object detection
      Instance segmentation
      Mask R-CNN origin
    Key concepts
      Bounding boxes
      Pixel-level masks
      COCO benchmark
    Status
      Deprecated
      Use Detectron2
      Historical reference
    Applications
      Background blur
      Security cameras
      Self-driving cars
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Study the original implementation of Mask R-CNN as a historical and academic reference.

USE CASE 2

Understand how instance segmentation, outlining exact object pixels in an image, was first implemented at scale.

USE CASE 3

Reproduce results from the 2017 COCO object detection challenge as a research baseline.

USE CASE 4

Learn the architecture behind AI that draws precise outlines around objects in photos, used in background-blur, security cameras, and self-driving vehicles.

What is it built with?

PythonCaffe2CUDA

How does it compare?

facebookresearch/detectronlittlecodersh/itchatungoogled-software/ungoogled-chromium
Stars26,38926,46826,472
LanguagePythonPythonPython
Setup difficultyhardmoderatemoderate
Complexity5/52/52/5
Audienceresearcherdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires CUDA GPU, Caffe2, and a specific Python/CUDA version stack, the repo is deprecated and no longer maintained.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Detectron is Facebook AI Research's original platform for computer vision research, specifically for object detection, which is the AI task of identifying and locating objects within images and video. Think of it as the research workbench where Facebook's scientists developed and tested algorithms that could look at a photo and draw boxes around every person, car, dog, or other object in it. The most famous algorithm that came out of this platform is Mask R-CNN, which won a top prize at a major computer vision conference in 2017. Unlike earlier systems that only drew bounding boxes around objects, Mask R-CNN could also draw precise outlines around each object, distinguishing the exact pixels belonging to a person versus the background behind them. This technique is called instance segmentation and is now foundational to many real-world applications. For a non-technical founder, Detectron represents the origin point of a family of technologies now used in production systems everywhere: photo apps that blur backgrounds, security cameras that detect specific people or vehicles, medical imaging that identifies anomalies, and autonomous vehicles that identify pedestrians. Important note: this original Detectron is deprecated, meaning it's no longer actively maintained. The team rewrote it from scratch as Detectron2, which is the current version to use if you need this technology. This original repository remains publicly available as a historical reference and for anyone studying the original implementations of these landmark algorithms.

Copy-paste prompts

Prompt 1
I'm studying Mask R-CNN from the original Detectron codebase. Walk me through the key files and explain what each module does, feature pyramid network, region proposal network, and the mask head.
Prompt 2
Compare the original Detectron with Detectron2: what architectural changes did Facebook make in the rewrite, and why should I migrate?
Prompt 3
I want to reproduce the original Mask R-CNN results from the 2017 COCO paper using this repo. What hardware, dataset, and config file do I need?
Prompt 4
Explain instance segmentation in plain English: how does Detectron's Mask R-CNN go from a raw image to per-pixel object masks?
Prompt 5
I'm building a product that needs to detect and outline people in video. Should I use this original Detectron or Detectron2, and what are the trade-offs?

Frequently asked questions

What is detectron?

Facebook AI Research's original platform for object detection, the AI that identifies and locates objects in images. Now deprecated, use Detectron2 instead. Home of the landmark Mask R-CNN algorithm.

What language is detectron written in?

Mainly Python. The stack also includes Python, Caffe2, CUDA.

What license does detectron use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is detectron to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is detectron for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub facebookresearch on gitmyhub

Verify against the repo before relying on details.