| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Hai Zhang*
Siqi Liang*
Li Chen
Yuxian Li
Yukuan Xu
Yichao Zhong
Fu Zhang†
Hongyang Li†
The University of Hong Kong
SparseVideoNav introduces video generation models to real-world beyond-the-view vision-language navigation for the first time. It achieves sub-second trajectory inference with a sparse future spanning a 20-second horizon, yielding a remarkable 27× speed-up. Real-world zero-shot experiments show 2.5× higher success rate than state-of-the-art LLM baselines and mark the first realization in challenging night scenes.
Developers: Hai Zhang and Siqi Liang
Important
🌟 Stay up to date at opendrivelab.com!
Requirements
# 1. Clone the repository
git clone https://github.com/OpenDriveLab/SparseVideoNav.git
cd SparseVideoNav
# 2. Create virtual environment and install dependencies
uv sync --all-groups
# 3. Activate the environment
source .venv/bin/activate--all-groups also installs flash-attn. Building it from source takes a few minutes on first install.
Download the SparseVideoNav pipeline checkpoint and place it under models/SparseVideoNav-Models/:
| Component | Download |
|---|---|
| SparseVideoNav pipeline checkpoint | 🤗 HuggingFace |
Expected directory layout after download:
models/SparseVideoNav-Models/
├── google/
│ └── umt5-xxl/
│ ├── special_tokens_map.json
│ ├── spiece.model
│ ├── tokenizer.json
│ └── tokenizer_config.json
├── models_t5_umt5-xxl-enc-bf16.pth
├── Wan2.1_VAE.pth
└── svn_ckpt/
├── config.json
└── diffusion_pytorch_model.safetensors
If you place the checkpoint elsewhere, update ckpt_path in config/inference.yaml or override it on the command line.
python inference.py video_path=/path/to/input.mp4 'prompt=turn right'Results are written to outputs/<timestamp>_<video_name>/:
Key overrides:
| Parameter | Default | Description |
|---|---|---|
| video_path | — | Input video path (required) |
| prompt | — | Language instruction (required) |
| output_path | outputs | Root output directory |
| ckpt_path | models/SparseVideoNav-Models | Pipeline checkpoint directory |
| inference.device | cuda:0 | Target device |
| inference.denoise_steps | 4 | Denoising steps (higher → better quality) |
Example with overrides:
python inference.py \
video_path=/path/to/input.mp4 \
'prompt=walk forward and turn left' \
ckpt_path=/path/to/checkpoint \
inference.device=cuda:0 \
inference.denoise_steps=8python gradio_interface.pyOpens a local demo at http://0.0.0.0:7860. Upload a video, enter a navigation instruction, and click Run Prediction.
Common options:
| Flag | Default | Description |
|---|---|---|
| --ckpt_path | from config | Override checkpoint directory |
| --device | cuda:0 | Target device |
| --port | 7860 | Server port |
| --share | False | Create a public Gradio share link |
from omegaconf import OmegaConf
from inference import SVNPipeline
cfg = OmegaConf.load("config/inference.yaml")
cfg.ckpt_path = "/path/to/checkpoint"
cfg.inference.device = "cuda:0"
pipeline = SVNPipeline.from_pretrained(cfg)
# Returns np.ndarray (T, H, W, C) uint8
video = pipeline(video="/path/to/input.mp4", text="turn right")For direct access to the latent-space model:
from sparseVideoNav.svn_model import SVNModel
model = SVNModel.from_pretrained("/path/to/checkpoint/svn_ckpt")For further inquiries or assistance, please contact zhanghenryhai12138@gmail.com or liangsiqi@connect.hku.hk
All the data and code within this repo are under CC BY-NC-SA 4.0.
@article{zhang2026sparse,
title={Sparse Video Generation Propels Real-World Beyond-the-View Vision-Language Navigation},
author={Zhang, Hai and Liang, Siqi and Chen, Li and Li, Yuxian and Xu, Yukuan and Zhong, Yichao and Zhang, Fu and Li, Hongyang},
journal={arXiv preprint arXiv:2602.05827},
year={2026}
}| Back | FazBrowse Home | New Git URL |