/ Модель

Характеристики

Контекст
16 384 токена
Размер весов
9,2 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.5-4B
Библиотека
transformers
Опубликована
19 окт 2026

Xiaomi-Lens-0

Изображение и текст → текст3 профессии

Xiaomi-Lens-0 — мультимодальная модель на основе Qwen3.5-4B для локализации и сегментации объектов на изображениях по текстовым запросам.

1 088скачиваний за 30 дней32лайкавеса обновлены28 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Xiaomi-Lens-0 — мультимодальная модель на 4 млрд параметров, разработанная SeerRay Lab на основе Qwen3.5-4B. К модели добавлен компактный декодер пиксельных масок, а обучение сочетает языковую и пиксельную супервизию. Она принимает изображение и текстовый запрос, а в ответе может формировать текст и маски областей изображения.

Модель предназначена для понимания выражений, указывающих на объекты, их сегментации и локализации нескольких объектов, а также для сегментации с рассуждением, визуальных запросов в сценариях взаимодействия с физической средой и детального зрительного восприятия. В тестах LensBench оценивалась на общих, аэроснимках, дорожных и панорамных изображениях; результаты показывают сильные стороны при явных запросах и на некоторых типах сцен, тогда как неявные запросы и несколько целей в панорамах остаются сложными.

Для запуска предусмотрен класс XiaomiLensQwen3_5ForConditionalGeneration из отдельного репозитория инференса. Указаны требования Python 3.10+, CUDA GPU с поддержкой bfloat16 и FlashAttention-2; также описан вариант обслуживания через vLLM. Лицензия модели — Apache-2.0. Маски могут быть неточными или пропускать объекты, особенно если области малы, перекрыты или неоднозначны; при использовании масок нужно сохранять преобразование координат и изменение размера изображения, выполненные процессором.

Сценарии применения

  • сегментация объекта на изображении по текстовому описанию
  • поиск и выделение нескольких объектов на сцене
  • сегментация объектов по запросам с неявными указаниями
  • локализация объектов на аэрофотоснимках и панорамах
  • визуальное выделение объектов в дорожных сценах

Ограничения

Модель может пропускать объекты или выдавать неточные рамки и маски, особенно для малых, перекрытых или неоднозначных областей; неявные запросы и несколько целей в панорамных сценах остаются сложными. При обработке масок необходимо учитывать преобразование размера изображения и координат, выполненное процессором.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Xiaomi-Lens-0 is a 4B multimodal language model built on Qwen3.5-4B. It adds a lightweight pixel-mask decoder and is trained with joint language and mask supervision. Each generated <|mask|> token identifies an image region that the decoder turns into a segmentation mask.

The model supports referring expression comprehension and segmentation, multi-instance grounding, reasoning segmentation, embodied referring, and fine-grained visual perception. It can produce masks in its final answer or during reasoning.

This repository contains the model weights, configuration, tokenizer, processor, and chat template. Inference uses the XiaomiLensQwen3_5ForConditionalGeneration class from the accompanying Xiaomi-Lens-0 code repository. Install that package to load the model and decode masks.

📰 News

🎬 Overview video

Watch on the project page · Download the MP4

🖼️ Task showcases

Recorded model outputs across six task domains. Each task includes four examples from the GitHub project.

Referring Expression Comprehension

Referring Expression Segmentation

Multi-Instance Grounding

Reasoning Segmentation

Embodied Referring

Fine-Grained Perception

Quick start

Inference requires Python 3.10 or later and a CUDA GPU with bfloat16 and FlashAttention-2 support. From a checkout of the Xiaomi-Lens-0 inference repository, install the dependencies and package:

pip install -r requirements.txt
pip install -e .

Run the inference script with the downloaded checkpoint directory and an image:

python infer.py \
  --checkpoint /path/to/Xiaomi-Lens-0 \
  --image /path/to/image.jpg \
  --text 'Locate all instances in the image that match the description "the cat on the left". Report bbox coordinates and masks.' \
  --output result.jpg --draw-bbox

The script prints the generated text and saves an image with the predicted masks and bounding boxes. --text accepts a complete instruction; the checkpoint's chat template supplies the image tokens and assistant prefix.

Each grounded instance is represented as <bbox>[x1, y1, x2, y2]</bbox><mask><|mask|></mask>, with box coordinates normalized to 0–1000. Mask decoding uses the contextual state of each <|mask|> token and the vision encoder's features. The inference script excludes masks inside <think> from the final-answer overlay.

Serving with vLLM

Use a separate environment for vLLM serving. From the inference repository, install the serving dependencies:

pip install -e ".[vllm]"

Run text generation and mask decoding in separate terminals:

# Terminal 1: text generation on port 8000
bash src/xiaomi_lens/integrations/vllm/run_vllm.sh /path/to/Xiaomi-Lens-0

# Terminal 2: mask decoding on port 8001
bash src/xiaomi_lens/integrations/vllm/run_vllm_mask.sh /path/to/Xiaomi-Lens-0

