OmDet

om-ai-labApache-2.0更新放缓

实时端到端开放词汇目标检测模型,无需重新训练即可用自然语言描述检测任意类别物体,适合零样本检测场景。

Real-time and accurate open-vocabulary end-to-end object detection

暂无版本1,410star119fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
按 install.md 配置环境;下载预训练模型与 CLIP ViT-B-16.pt 放入 resources 目录后运行 python run_demo.py
硬件要求按 README 说明

README 提到 OmDet-Turbo-Base 在 A100 GPU 上 COCO val2017 达到 100.2 FPS,但未说明最低显存要求;CPU 推理未说明。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 Transformer 的实时开放词汇目标检测模型,用文本提示直接检测任意类别

实时端到端开放词汇目标检测模型,无需重新训练即可用自然语言描述检测任意类别物体,适合零样本检测场景。

核心能力

  • 用 Efficient Fusion Head 做多模态融合,减轻编码器计算负担
  • 支持开放词汇检测,无需预定义类别即可按文本提示检测
  • 已集成进 Transformers 4.45.0,可直接调用官方实现
  • 提供 ONNX 导出脚本,可固定输入尺寸部署
  • 附带 WSGI API 服务脚本,可起 HTTP 推理接口

容易踩的坑

需额外下载 CLIP ViT-B-16.pt 权重并手动放进 resources 目录,否则无法推理;API 服务默认监听 8000 端口,注意端口占用;导出 ONNX 需先把配置中的 OmDetV2Turbo 换成 OmDetV2TurboInfer,且导出模型不含后处理、输入尺寸固定。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    OmDet-Turbo


    🗓️ Updates

    • 03/12/2026:We are excited to announce that our models are now available on ModelScope!
    • 09/26/2024:OmDet-Turbo has been integrated into Transformers version 4.45.0. The code is available at here, and the Hugging Face model is available at here.
    • 07/05/2024: Our new open-source project, OmAget: A multimodal agent framework for solving complex tasks is available !!! Additionally, OmDet has been seamlessly integrated as an OVD tool within it. Feel free to delve into our innovative multimodal agent framework.
    • 06/24/2024: Guidance for converting OmDet-Turbo to ONNX
    • 03/25/2024: Inference code and a pretrained OmDet-Turbo-Tiny model released.
    • 03/12/2024: Github open-source project created

    🔗 Related Works

    If you are interested in our research, we welcome you to explore our other wonderful projects.

    🔆 How to Evaluate the Generalization of Detection? A Benchmark for Comprehensive Open-Vocabulary Detection(AAAI24)  🏠Github Repository

    🔆 OmDet: Large-scale vision-language multi-dataset pre-training with multimodal detection network(IET Computer Vision)


    📖 Introduction

    This repository is the official PyTorch implementation for OmDet-Turbo, a fast transformer-based open-vocabulary object detection model.

    ⭐️Highlights

    1. OmDet-Turbo is a transformer-based real-time open-vocabulary detector that combines strong OVD capabilities with fast inference speed. This model addresses the challenges of efficient detection in open-vocabulary scenarios while maintaining high detection performance.
    2. We introduce the Efficient Fusion Head, a swift multimodal fusion module designed to alleviate the computational burden on the encoder and reduce the time consumption of the head with ROI.
    3. OmDet-Turbo-Base model, achieves state-of-the-art zero-shot performance on the ODinW and OVDEval datasets, with AP scores of 30.1 and 26.86, respectively.
    4. The inference speed of OmDetTurbo-Base on the COCO val2017 dataset reach 100.2 FPS on an A100 GPU.

    For more details, check out our paper Real-time Transformer-based Open-Vocabulary Detection with Efficient Fusion Head


    ⚡️ Inference Speed

    Comparison of inference speeds for each component in tiny-size model.


    🛠️ How To Install

    Follow the Installation Instructions to set up the environments for OmDet-Turbo


    🚀 How To Run

    Local Inference

    1. Download our pretrained model and the CLIP checkpoints.
    2. Create a folder named resources, put downloaded models into this folder.
    3. Run run_demo.py, the images with predicted results will be saved at ./outputs folder.

    Run as a API Server

    1. Download our pretrained model and the CLIP checkpoints.
    2. Create a folder named resources, put downloaded models into this folder.
    3. Run run_wsgi.py, the API server will be started at http://host_ip:8000/inf_predict, check http://host_ip:8000/docs to have a try.

    We already added language cache while inferring with run_demo.py. For more details, please open and check run_demo.py scripts.


    ⚙️ How To Export ONNX Model

    1. Replace OmDetV2Turbo in OmDet-Turbo_tiny_SWIN_T.yaml with OmDetV2TurboInfer
    2. Run export.py, and the omdet.onnx will be exported.

    In the above example, post processing is not included in onnx model , and all input size are fixed. You can add more post processing and change the input size according to your needs.


    📦 Model Zoo

    The performance of COCO and LVIS are evaluated under zero-shot setting.

    ModelBackbonePre-Train DataCOCOLVISFPS (pytorch/trt)Weight
    OmDet-Turbo-TinySwin-TO365,GoldG42.530.321.5/140.0weight

    📝 Main Results


    Citation

    Please consider citing our papers if you use our projects:

    @article{zhao2024real,
      title={Real-time Transformer-based Open-Vocabulary Detection with Efficient Fusion Head},
      author={Zhao, Tiancheng and Liu, Peng and He, Xuan and Zhang, Lu and Lee, Kyusong},
      journal={arXiv preprint arXiv:2403.06892},
      year={2024}
    }
    
    @article{zhao2024omdet,
      title={OmDet: Large-scale vision-language multi-dataset pre-training with multimodal detection network},
      author={Zhao, Tiancheng and Liu, Peng and Lee, Kyusong},
      journal={IET Computer Vision},
      year={2024},
      publisher={Wiley Online Library}
    }