Improve dataset card: Add paper/project/code links, task categories, sample usage, and correct license
#2
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,3 +1,155 @@
|
|
| 1 |
-
---
|
| 2 |
-
license:
|
| 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.
|