# Terminal 3: query both services
python -m xiaomi_lens.integrations.vllm.client \
  --image /path/to/image.jpg --query "the cat on the left" --output result.png

The client must run on the same machine as the services because it sends the image path to the mask server. The launchers prepare temporary checkpoint views for vLLM. If you override MAX_PIXELS, use the same value for both services.

Training and evaluation

Training first pretrains the mask decoder, then fine-tunes the full model with language and pixel-level supervision. The inference repository's README provides the benchmark tables and recorded examples across the six capability domains.

LensBench

Evaluate instruction-conditioned segmentation across general, aerial, driving, and panoramic imagery with LensBench.

The original baseline results are reported in Table 7 in Section 4.3 of the Xiaomi-Lens-0 Technical Report (arXiv v1). The table below also includes the subsequently added GPT-6-Astra results and is synchronized with the project results.

Marginal results pool single and multiple targets. Each cell reports cIoU / Prec@0.5 (%, higher is better). Bold marks the best score, and underlining marks the second-best score for each metric and column, including ties.

MethodExplicitImplicitGeneralAerialDrivingPanoramic
GPT-6-Astra72.6 / 86.371.0 / 84.074.1 / 86.261.7 / 76.977.6 / 89.068.9 / 88.3
GPT-5.6-Sol63.8 / 73.261.2 / 70.068.4 / 67.942.2 / 58.568.4 / 81.857.1 / 78.3
Gemini-3.6-Flash61.4 / 74.561.0 / 70.363.6 / 65.850.1 / 62.566.8 / 81.060.8 / 80.3
MiMo-V2.551.4 / 52.247.4 / 46.854.2 / 45.232.6 / 38.650.5 / 52.845.4 / 61.4
Seed-2.1-Pro62.1 / 70.255.9 / 64.560.6 / 56.750.1 / 58.566.8 / 77.459.9 / 76.7
Qwen3.8-Max67.6 / 69.264.5 / 63.874.2 / 79.733.5 / 62.558.0 / 57.760.8 / 66.2
Kimi-K329.4 / 39.128.3 / 33.038.5 / 26.113.8 / 44.947.2 / 31.113.4 / 42.1
GLM-5.3-Flash44.3 / 37.543.5 / 33.348.9 / 26.328.0 / 33.451.6 / 47.530.6 / 34.4
DeepSeek-V4-Flash-Vision-Exp41.8 / 30.741.1 / 27.346.1 / 28.125.9 / 28.943.9 / 27.932.8 / 31.0
SAM 317.3 / 38.115.4 / 19.523.8 / 24.84.3 / 27.327.7 / 35.111.1 / 27.9
Xiaomi-Lens-04B71.4 / 85.054.7 / 70.063.9 / 79.157.1 / 79.668.6 / 79.462.3 / 72.1

GPT-6-Astra leads cIoU on explicit and implicit instructions and in aerial, driving, and panoramic imagery. Qwen3.8-Max leads cIoU in general imagery (74.2). Xiaomi-Lens-0 ranks second on both explicit-instruction metrics and on cIoU in aerial, driving, and panoramic imagery, and leads aerial Prec@0.5 (79.6). Implicit instructions remain challenging: cIoU drops from 71.4 to 54.7, while Prec@0.5 drops from 85.0 to 70.0. The gap is largest for multiple targets in panoramic scenes, where cIoU falls from 71.8 to 48.9 and Prec@0.5 from 81.3 to 48.7.

Predictions can miss objects or produce inaccurate boxes and masks, particularly for small, occluded, or ambiguous regions. Masks are decoded on the image canvas produced by the processor; preserve the image resizing and coordinate mapping when consuming them. The supplied inference path supports images.

License and attribution

The model is released under the Apache License 2.0.

Xiaomi-Lens-0 derives from Qwen3.5-4B, whose weights are also licensed under Apache 2.0. Xiaomi-Lens-0 adds the pixel-mask decoder and fine-tunes the model for grounded language and segmentation tasks.

  • Qwen3.5-4B: Copyright 2026 Alibaba Cloud.
  • Xiaomi-Lens-0 modifications: Copyright 2026 Xiaomi Corporation.

Citation

@misc{xiaomilens0,
  title         = {Xiaomi-Lens-0 Technical Report},
  author        = {Pei Fu and Yike Liu and Yue Sun and Hanmo Wang and
                   Xiuwen Xi and Ruoceng Zhang and Shaojie Zhang and Tingwei Huang and
                   Chao Jiang and Hang Li and Bingrui Liu and Zhenbo Luo and
                   Heng Qu and Changjian Xu and Ming Xu and Jian Luan},
  year          = {2026},
  eprint        = {2610.23279},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  url           = {https://arxiv.org/abs/2610.23279}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
XiaomiLensQwen3_5ForConditionalGeneration
Ревизия весов
68f57cd

0 моделей