Skip to content
Other

ViSeLA-CUHK-PEDES-Baseline-Router

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

2 min readupdated

Модель решает задачу text-based person retrieval (поиск фотографий конкретного человека по его словесному портрету) и работает сразу с английским, китайским, французским и немецким языками. Чекпоинт выпущен авторами одноимённой статьи, получившей награду Outstanding Paper Award на конференции ACM Multimedia 2026, и инициализирован на базе мультимодальной модели CCLM-X2VLM. Внутри связка визуального энкодера BEiT-2 и текстового XLM-RoBERTa с MoE-маршрутизацией (Mixture-of-Experts — распределение текстовых токенов между четырьмя экспертами по смыслу) и общими обучаемыми запросами для сопоставления признаков картинки и текста. Пригодится исследователям компьютерного зрения и разработчикам систем мультиязычного кросс-модального поиска.

Ключевые особенности

  • Понимает поисковые запросы на 4 языках: английском, китайском, французском и немецком.
  • Использует 4 эксперта для маршрутизации токенов по семантике и 4 обучаемых запроса для выравнивания визуальных и текстовых признаков.
  • Архитектура объединяет BEiT-2 base для изображений, XLM-RoBERTa для текста и модуль мультимодального взаимодействия для переранжирования выдачи.
  • Официальный чекпоинт baseline-router версии из репозитория ViSeLA (релиз v1.0.0) с проверочными суммами SHA256.

Что можно сделать

  • Запустить демо-поиск людей по текстовому описанию на собственной галерее изображений через аргументы --image-dir и --query.
  • Воспроизвести оценку точности на мультиязычном бенчмарке CUHK-PEDES(M) и сравнить результаты с полной конфигурацией MultiPedes.
  • Использовать веса как отправную точку для академических экспериментов с кросс-модальными представлениями и семантической маршрутизацией.

Пример

python tools/demo_retrieval.py \
  --checkpoint checkpoints/ViSeLA-CUHK-PEDES-Baseline-Router/visela_cuhk_pedes_baseline_router.pth \
  --config checkpoints/ViSeLA-CUHK-PEDES-Baseline-Router/config.yaml \
  --text-encoder FacebookAI/xlm-roberta-base \
  --top-k 3
ПодробнееМетрики на CUHK-PEDES(M) для этого чекпоинта: средний R@1 — 76.78% (EN: 78.22%, FR: 76.74%, DE: 76.10%, ZH: 76.07%), средний mAP — 68.67%.
Для сравнения: полная версия ViSeLA с предобучением на MultiPedes и LogSumExp similarity в статье достигает 77.94% Avg R@1 и 70.16% Avg mAP.
Параметры чекпоинта: инициализация CCLM-X2VLM, refiner.sim_type: avg, routing_temp: 0.85.
Ограничения: кастомный формат PyTorch (.pth), требует установки официального окружения ViSeLA и скачивания картинок датасета отдельно; предназначен для академических исследований.
Discuss Telegram 0 4

Will it run?

Runs in BF16

Fits without quantisation.

  • BF16weights 1.6 GB · ready files2.3 GB
  • FP8 / INT8recommendedweights 0.8 GB1.4 GB
  • 4-bitweights 0.5 GB1.0 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

What to get for this model

Massed ComputeOpen Massed Compute

Your own GPU: FP8 / INT8 — from RTX 2060 · BF16 — from RTX 2060

Massed Compute hourly prices, November 2026. The discounted price applies with the coupon at checkout.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # linda23153/ViSeLA-CUHK-PEDES-Baseline-Router
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download linda23153/ViSeLA-CUHK-PEDES-Baseline-Router --local-dir ~/models/ViSeLA-CUHK-PEDES-Baseline-Router
    # The model is in ~/models. How to run it is in the model card (link above).
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of ViSeLA-CUHK-PEDES-Baseline-Router (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

linda23153/ViSeLA-CUHK-PEDES-Baseline-Router
Author
linda23153
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

40

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments