← 开源
facebookresearch

nwm

Official code for the CVPR 2025 paper "Navigation World Models".

ModelsVision modelsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
698
Star
74
Fork
+3
本周
1
贡献者
创建于 2025-03-12 · 更新于 2026-10-15 · 今日第 14852 名
主要开发者
amirbar

facebookresearch/nwm 排名第 14,852,有 698 个星标。

同类别比较

facebookresearch/nwm 排名第 14,852,此处有 8 个同类条目;instantX-research/Regional-Prompting-FLUX 排名第 14,855。

同类别比较
名称排名指标
microsoft/ClimaX14,781
语言:
Python
星标数:
704
分叉数:
113
简介:
Foundation model for weather & climate
deepglint/unicom14,786
语言:
Python
星标数:
703
分叉数:
34
简介:
Large-Scale Visual Representation Model
Julie-tang00/Point-BERT14,826
语言:
Python
星标数:
700
分叉数:
73
简介:
[CVPR 2022] Pre-Training 3D Point Cloud Transformers with Masked Point Modeling
szq0214/MEAL-V214,847
语言:
Python
星标数:
699
分叉数:
70
简介:
MEAL V2: Boosting Vanilla ResNet-50 to 80%+ Top-1 Accuracy on ImageNet without Tricks. In NeurIPS 2020 workshop.
instantX-research/Regional-Prompting-FLUX14,855
语言:
Python
星标数:
698
分叉数:
31
简介:
Training-free Regional Prompting for Diffusion Transformers 🔥
huyvnphan/PyTorch_CIFAR1014,865
语言:
Python
星标数:
697
分叉数:
161
简介:
Pretrained TorchVision models on CIFAR10 dataset (with weights)
MeiGen-AI/OPSD-V14,880
语言:
Python
星标数:
695
分叉数:
46
简介:
On-Policy Self-Distillation for Post-Training Few-Step Autoregressive Video Generators
stepfun-ai/NextStep-114,891
语言:
Python
星标数:
695
分叉数:
26
简介:
[🚀 ICLR 2026 Oral] NextStep-1: SOTA Autogressive Image Generation with Continuous Tokens. A research project developed by the StepFun’s Multimodal Intelligence team.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Models
子类别Vision models
关键词Embodied, Robotics, Simulation
星标数698
分叉数74
贡献者1
创建日期2025-03-12
更新日期2026-10-15
1 天星标数0
7 天星标数3
排名14,852
上次排名14,693
排名变化-159
7 天星标排名7,287
上次 7 天星标排名7,314
7 天星标排名变化27
总星标排名14,922
上次总星标排名14,891
总星标排名变化-31
国家USA
README 摘录

Navigation World Models, CVPR 2025 (Oral) Official PyTorch Implementation Paper | Project Page | Notebook Demo | Models This repo contains the official PyTorch implementation of Navigation World Models- the Conditional Diffusion Transformer (CDiT) model training code. See the project page for additional results. **Navigation World Models** Amir Bar, Gaoyue "Kathy" Zhou, Danny Tran, Trevor Darrell, Yann LeCun AI at Meta, UC Berkeley, New York University Setup First, download and set up the repo: Data To download and preprocess data, please follow the

