← Open Source
facebookresearch

Detic

Code release for "Detecting Twenty-thousand Classes using Image-level Supervision".

ApplicationsObject detectionPython
Open on GitHub
Momentum
+-1stars in 24 hours-0.0%
2.01k
Stars
229
Forks
+-2
This week
7
Contributors
Created 2021-12-11 · Updated 2026-10-16 · #18760 today
Top developers
xingyizhouimisrajoakimeriksson

facebookresearch/Detic is ranked 18,760 with 2,011 stars.

Same-category comparison

facebookresearch/Detic is ranked 18,760 among these 8 peers; akl7777777/ShellGPT is ranked 18,759.

Same-category comparison
NameRankMetrics
githubharald/SimpleHTR18,737
Language:
Python
Stars:
2,190
Forks:
913
Description:
Handwritten Text Recognition (HTR) system implemented with TensorFlow.
enarjord/passivbot18,744
Language:
Python
Stars:
2,129
Forks:
680
Description:
Trading bot running on Bybit, Bitget, OKX, GateIO, Binance, Kucoin, WEEX and Hyperliquid.
4thfever/cultivation-world-simulator18,747
Language:
Python
Stars:
2,111
Forks:
238
Description:
| An open-source Cultivation World Simulator using Agentic Workflow to create a dynamic, emerging Xianxia world.
akl7777777/ShellGPT18,759
Language:
JavaScript
Stars:
2,021
Forks:
234
Description:
**ShellGPT is a free chatgpt client, now Supported online search.no need for a key, no need to log in.Multi-node automatic speed measurement switch,Long text translation with no word limit, AI graphics.
android/androidify18,763
Language:
Kotlin
Stars:
1,989
Forks:
319
Description:
Sample app for Androidify.
run-llama/notebookllama18,766
Language:
Python
Stars:
1,977
Forks:
243
Description:
A fully open-source, LlamaCloud-backed alternative to NotebookLM.
LingyiChen-AI/AIComicBuilder18,774
Language:
TypeScript
Stars:
1,918
Forks:
326
hanshuaikang/nezha18,778
Language:
TypeScript
Stars:
1,906
Forks:
180
Description:
Code Editor for the AI Agents Era. Run multiple Claude Code and Codex agents across projects on your machine.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryApplications
SubcategoryObject detection
Stars2,011
Forks229
Contributors7
Created date2021-12-11
Updated date2026-10-16
Stars in 1 day-1
Stars in 7 days-2
Rank18,760
Previous rank18,585
Rank change-175
7-day stars rank18,253
Previous 7-day stars rank16,971
7-day stars rank change-1,282
Total stars rank6,320
Previous total stars rank6,313
Total stars rank change-7
CountryUSA
README summary

Detecting Twenty-thousand Classes using Image-level Supervision **Detic**: A **Det**ector with **i**mage **c**lasses that can use image-level labels to easily train detectors. **Detecting Twenty-thousand Classes using Image-level Supervision**, Xingyi Zhou, Rohit Girdhar, Armand Joulin, Philipp Krähenbühl, Ishan Misra, *ECCV 2022 (arXiv 2201. 02605)* Features Detects **any** class given class names (using CLIP). We train the detector on ImageNet-21K dataset with 21K classes. Cross-dataset generalization to OpenImages and

Objects365 **without finetuning**. State-of-the-art results on Open-vocabulary LVIS and Open-vocabulary COCO. Demo **Update April 2022**: we released more real-time models here. We use the default detectron2 demo interface. For example, to run our 21K model on a messy desk image (image credit David Fouhey) with the lvis vocabulary, run If setup correctly, the output should look like: The same model can run with other vocabularies (COCO, OpenImages, or Objects365), or a **custom vocabulary**. For

example: The output should look like: Note that , and (typo intended) are **not** LVIS classes. Despite the misspelled class name, our detector can produce a reasonable detection for . Benchmark evaluation and training Please first prepare datasets, then check our MODEL ZOO to reproduce results in our paper. We highlight key results below: Open-vocabulary LVIS Standard LVIS Cross-dataset generalization License The majority of Detic is licensed under the Apache 2. 0 license, however portions of the project are available

under separate license terms: SWIN-Transformer, CLIP, and TensorFlow Object Detection API are licensed under the MIT license; UniDet is licensed under the Apache 2. 0 license; and the LVIS API is licensed under a custom license. If you later add other third party code, please keep this license info updated, and please let us know if that component is licensed under something other than CC-BY-NC, MIT, or CC0 Ethical Considerations Detic's wide range of detection capabilities may

