nielsr HF Staff commited on
Commit
e2a04bf
·
verified ·
1 Parent(s): 2532c03

Improve model card: Add pipeline tag, library name, paper link, and content

Browse files

This PR enhances the model card for `ybrrraway/V2LO-7B` by:

- Adding `pipeline_tag: video-text-to-text` to enable discoverability on the Hub.
- Adding `library_name: transformers` as the model is compatible with the `transformers` library, which will enable the automated "how to use" widget.
- Adding a link to the paper ([Video2Layout: Recall and Reconstruct Metric-Grounded Cognitive Map for Spatial Reasoning](https://huggingface.co/papers/2511.16160)) and GitHub repository.
- Populating the content section with a model overview, key features, and a sample usage snippet from the original GitHub repository.

Please review and merge this PR.

Files changed (1) hide show
  1. README.md +62 -4
README.md CHANGED
@@ -1,11 +1,69 @@
1
  ---
2
- license: apache-2.0
 
3
  datasets:
4
  - ybrrraway/V2LO-28K
5
  language:
6
  - en
7
- base_model:
8
- - Qwen/Qwen2.5-VL-7B-Instruct
9
  metrics:
10
  - accuracy
11
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ base_model:
3
+ - Qwen/Qwen2.5-VL-7B-Instruct
4
  datasets:
5
  - ybrrraway/V2LO-28K
6
  language:
7
  - en
8
+ license: apache-2.0
 
9
  metrics:
10
  - accuracy
11
+ pipeline_tag: video-text-to-text
12
+ library_name: transformers
13
+ ---
14
+
15
+ # Video2Layout: Recall and Reconstruct Metric-Grounded Cognitive Map for Spatial Reasoning
16
+
17
+ **Video2Layout** is a framework for reconstructing metric-grounded spatial layouts from video, leveraging continuous object boundary coordinates to quantify inter-object physical distances and object sizes. This equips the model with quantitative spatial computation capabilities, effectively mitigating the inherent ambiguity in describing spatial relationships through natural language. The framework adopts a two-stage SFT-to-RL training paradigm, enhancing the model's spatial reasoning abilities.
18
+
19
+ Paper: [Video2Layout: Recall and Reconstruct Metric-Grounded Cognitive Map for Spatial Reasoning](https://huggingface.co/papers/2511.16160)
20
+ Code: https://github.com/ybrrraway/Video2Layout
21
+
22
+ <p align="center">
23
+ <img src="https://github.com/ybrrraway/Video2Layout/raw/main/figs/show.png" width=100%/>
24
+ </p>
25
+
26
+ ## 🚀 Overview
27
+
28
+ 🎯 **Key Benefits**:
29
+ - **Metric-Grounded Cognitive Map** — an accurate bird's-eye view reflects the specific position of an object in the scene.
30
+ - **Spatial reasoning computation** — rigorous mathematical calculations eliminate the fuzziness of traditional natural language COT description spatial relationship reasoning.
31
+ - **Generalization of real scenes** — only the information of simulation data is needed, and there are no requirements for real scenarios.
32
+
33
+ **QVS-Bench** is a diagnostic benchmark for systematically evaluating how the quantity of image inputs impacts spatial reasoning accuracy. It maintains a substantially uniform proportional distribution across five input scale configurations (1, 4, 8, 12, and 16 frames), ensuring fair and unbiased analysis of the relevant mechanisms.
34
+
35
+ <p align="center">
36
+ <img src="https://github.com/ybrrraway/Video2Layout/raw/main/figs/benchmark.png" width=100%/>
37
+ </p>
38
+
39
+ ## 🛠️ Usage
40
+ ### (Step 1) Install
41
+ ```bash
42
+ conda create -n v2lo python=3.10 -y
43
+ conda activate v2lo
44
+ pip install -r requirements.txt
45
+ ```
46
+
47
+ ### (Step 2) Training
48
+ ```bash
49
+ # SFT training
50
+ bash src/ms-swift/sft.sh
51
+ # Merge model
52
+ bash src/ms-swift/merge_lora.sh
53
+
54
+ # RL training
55
+ bash src/EasyR1/examples/rl.sh
56
+ # Merge model
57
+ cd src/EasyR1
58
+ python3 scripts/model_merger.py --local_dir checkpoints/easy_r1/exp_name/global_step_1/actor
59
+ ```
60
+
61
+ ## Citation
62
+ ```bibtex
63
+ @misc{2511.16160,
64
+ Author = {Yibin Huang and Wang Xu and Wanyue Zhang and Helu Zhi and Jingjing Huang and Yangbin Xu and Yangang Sun and Conghui Zhu and Tiejun Zhao},
65
+ Title = {Video2Layout: Recall and Reconstruct Metric-Grounded Cognitive Map for Spatial Reasoning},
66
+ Year = {2025},
67
+ Eprint = {arXiv:2511.16160},
68
+ }
69
+ ```