← Open Source
facebookresearch

nwm

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

ModelsVision modelsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
698
Stars
74
Forks
+3
This week
1
Contributors
Created 2025-03-12 · Updated 2026-10-15 · #14852 today
Top developers
amirbar

facebookresearch/nwm is ranked 14,852 with 698 stars.

Same-category comparison

facebookresearch/nwm is ranked 14,852 among these 8 peers; instantX-research/Regional-Prompting-FLUX is ranked 14,855.

Same-category comparison
NameRankMetrics
microsoft/ClimaX14,781
Language:
Python
Stars:
704
Forks:
113
Description:
Foundation model for weather & climate.
deepglint/unicom14,786
Language:
Python
Stars:
703
Forks:
34
Description:
Large-Scale Visual Representation Model.
Julie-tang00/Point-BERT14,826
Language:
Python
Stars:
700
Forks:
73
Description:
[CVPR 2022] Pre-Training 3D Point Cloud Transformers with Masked Point Modeling.
szq0214/MEAL-V214,847
Language:
Python
Stars:
699
Forks:
70
Description:
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
Language:
Python
Stars:
698
Forks:
31
Description:
Training-free Regional Prompting for Diffusion Transformers 🔥.
huyvnphan/PyTorch_CIFAR1014,865
Language:
Python
Stars:
697
Forks:
161
Description:
Pretrained TorchVision models on CIFAR10 dataset (with weights).
MeiGen-AI/OPSD-V14,880
Language:
Python
Stars:
695
Forks:
46
Description:
On-Policy Self-Distillation for Post-Training Few-Step Autoregressive Video Generators.
stepfun-ai/NextStep-114,891
Language:
Python
Stars:
695
Forks:
26
Description:
[🚀 ICLR 2026 Oral] NextStep-1: SOTA Autogressive Image Generation with Continuous Tokens. A research project developed by the StepFun’s Multimodal Intelligence team.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModels
SubcategoryVision models
KeywordsEmbodied, Robotics, Simulation
Stars698
Forks74
Contributors1
Created date2025-03-12
Updated date2026-10-15
Stars in 1 day0
Stars in 7 days3
Rank14,852
Previous rank14,693
Rank change-159
7-day stars rank7,287
Previous 7-day stars rank7,314
7-day stars rank change27
Total stars rank14,922
Previous total stars rank14,891
Total stars rank change-31
CountryUSA
README summary

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.

Frequently asked questions

How many stars and forks are recorded?

facebookresearch/nwm has 698 stars and 74 forks.

What is the repository rank?

facebookresearch/nwm is ranked 14,852.

What language and category are recorded?

facebookresearch/nwm has 698 stars, uses Python and belongs to Models.

Which repository is closest in rank?

facebookresearch/nwm is compared with instantX-research/Regional-Prompting-FLUX, ranked 14,855 with 698 stars.

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.

Nearby in the ranking
Similar items