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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
size_categories:
|
| 4 |
+
- 1K<n<10K
|
| 5 |
---
|
| 6 |
+
<div align="center">
|
| 7 |
+
|
| 8 |
+
# π― EPIC-Bench: Can VLMs Perceive the Embodied Real-World?
|
| 9 |
+
|
| 10 |
+
[](https://epic-bench.github.io/EPIC-Bench/)
|
| 11 |
+
[](https://epic-bench.github.io/EPIC-Bench/)
|
| 12 |
+
[](https://epic-bench.github.io/EPIC-Bench/)
|
| 13 |
+
[](#-epic-bench-evaluation-toolkit)
|
| 14 |
+
[](#-license)
|
| 15 |
+
|
| 16 |
+
[**Homepage**](https://epic-bench.github.io/EPIC-Bench/) | [**Paper**](https://epic-bench.github.io/EPIC-Bench/) | [**Dataset**](https://epic-bench.github.io/EPIC-Bench/) | [**Leaderboard**](https://epic-bench.github.io/EPIC-Bench/)
|
| 17 |
+
|
| 18 |
+
</div>
|
| 19 |
+
|
| 20 |
+
## π Overview
|
| 21 |
+
|
| 22 |
+
> This repo contains the official evaluation code and dataset for the paper
|
| 23 |
+
> **"EPIC-Bench: Can VLMs Perceive the Embodied Real-World?"**
|
| 24 |
+
|
| 25 |
+
**EPIC-Bench** is a **Mask-Grounding-based** benchmark designed to evaluate a VLMβs **Visual Perception** capability in **Embodied Scenarios**.
|
| 26 |
+
|
| 27 |
+
<p align="center">
|
| 28 |
+
<img src="https://github.com/wei0623kb/EPIC-Bench-Eval/blob/main/images/teaser.png?raw=true" alt="EPIC-Bench teaser" width="100%"/>
|
| 29 |
+
</p>
|
| 30 |
+
|
| 31 |
+
π EPIC-Bench covers **3 High-Level Categories** and **23 Task Types**, following the realistic **Embodied Workflow**:
|
| 32 |
+
|
| 33 |
+
- π― **TargetLocalization**: **Pinpoint** the right object in the scene from a natural-language instruction.
|
| 34 |
+
- π§ **Navigation**: **Approach** the target step by step by reading key visual cues along the way.
|
| 35 |
+
- π€² **Manipulation**: **Operate** on the target through fine-grained, action-oriented **Grounded Perception**.
|
| 36 |
+
|
| 37 |
+
The goal is to measure whether models can reliably perceive the critical **Visual** information required throughout the **Embodied Process**.
|
| 38 |
+
|
| 39 |
+
## β¨ Highlights
|
| 40 |
+
|
| 41 |
+
- **Embodied-Scenario** evaluation of VLM **Visual Perception** capability.
|
| 42 |
+
- Focus on **Visual Grounding / Perception** without language shortcut exploitation.
|
| 43 |
+
- **Diverse** and **Fine-Grained** task design.
|
| 44 |
+
|
| 45 |
+
## π° News
|
| 46 |
+
|
| 47 |
+
- ~~[2026.5.10] π Huggingface Dataset and evaluation code are available!~~
|
| 48 |
+
- [2026.5.10] π We released the ArXiv paper.
|
| 49 |
+
|
| 50 |
+
## π Todo
|
| 51 |
+
|
| 52 |
+
- [x] Evaluation code for EPIC-Bench
|
| 53 |
+
- [ ] Support an online leaderboard
|
| 54 |
+
- [ ] Make the evaluation pipeline compatible with mask outputs
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
# π§° EPIC-Bench Evaluation Toolkit
|
| 58 |
+
|
| 59 |
+
This repository provides an end-to-end evaluation pipeline for **EPIC-Bench** on both:
|
| 60 |
+
|
| 61 |
+
- **Open-Source VLMs** via the **[ms-swift](https://swift.readthedocs.io/zh-cn/latest/)** inference interface
|
| 62 |
+
- **Closed-Source / API-Based VLMs** via **[lmms-eval](https://github.com/EvolvingLMMs-Lab/lmms-eval)**
|
| 63 |
+
|
| 64 |
+
It includes **Dataset Conversion** utilities, **Inference Launchers**, **Response Standardization**, **Scoring**, and a Streamlit-based **Visualization** tool.
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
## π Evaluation guide
|
| 68 |
+
|
| 69 |
+
EPIC-Bench evaluation typically consists of the following stages.
|
| 70 |
+
|
| 71 |
+
### βοΈ 0) Environment setup
|
| 72 |
+
|
| 73 |
+
Create a Python environment (example):
|
| 74 |
+
|
| 75 |
+
```bash
|
| 76 |
+
conda create -n epicbench python==3.10
|
| 77 |
+
conda activate epicbench
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
Suggested dependencies (reference; choose what matches your model stack):
|
| 81 |
+
|
| 82 |
+
| Model | Environment |
|
| 83 |
+
|------|-------------|
|
| 84 |
+
| General environment (compatible with Qwen2.5-VL/Qwen3-VL/InternVL/LLaVA-VL/Phi-4/gemma/RynnBrain/RoboBrain2/) | `pip install uv`<br>`uv pip install 'ms-swift' --torch-backend=auto`<br>`pip install vllm==0.15.1` |
|
| 85 |
+
| Qwen3.5 | `git clone https://github.com/vllm-project/vllm.git`<br>`cd vllm`<br>`pip install -e .`<br>`git clone https://github.com/modelscope/ms-swift.git`<br>`cd ms-swift`<br>`pip install -e .`<br>`pip install transformers==5.2.0 qwen-vl-utils` |
|
| 86 |
+
| Step models | `pip install onnxruntime-gpu tokenizers openai-whisper funasr vllm==0.15.1`<br>`git clone https://github.com/modelscope/ms-swift.git`<br>`cd ms-swift`<br>`pip install -e .` |
|
| 87 |
+
| glm4.6 | `pip install uv`<br>`uv pip install 'ms-swift' --torch-backend=auto`<br>`pip install vllm==0.15.1 transformers==5.2.0` |
|
| 88 |
+
|
| 89 |
+
For the visualization tool:
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
pip install streamlit pillow numpy pandas pycocotools
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
### π¦ 1) Data preparation
|
| 96 |
+
|
| 97 |
+
#### 1.1 Download raw annotations
|
| 98 |
+
|
| 99 |
+
Download EPIC-Bench raw annotation data (and the referenced images) from the official release page (e.g., Hugging Face / ModelScope) and place them under:
|
| 100 |
+
|
| 101 |
+
```
|
| 102 |
+
dataset/annotation/EPIC_Bench
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
#### 1.2 Build ms-swift inference data (swift format)
|
| 106 |
+
|
| 107 |
+
Generate ms-swift compatible inference JSON files from raw annotations:
|
| 108 |
+
|
| 109 |
+
```bash
|
| 110 |
+
bash scripts/build_swift_data.sh \
|
| 111 |
+
ANN_ROOT=dataset/annotation/EPIC_Bench \
|
| 112 |
+
OUT_DIR=dataset/swift_data/EPIC_Bench
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
Outputs will be written to:
|
| 116 |
+
|
| 117 |
+
```
|
| 118 |
+
dataset/swift_data/EPIC_Bench
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
#### 1.3 Customize prompts (optional)
|
| 122 |
+
|
| 123 |
+
You can customize prompts and response formats in:
|
| 124 |
+
|
| 125 |
+
- `tools/data_gen/prompts/`
|
| 126 |
+
- `tools/data_gen/converters/`
|
| 127 |
+
|
| 128 |
+
For best compatibility with the scoring pipeline, we recommend starting with the default settings in this repo.
|
| 129 |
+
|
| 130 |
+
### π€ 2) Inference
|
| 131 |
+
|
| 132 |
+
Run inference using either:
|
| 133 |
+
|
| 134 |
+
- example per-model scripts under `scripts/infer/<MODEL_FAMILY>/`, or
|
| 135 |
+
- the unified launcher `scripts/infer.sh`
|
| 136 |
+
|
| 137 |
+
Recommended (unified launcher):
|
| 138 |
+
|
| 139 |
+
```bash
|
| 140 |
+
bash scripts/infer.sh \
|
| 141 |
+
--model Qwen3_VL \
|
| 142 |
+
--data dataset/swift_data/EPIC_Bench \
|
| 143 |
+
--out outputs/model_response/swift_format
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
By default, raw ms-swift outputs are organized under:
|
| 147 |
+
|
| 148 |
+
```
|
| 149 |
+
outputs/model_response/swift_format/<model_series>/<model_name>.jsonl
|
| 150 |
+
```
|
| 151 |
+
|
| 152 |
+
Closed-source / API inference (optional):
|
| 153 |
+
|
| 154 |
+
- `scripts/infer/api/` contains an example script for `lmms-eval`.
|
| 155 |
+
- You must configure API keys via environment variables and **must not commit credentials** to GitHub.
|
| 156 |
+
|
| 157 |
+
### π 3) Standardize responses (std_format)
|
| 158 |
+
|
| 159 |
+
Convert raw ms-swift outputs into EPIC-Bench **standard format** while preserving directory structure:
|
| 160 |
+
|
| 161 |
+
```bash
|
| 162 |
+
bash scripts/format_response.sh \
|
| 163 |
+
--in outputs/model_response/swift_format \
|
| 164 |
+
--out outputs/model_response/std_format
|
| 165 |
+
```
|
| 166 |
+
|
| 167 |
+
If you evaluate a custom model/framework outside this repo, please ensure your outputs follow the **same std-format schema produced by** `tools/formatting/format_response.py`.
|
| 168 |
+
|
| 169 |
+
### π 4) Scoring
|
| 170 |
+
|
| 171 |
+
After obtaining standardized responses, compute detailed scores:
|
| 172 |
+
|
| 173 |
+
```bash
|
| 174 |
+
bash scripts/evaluate.sh \
|
| 175 |
+
--in outputs/model_response/std_format \
|
| 176 |
+
--out outputs/scores
|
| 177 |
+
```
|
| 178 |
+
|
| 179 |
+
The scorer produces:
|
| 180 |
+
|
| 181 |
+
- overall / category / type breakdowns
|
| 182 |
+
- per-sample details (unless you pass `--no-details`)
|
| 183 |
+
|
| 184 |
+
Supported formats:
|
| 185 |
+
|
| 186 |
+
- **bbox** (most tasks)
|
| 187 |
+
- **point** (FeasiblePath tasks)
|
| 188 |
+
|
| 189 |
+
Mask-based evaluation is planned (releasing soon).
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
```bash
|
| 193 |
+
bash scripts/evaluate.sh
|
| 194 |
+
```
|
| 195 |
+
|
| 196 |
+
### π 5) Visualization
|
| 197 |
+
|
| 198 |
+
Launch the Streamlit visualization tool and default-load results from `outputs/scores`:
|
| 199 |
+
|
| 200 |
+
```bash
|
| 201 |
+
bash scripts/visualization.sh
|
| 202 |
+
```
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
## π Leaderboard and data examples
|
| 206 |
+
|
| 207 |
+
Please refer to the [EPIC-Bench Homepage](https://epic-bench.github.io/EPIC-Bench/) for:
|
| 208 |
+
|
| 209 |
+
- Leaderboard
|
| 210 |
+
- Full dataset downloads
|
| 211 |
+
- EPIC-Bench data examples
|
| 212 |
+
|
| 213 |
+
## π Citation
|
| 214 |
+
|
| 215 |
+
```BibTeX
|
| 216 |
+
@article{EPIC-Bench,
|
| 217 |
+
title={EPIC-Bench: Can VLMs Perceive the Embodied Real-World?},
|
| 218 |
+
author={XXX, XXX, XXX},
|
| 219 |
+
journal={},
|
| 220 |
+
year={2026}
|
| 221 |
+
}
|
| 222 |
+
```
|
| 223 |
+
|
| 224 |
+
## π License
|
| 225 |
+
|
| 226 |
+
Please add an explicit `LICENSE` file before open-sourcing. If EPIC-Bench annotations or images have redistribution constraints, publish them separately (e.g., Hugging Face / ModelScope) and keep this repo code-only + small examples.
|
| 227 |
+
|
| 228 |
+
## π Acknowledgements
|
| 229 |
+
|
| 230 |
+
- **ms-swift** for open-source VLM inference: [ms-swift](https://swift.readthedocs.io/zh-cn/latest/)
|
| 231 |
+
- **lmms-eval** for API/closed-source evaluation: [lmms-eval](https://github.com/EvolvingLMMs-Lab/lmms-eval)
|