multimodalart's picture
multimodalart HF Staff
Upload folder using huggingface_hub
c06b9e1 verified
|
Raw History Blame Contribute Delete
1.31 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
title: Hi-Token Visual Grounding
emoji: 🎯
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 6.31.0
app_file: app.py
short_description: Locate any region in an image from a text description
python_version: '3.12'
startup_duration_timeout: 30m

Hi-Token: Hierarchical Coordinate Tokenization for Generative Visual Grounding

Demo of Hi-Token (xyzzzh/Hi-Token, a Qwen2.5-VL-3B fine-tune trained with the Hi-R1 recipe) for the referring expression grounding task: given an image and a natural-language expression, the model generates the bounding box of the described region.

Instead of emitting plain numbers, each coordinate is generated as three axis-specific digit tokens — <x_hundreds_4><x_tens_2><x_ones_7> → 427 — so a full box is 12 special tokens in the normalized [0, 999] coordinate space. The demo parses those tokens, maps them to pixel coordinates, and draws the box on the image.

Example images in this Space come from linoyts/repo-to-space-example-inputs (CC0).