Spaces:
Running on Zero
Download README.md from hugging-apps/uemo-d1: direct link, hf CLI and curl.
- Browser
- Download file 3.76 kB
-
https://huggingface.co/spaces/hugging-apps/uemo-d1/resolve/main/README.md
- Command line
-
hf download hf://spaces/hugging-apps/uemo-d1/README.md
-
curl -L -o README.md https://huggingface.co/spaces/hugging-apps/uemo-d1/resolve/main/README.md
A newer version of the Gradio SDK is available: 6.32.0
title: UEmo-D1
emoji: π
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 6.17.3
app_file: app.py
short_description: Unified multimodal emotion recognition decision model
python_version: '3.12'
startup_duration_timeout: 1h
π UEmo-D1 β Unified Multimodal Emotion Recognition
A demo of UEmo-D1, an efficient and calibrated decision model for unified
multimodal emotion recognition, built on Qwen/Qwen2.5-Omni-3B.
- Weights:
wudq/UEmo-D1 - Code:
wdqqdw/UEmo-D1 - Paper: huggingface.co/papers/2611.24481
What it does
You give the model an instruction, a list of candidate answers (1β26 alternatives, labelled A, B, C β¦) and a target β text, image, audio, or video+audio β and it returns:
- the chosen option letter + text, and
- the model's calibrated probability distribution over all options.
Unlike a plain generative answer, the decision is taken from a dedicated
bidirectional-prefix / causal-answer attention pass over the option letters, and
the probabilities are tempered by the checkpoint's calibrated temperature
(softmax(logits / 1.0790077648040843)), so the confidence scores are meant to
be read as calibrated.
Example assets
| Asset | Source | Licence |
|---|---|---|
amused.wav, angry.wav, surprised.wav |
Thorsten-Voice TV-44kHz-Full (subset TV-2021.06-Emotional) β German emotional speech by Thorsten MΓΌller |
CC0-1.0 |
woman_sad.jpg, girl_with_dog.jpg, 2_women_arguing.mp4, elderly_woman_laughing.mp4 |
linoyts/repo-to-space-example-inputs / linoyts/repo-to-space-example-videos | CC0-1.0 |
The video examples carry no audio track; the app supplies matched silence for the video's audio slot (the reference pipeline requires audio aligned with every video clip).
Implementation notes
app.py is a 1:1 port of the authors' own inference.py from the model repo β
identical media preprocessing (smart_resize to 224Β²-max, 0.5 s frame
sampling, 16 kHz mono audio), identical processor call (use_audio_in_video=True,
fps=2.0, the same min_pixels/max_pixels), identical calibrated softmax β
with the file-path I/O replaced by in-memory Gradio inputs.
Dependency pins (both are forced, not cosmetic)
transformers==4.57.1βuemo_integration.install()sha256-verifies transformers'models/qwen2_5_omni/modeling_qwen2_5_omni.pyagainst830855078d0c0b159a47041f8942949fd1a6efd39c62127c1387cc3b84058fa3and raisesValueError('Installed model source differs from reviewed source')otherwise. That hash matches transformers4.57.0β4.57.6only (all5.xdiffer), and every4.57.xrequireshuggingface-hub<1.0.sdk_version: 6.17.3+huggingface-hub==0.35.3β gradio>= 6.18.0requireshuggingface-hub>=1.2.0, which contradicts pin (1). Gradio6.17.3requireshuggingface-hub<2.0,>=0.33.5, which intersects4.57.1's>=0.34.0,<1.0at0.35.x. The model card independently prescribeshuggingface_hub==0.35.3.torch==2.8.0/torchvision==0.23.0β the versions the model repo's ownrequirements.txtvalidates, and the matchingpt28-cu128-cp312prebuilt FlashAttention-2 wheel for the ZeroGPU Blackwell (sm_120) runtime.
Licence
The base model is released under the Qwen Research Licence (non-commercial), so this demo inherits it.