File size: 2,130 Bytes
9b047c3
 
47715dc
 
9b047c3
 
 
 
47715dc
 
 
9b047c3
 
57b3aef
 
9b047c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
license: cc-by-4.0
pipeline_tag: image-text-to-text
library_name: transformers
---

Welcome to **EmoCaliber**, an MLLM for reliable visual emotion comprehension.

**Paper:** [EmoCaliber: Advancing Reliable Visual Emotion Comprehension via Confidence Verbalization and Calibration](https://huggingface.co/papers/2512.15528)
**Code / Project Page:** [https://github.com/wdqqdw/EmoCaliber](https://github.com/wdqqdw/EmoCaliber)

Given an image, EmoCaliber is trained to produce structured affective reasoning following this pipeline: (1) identifying prominent visual elements in the image; (2) providing detailed descriptions of human subjects, if present; (3) describing contextual elements beyond the subjects; (4) discussing how these elements interact; and (5) deriving an emotional conclusion based on the preceding observations. The final emotion prediction integrates these visual cues. After outputting the prediction, EmoCaliber also emits a confidence score wrapped in a \<confidence\> tag, which reflects the model’s self-assessed certainty about its answer.

EmoCaliber is implemented based on Qwen2.5-VL-7B and can perform both inference and training in an identical manner.

Standard prompt templates:

**For emotion recognition**:

```json
{
  "conversations": [
    {
      "role": "user",
      "content": [
        {"type": "image", "image": "IMAGE_PATH"},
        {
          "type": "text",
          "text": "Which emotion might this image evoke? Choose the most likely one from ['EMOTION_CATEGORIES']. Think step by step. Respond in the format: <think>{your reasoning}</think><answer>{your final answer}</answer>."
        }
      ]
    }
  ]
}
```

**For sentiment analysis**:

```json
{
  "conversations": [
    {
      "role": "user",
      "content": [
        {"type": "image", "image": "IMAGE_PATH"},
        {
          "type": "text",
          "text": "What sentiment might this image evoke? Choose the most likely one from ['positive', 'negative']. Think step by step. Respond in the format: <think>{your reasoning}</think><answer>{your final answer}</answer>."
        }
      ]
    }
  ]
}
```