Improve dataset card: Add paper/project/code links, task categories, sample usage, and correct license

#2
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +155 -3
README.md CHANGED
@@ -1,3 +1,155 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - robotics
5
+ ---
6
+
7
+ # From Forecasting to Planning: Policy World Model for Collaborative State-Action Prediction
8
+
9
+ This repository contains the dataset and resources associated with the paper "[From Forecasting to Planning: Policy World Model for Collaborative State-Action Prediction](https://huggingface.co/papers/2510.19654)".
10
+
11
+ **Project Page:** [https://6550zhao.github.io/Policy-World-Model/](https://6550zhao.github.io/Policy-World-Model/)
12
+ **Code Repository:** [https://github.com/6550Zhao/Policy-World-Model](https://github.com/6550Zhao/Policy-World-Model)
13
+
14
+ ## πŸ“° News
15
+
16
+ - **[2025-09-18] πŸŽ‰ Our paper has been accepted to NeurIPS 2025 as a poster! πŸŽ‰**
17
+
18
+ ---
19
+
20
+ ## πŸ–ΌοΈ Project Overview
21
+
22
+ <!-- Project Main Figure Placeholder -->
23
+ <div align="center">
24
+ <img src="https://github.com/6550Zhao/Policy-World-Model/raw/main/assets/paper_figure.png" alt="Policy World Model Overview" width="800">
25
+ </div>
26
+
27
+ The Policy World Model (PWM) introduces a novel driving paradigm that integrates world modeling and trajectory planning within a unified architecture. It leverages learned world knowledge through an action-free future state forecasting scheme to benefit planning, mimicking human-like anticipatory perception for more reliable performance. The method also features a dynamically enhanced parallel token generation mechanism for efficient video forecasting.
28
+
29
+ ---
30
+
31
+ ## πŸš€ Key Features
32
+
33
+ - πŸ”— **Unified Framework**: Integrates world modeling and trajectory planning in a single architecture
34
+ - 🧠 **Human-like Anticipation**: Mimics anticipatory perception through collaborative state-action prediction
35
+ - ⚑ **Efficient Video Forecasting**: Dynamic parallel token generation with context-guided tokenizer
36
+ - πŸ“Š **State-of-the-Art Performance**: Exceeds existing methods on benchmark datasets
37
+
38
+ ---
39
+
40
+ ## πŸ“Š Results
41
+
42
+ ### Performance Comparison
43
+
44
+ <!-- Replace with your results table image -->
45
+ <div align="center">
46
+ <img src="https://github.com/6550Zhao/Policy-World-Model/raw/main/assets/results_table.png" alt="Performance Comparison Results" width="800">
47
+ </div>
48
+
49
+ ---
50
+
51
+ ## Sample Usage (Guidlines)
52
+ This guide provides step-by-step instructions for fine-tuning and evaluating the Policy-World-Model (PWM) on NuScenes and NavSim datasets. Ensure you have completed the environment setup and data preparation before proceeding.
53
+
54
+ ### 1. Clone the Repository
55
+ First, clone the repository and navigate to the project root directory:
56
+ ```bash
57
+ git clone https://github.com/6550Zhao/Policy-World-Model.git
58
+ cd Policy-World-Model # Enter the project folder (replace with your actual path if needed)
59
+ ```
60
+ ### 2. Create & Activate Conda Environment
61
+ Create and activate the environment with the provided environment.yaml:
62
+ ```bash
63
+ # Create environment from the configuration file
64
+ conda env create -f environment.yaml
65
+
66
+ # Activate the PWM environment (name: pwm)
67
+ conda activate pwm
68
+ ```
69
+ ### 3. Data Preparation
70
+ #### 3.1 Required Data Files
71
+ Download the following resources to run fine-tuning/evaluation:
72
+
73
+ Pre-trained weights: Download from the official website ([Download](https://huggingface.co/zzzz12334/Policy_World_Model/tree/main)).
74
+
75
+ Dataset files: Download dataset files from the specified source (for convenience, some required additional dataset files are available for download here: [Download](https://huggingface.co/datasets/talas/pwm_datasets/tree/main)).
76
+
77
+ #### 3.2 Dataset Directory Structure
78
+
79
+ Organize your dataset folder as follows (ensure the path matches the configuration in yaml files):
80
+ ```
81
+ dataset/
82
+ β”œβ”€β”€ nuscenes/
83
+ β”‚ β”œβ”€β”€ maps/
84
+ β”‚ β”œβ”€β”€ samples/
85
+ β”‚ β”œβ”€β”€ sweeps/
86
+ β”‚ └── ominidrive/ # Download from the provided link
87
+ └── navsim/
88
+ β”œβ”€β”€ maps/
89
+ β”œβ”€β”€ cache/
90
+ β”œβ”€β”€ navsim_logs/
91
+ β”œβ”€β”€ sensor_blobs/
92
+ β”œβ”€β”€ nuplan_img_logs/ # Download from the provided link
93
+ β”œβ”€β”€ nuplan_scene_blobs/
94
+ β”‚ β”œβ”€β”€ 10hz_train/
95
+ β”‚ β”‚ β”œβ”€β”€ 2021.05.12.19.36.12_veh-35_00005_00204/
96
+ β”‚ β”‚ β”œβ”€β”€ 2021.05.12.19.36.12_veh-35_00215_00405/
97
+ β”‚ β”‚ └── ... (other training scenes)
98
+ β”‚ β”œβ”€β”€ 10hz_test/
99
+ β”‚ └── 10hz_val/
100
+ ```
101
+ ### 4. Evaluation
102
+ 4.1 Evaluate on NuScenes
103
+ Modify the configuration file to enable evaluation mode:
104
+ Open configs/sft_nuscenes/nuscenes.yaml
105
+ Set experiment.eval_only = True (ensure no extra spaces or syntax errors)
106
+ Run the evaluation script:
107
+ ```bash
108
+ bash scripts/finetune/nuscenes/run_sft_nusc_no_ego_baseline.sh
109
+ ```
110
+ 4.2 Evaluate on NavSim
111
+ Modify the configuration file to enable evaluation mode:
112
+ Open configs/sft_nuscenes/nuscenes.yaml
113
+ Set experiment.eval_only = True
114
+ Run the evaluation script:
115
+ ```bash
116
+ bash scripts/finetune/navsim/run_sft_navsim_baseline.sh
117
+ ```
118
+ ### 5. Fine-tuning
119
+ 5.1 Fine-tune on NuScenes
120
+ Modify the configuration file to enable training mode:
121
+ Open configs/sft_nuscenes/nuscenes.yaml
122
+ Set experiment.eval_only = False
123
+ Start fine-tuning:
124
+ ```bash
125
+ bash scripts/finetune/nuscenes/run_sft_nusc_no_ego_baseline.sh
126
+ ```
127
+ 5.2 Fine-tune on NavSim
128
+ Modify the configuration file to enable training mode:
129
+ Open configs/sft_nuscenes/nuscenes.yaml
130
+ Set experiment.eval_only = False
131
+ Start fine-tuning:
132
+ ```bash
133
+ bash scripts/finetune/navsim/run_sft_navsim_baseline.sh
134
+ ```
135
+
136
+ ---
137
+
138
+ ## πŸ“– Citation
139
+
140
+ If you find our work useful, please cite:
141
+
142
+ ```bibtex
143
+ @inproceedings{zhao2025pwm,
144
+ title={From Forecasting to Planning: Policy World Model for Collaborative State-Action Prediction},
145
+ author={Zhao, Zhida and Fu, Talas and Wang, Yifan and Wang, Lijun and Lu, Huchuan},
146
+ booktitle={Advances in Neural Information Processing Systems},
147
+ year={2025}
148
+ }
149
+ ```
150
+
151
+ ---
152
+
153
+ ## πŸ“„ License
154
+
155
+ This project is licensed under the MIT License.