steps from NoMaD, specifically: Download the datasets Change the preprocessing resolution from (160, 120) to (320, 240) for higher resolution run and to save each processed dataset to . For SACSon/HuRoN, we used a private version which contains higher resolution images. Please contact the dataset authors for access (we're unable to distribute). Finally, you should have the following structure: Requirements: Training Using torchrun: Or using submitit and slurm (8 machines of 8 gpus): Or locally on one GPU for debug

: Note: torch compile can lead to ~40% faster training speed. However, it might lead to instabilities and inconsistent behvaior across different pytorch versions. Pretrained Models To use a pretrained CDiT/XL model: Download a pretrained model from Hugging Face Place the checkpoint in . /logs/nwm_cdit_xl/checkpoints Evaluation directory to save evaluation results: Evaluate on single time step prediction 1. Prepare ground truth frames for evaluation (one-time) 2. Report metrics compared to GT (LPIPS, DreamSim, FID) Results are

saved in ${RESULTS_FOLDER}/nwm_cdit_xl/ Evaluate on following ground truth trajectories 1. Prepare ground truth frames for evaluation (one-time) 2. Report metrics compared to GT trajectories (LPIPS, DreamSim, FID) Results are saved in ${RESULTS_FOLDER}/nwm_cdit_xl/ Trajectory Evaluation - Planning Using 1-step Cross Entropy Method planning on 8 gpus (sampling 120 trajectories): Results are saved in ${RESULTS_FOLDER}/nwm_cdit_xl/ BibTeX Acknowledgments We thank Noriaki Hirose for his help with the HuRoN dataset and

for sharing his insights, and to Manan Tomar, David Fan, Sonia Joseph, Angjoo Kanazawa, Ethan Weber, Nicolas Ballas, and the anonymous reviewers for their helpful discussions and feedback. License The code and model weights are licensed under Creative Commons Attribution-NonCommercial 4.

常见问题

记录了多少星标和分叉?

facebookresearch/nwm 有 698 个星标和 74 个分叉。

仓库排名是多少?

facebookresearch/nwm 排名第 14,852。

记录的语言和类别是什么?

facebookresearch/nwm 有 698 个星标,语言为 Python,类别为 Models。

哪个仓库排名最接近?

facebookresearch/nwm 与 instantX-research/Regional-Prompting-FLUX 比较,后者排名第 14,855,有 698 个星标。

README

Navigation World Models, CVPR 2025 (Oral)

Official PyTorch Implementation

Paper | Project Page | Notebook Demo | Models

This repo contains the official PyTorch implementation of Navigation World Models- the Conditional Diffusion Transformer (CDiT) model training code. See the project page for additional results.

Navigation World Models

Amir Bar, Gaoyue "Kathy" Zhou, Danny Tran, Trevor Darrell, Yann LeCun

AI at Meta, UC Berkeley, New York University

Setup

First, download and set up the repo:

git clone https://github.com/facebookresearch/nwm
cd nwm

Data

To download and preprocess data, please follow the steps from NoMaD, specifically:

  • Download the datasets
  • Change the preprocessing resolution from (160, 120) to (320, 240) for higher resolution
  • run process_bags.py and process_recon.py to save each processed dataset to path/to/nwm_repo/data/.

For SACSon/HuRoN, we used a private version which contains higher resolution images. Please contact the dataset authors for access (we're unable to distribute).

Finally, you should have the following structure:

nwm/data
├── 
│   ├── 
│   │   ├── 0.jpg
│   │   ├── 1.jpg
│   │   ├── ...
│   │   ├── T_1.jpg
│   │   └── traj_data.pkl
│   ├── 
│   │   ├── 0.jpg
│   │   ├── 1.jpg
│   │   ├── ...
│   │   ├── T_2.jpg
│   │   └── traj_data.pkl
│   ...
└── └── 
    	├── 0.jpg
    	├── 1.jpg
    	├── ...
        ├── T_N.jpg
        └── traj_data.pkl

Requirements:

mamba create -n nwm python=3.10
mamba activate nwm
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu126
mamba install ffmpeg
pip3 install decord einops evo transformers diffusers tqdm timm notebook dreamsim torcheval lpips ipywidgets

Training

Using torchrun:

export NUM_NODES=8
export HOST_NODE_ADDR=
export CURR_NODE_RANK=

torchrun \
  --nnodes=${NUM_NODES} \
  --nproc-per-node=8 \
  --node-rank=${CURR_NODE_RANK} \
  --rdzv-backend=c10d \
  --rdzv-endpoint=${HOST_NODE_ADDR}:29500 \
  train.py --config config/nwm_cdit_xl.yaml --ckpt-every 2000 --eval-every 10000 --bfloat16 1 --epochs 300 --torch-compile 0

Or using submitit and slurm (8 machines of 8 gpus):

python submitit_train_cw.py --nodes 8 --partition  --qos  --config config/nwm_cdit_xl.yaml --ckpt-every 2000 --eval-every 10000 --bfloat16 1 --epochs 300  --torch-compile 0

Or locally on one GPU for debug:

python train.py --config config/nwm_cdit_xl.yaml --ckpt-every 2000 --eval-every 10000 --bfloat16 1 --epochs 300  --torch-compile 0

Note: torch compile can lead to ~40% faster training speed. However, it might lead to instabilities and inconsistent behvaior across different pytorch versions. Use carefuly.

Pretrained Models

To use a pretrained CDiT/XL model:

  • Download a pretrained model from Hugging Face
  • Place the checkpoint in ./logs/nwm_cdit_xl/checkpoints

Evaluation

directory to save evaluation results: export RESULTS_FOLDER=/path/to/res_folder/

Evaluate on single time step prediction

1. Prepare ground truth frames for evaluation (one-time)

python isolated_nwm_infer.py \
    --exp config/nwm_cdit_xl.yaml \
    --datasets recon,scand,sacson,tartan_drive \
    --batch_size 96 \
    --num_workers 12 \
    --eval_type time \
    --output_dir ${RESULTS_FOLDER} \
    --gt 1

2. Predict future state given action

python isolated_nwm_infer.py \
    --exp config/nwm_cdit_xl.yaml \
    --ckp 0100000 \
    --datasets  \
    --batch_size 64 \
    --num_workers 12 \
    --eval_type time \
    --output_dir ${RESULTS_FOLDER}

3. Report metrics compared to GT (LPIPS, DreamSim, FID)

python isolated_nwm_eval.py \
    --datasets  \
    --gt_dir ${RESULTS_FOLDER}/gt \
    --exp_dir ${RESULTS_FOLDER}/nwm_cdit_xl \
    --eval_types time

Results are saved in ${RESULTS_FOLDER}/nwm_cdit_xl/

Evaluate on following ground truth trajectories

1. Prepare ground truth frames for evaluation (one-time)

python isolated_nwm_infer.py \
    --exp config/nwm_cdit_xl.yaml \
    --datasets recon,scand,sacson,tartan_drive \
    --batch_size 96 \
    --num_workers 12 \
    --eval_type rollout \
    --output_dir ${RESULTS_FOLDER} \
    --gt 1 \
    --rollout_fps_values 1,4

2. Simulate a GT trajectory using NWM

python isolated_nwm_infer.py \
    --exp config/nwm_cdit_xl.yaml \
    --ckp 0100000 \
    --datasets  \
    --batch_size 64 \
    --num_workers 12 \
    --eval_type rollout \
    --output_dir ${RESULTS_FOLDER} \
    --rollout_fps_values 1,4

3. Report metrics compared to GT trajectories (LPIPS, DreamSim, FID)

    python isolated_nwm_eval.py \
        --datasets recon \
        --gt_dir ${RESULTS_FOLDER}/gt \
        --exp_dir ${RESULTS_FOLDER}/nwm_cdit_xl \
        --eval_types rollout

Results are saved in ${RESULTS_FOLDER}/nwm_cdit_xl/

Trajectory Evaluation - Planning

Using 1-step Cross Entropy Method planning on 8 gpus (sampling 120 trajectories):

torchrun --nproc-per-node=8 planning_eval.py \
    --exp config/nwm_cdit_xl.yaml   \
    --datasets recon   \
    --rollout_stride 1   \
    --batch_size 1   \
    --num_samples 120   \
    --topk 5   \
    --num_workers 12   \
    --output_dir ${RESULTS_FOLDER}   \
    --save_preds   \
    --ckp 0100000   \
    --opt_steps 1   \
    --num_repeat_eval 3

Results are saved in ${RESULTS_FOLDER}/nwm_cdit_xl/

BibTeX

@article{bar2024navigation,
  title={Navigation world models},
  author={Bar, Amir and Zhou, Gaoyue and Tran, Danny and Darrell, Trevor and LeCun, Yann},
  journal={arXiv preprint arXiv:2412.03572},
  year={2024}
}

Acknowledgments

We thank Noriaki Hirose for his help with the HuRoN dataset and for sharing his insights, and to Manan Tomar, David Fan, Sonia Joseph, Angjoo Kanazawa, Ethan Weber, Nicolas Ballas, and the anonymous reviewers for their helpful discussions and feedback.

License

The code and model weights are licensed under Creative Commons Attribution-NonCommercial 4.0 International. See LICENSE.txt for details.

排名相邻
同类项目