introduce similar challenges to many other visual recognition and open-set recognition methods. As the user can define arbitrary detection classes, class design and semantics may impact the model output. Citation If you find this project useful for your research, please use the following BibTeX entry.

Frequently asked questions

How many stars and forks are recorded?

facebookresearch/Detic has 2,011 stars and 229 forks.

What is the repository rank?

facebookresearch/Detic is ranked 18,760.

What language and category are recorded?

facebookresearch/Detic has 2,011 stars, uses Python and belongs to Applications.

Which repository is closest in rank?

facebookresearch/Detic is compared with akl7777777/ShellGPT, ranked 18,759 with 2,021 stars.

README

Detecting Twenty-thousand Classes using Image-level Supervision

Detic: A Detector with image classes that can use image-level labels to easily train detectors.

Detecting Twenty-thousand Classes using Image-level Supervision,
Xingyi Zhou, Rohit Girdhar, Armand Joulin, Philipp Krähenbühl, Ishan Misra,
ECCV 2022 (arXiv 2201.02605)

Features

  • Detects any class given class names (using CLIP).

  • We train the detector on ImageNet-21K dataset with 21K classes.

  • Cross-dataset generalization to OpenImages and Objects365 without finetuning.

  • State-of-the-art results on Open-vocabulary LVIS and Open-vocabulary COCO.

  • Works for DETR-style detectors.

Installation

See installation instructions.

Demo

Update April 2022: we released more real-time models here.

Replicate web demo and docker image:

Integrated into Huggingface Spaces 🤗 using Gradio. Try out the web demo:

Run our demo using Colab (no GPU needed):

We use the default detectron2 demo interface. For example, to run our 21K model on a messy desk image (image credit David Fouhey) with the lvis vocabulary, run

mkdir models
wget https://dl.fbaipublicfiles.com/detic/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.pth -O models/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.pth
wget https://eecs.engin.umich.edu/~fouhey/fun/desk/desk.jpg
python demo.py --config-file configs/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.yaml --input desk.jpg --output out.jpg --vocabulary lvis --opts MODEL.WEIGHTS models/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.pth

If setup correctly, the output should look like:

The same model can run with other vocabularies (COCO, OpenImages, or Objects365), or a custom vocabulary. For example:

python demo.py --config-file configs/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.yaml --input desk.jpg --output out2.jpg --vocabulary custom --custom_vocabulary headphone,webcam,paper,coffe --confidence-threshold 0.3 --opts MODEL.WEIGHTS models/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.pth

The output should look like:

Note that headphone, paper and coffe (typo intended) are not LVIS classes. Despite the misspelled class name, our detector can produce a reasonable detection for coffe.

Benchmark evaluation and training

Please first prepare datasets, then check our MODEL ZOO to reproduce results in our paper. We highlight key results below:

  • Open-vocabulary LVIS

    mask mAP mask mAP_novel
    Box-Supervised 30.2 16.4
    Detic 32.4 24.9
  • Standard LVIS

    Detector/ Backbone mask mAP mask mAP_rare
    Box-Supervised CenterNet2-ResNet50 31.5 25.6
    Detic CenterNet2-ResNet50 33.2 29.7
    Box-Supervised CenterNet2-SwinB 40.7 35.9
    Detic CenterNet2-SwinB 41.7 41.7
    Detector/ Backbone box mAP box mAP_rare
    Box-Supervised DeformableDETR-ResNet50 31.7 21.4
    Detic DeformableDETR-ResNet50 32.5 26.2
  • Cross-dataset generalization

    Backbone Objects365 box mAP OpenImages box mAP50
    Box-Supervised SwinB 19.1 46.2
    Detic SwinB 21.4 55.2

License

The majority of Detic is licensed under the Apache 2.0 license, however portions of the project are available under separate license terms: SWIN-Transformer, CLIP, and TensorFlow Object Detection API are licensed under the MIT license; UniDet is licensed under the Apache 2.0 license; and the LVIS API is licensed under a custom license. If you later add other third party code, please keep this license info updated, and please let us know if that component is licensed under something other than CC-BY-NC, MIT, or CC0

Ethical Considerations

Detic's wide range of detection capabilities may introduce similar challenges to many other visual recognition and open-set recognition methods. As the user can define arbitrary detection classes, class design and semantics may impact the model output.

Citation

If you find this project useful for your research, please use the following BibTeX entry.

@inproceedings{zhou2022detecting,
  title={Detecting Twenty-thousand Classes using Image-level Supervision},
  author={Zhou, Xingyi and Girdhar, Rohit and Joulin, Armand and Kr{\"a}henb{\"u}hl, Philipp and Misra, Ishan},
  booktitle={ECCV},
  year={2022}
}
Nearby in the ranking
Similar items