This model is
Rex-Omni, a 3B-parameter Multimodal Large Language Model (MLLM) presented in the paper "
Detect Anything via Next Point Prediction". It is compatible with the Hugging Face
transformers library and is licensed under the
IDEA License 1.0.
1conda create -n rexomni -m python=3.10
2pip install torch==2.6.0 torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cu124
3git clone https://github.com/IDEA-Research/Rex-Omni.git
4cd Rex-Omni
5pip install -v -e .
1from PIL import Image
2from rex_omni import RexOmniWrapper, RexOmniVisualize
3
4# Initialize model
5model = RexOmniWrapper(
6 model_path="IDEA-Research/Rex-Omni",
7 backend="transformers" # or "vllm"
8)
9
10# Load image
11image = Image.open("your_image.jpg")
12
13# Object Detection
14results = model.inference(
15 images=image,
16 task="detection",
17 categories=["person", "car", "dog"]
18)
19
20result = results[0]
21
22# 4) Visualize
23vis = RexOmniVisualize(
24 image=image,
25 predictions=result["extracted_predictions"],
26 font_size=20,
27 draw_width=5,
28 show_labels=True,
29)
30vis.save("visualize.jpg")
31
We provide a series of tutorials to help you get started with Rex-Omni.
Rex-Omni is licensed under the
IDEA License 1.0, Copyright (c) IDEA. All Rights Reserved. This model is based on Qwen, which is licensed under the
Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) Alibaba Cloud. All Rights Reserved.
Rex-Omni comes from a series of prior works. If you’re interested, you can take a look.
1@misc{jiang2025detectpointprediction,
2 title={Detect Anything via Next Point Prediction},
3 author={Qing Jiang and Junan Huo and Xingyu Chen and Yuda Xiong and Zhaoyang Zeng and Yihao Chen and Tianhe Ren and Junzhi Yu and Lei Zhang},
4 year={2025},
5 eprint={2510.12798},
6 archivePrefix={arXiv},
7 primaryClass={cs.CV},
8 url={https://arxiv.org/abs/2510.12798},
9}