sizhe-li/neural-jacobian-field
About
Controlling diverse robots by inferring jacobian fields with deep networks! Let's make robots understand their bodies!
Systems & InfrastructureMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalNeural Jacobian Fields
Sizhe Lester Li, Annan Zhang, Boyuan Chen, Hanna Matusik, Chao Liu, Daniela Rus, Vincent Sitzmann
📄 Paper (Nature, 2025) | 🌐 Project Website | 📖 Tutorial | 🎥 Explainer | 📦Dataset
[TL;DR] Neural Jacobian Fields are a general-purpose representation of robotic systems that can be learned from perception.
🔥 Follow-up work: VERA — Turning Video Models into Generalist Robot Policies turns a frozen video generative model into a robot policy: the video model dreams the future, and a Jacobian inverse dynamics model — built on the same idea as Jacobian fields — translates the dream into actions, from a real Franka arm to a 16-DoF Allegro hand. Paper · Project page · Models
📢 Announcements
- [2026-07-21] Our follow-up work VERA — Turning Video Models into Generalist Robot Policies is out — code and checkpoints released (paper, project page, models).
- [2025-09-23] Added FAQ about training time and supervision types.
- [2025-08-29] Released the Allegro-Hand-Only Dataset — a lighter version containing only the Allegro Hand, making it much faster to download.
- [2025-06-25] Our paper is now published in Nature.
- [2025-04-20] Dataset now live on HuggingFace: Link.
- [2025-03-23] Major tutorial updates for training in 2D simulations.
🚀 Quickstart
We provide the software implementations of:
- 🧠 3D Jacobian Field:
project/neural_jacobian_field - ✋ 2D Jacobian Field:
project/jacobian - 🧪 Custom simulator:
mujoco-phys-sim
📦 Installation
✅ Clone & Initialize Submodules (Required)
This repository depends on a custom simulator included as a Git submodule.
After cloning, you must initialize it with:
git submodule update --init --recursive
1. Create Conda Environment
conda create --name neural-jacobian-field python=3.10.8
conda activate neural-jacobian-field
2. Install Dependencies
bash install.sh
This script:
- Installs PyTorch
- Pins NumPy for binary compatibility
- Installs Nerfstudio + TinyCudaNN
- jBuilds and installs the MuJoCo simulator
- Installs all Jacobian Field packages in editable mode
3. Sanity Check (Recommended)
After installation:
python3 -c "import torch, jacobian, neural_jacobian_field, raft_wrapper; print('✅ Installation OK')"
▶️ Running the Code
📥 Download Pretrained Checkpoints
Download from Google Drive and place them under:
notebooks/inference_demo_data/real_world_pretrained_ckpts
notebooks/tutorial/tutorial_pretrained_ckpts
Disclaimer on 2D toy examples: since mujoco has updated its renderer recently. The old checkpoint might not generalize to the new rendering style. It is best to retrain the model yourself after generating the 2D datasets!
🧪 Simulated Experiments
Tutorial Notebooks (2D, ~30 mins each)
🦾 Real-World Experiments
✔️ Ready-to-Run Demos
📦 Dataset (HuggingFace)
We provide two datasets depending on your needs:
1. Allegro-Only Dataset
✨ Recommended — lightweight, faster to download and work with.
Command to download:
huggingface-cli download --resume-download --repo-type dataset sizhe-lester-li/neural-jacobian-field-allegro-only
2. Full Neural Jacobian Field Dataset
A comprehensive multiview video-action dataset with camera poses, containing:
- 🤖 Pneumatic robot hand (mounted on robot arm)
- ✋ Allegro robot hand
- 🧩 Handed Shearing Auxetics platform
- 🦾 Poppy robot arm
Command to download:
huggingface-cli download --resume-download --repo-type dataset sizhe-lester-li/neural-jacobian-field
🏋️♀️ Training
A. Train Perception Module (PixelNeRF)
python3 -m neural_jacobian_field.train dataset=dataset_allegro model=model_allegro dataset.mode=perception
B. Train Jacobian Fields
Replace the checkpoint flag with what you have on wandb :) and start training
python3 -m neural_jacobian_field.train dataset=dataset_allegro model=model_allegro dataset.mode=action checkpoint.load=wandb://entity/project/usoftylr:v5
🎥 Camera Conventions
- Extrinsics: OpenCV-style camera-to-world matrices (+Z = look vector, +X = right, –Y = up)
- Intrinsics: Normalized (row 1 ÷ width, row 2 ÷ height)
FAQ
Q: Training seems extremely slow (e.g., 1300 hours estimated on an NVIDIA A40). Is this normal?
Yes, everything is fine! The number of training steps in the default config (50 million) is somewhat arbitrary. In practice, you can stop once you see good 3D reconstruction results during stage 1 (PixelNeRF), and then move on to fitting Jacobian fields. You usually don’t need to run the full 50M steps.
Q: What hardware did you use for training?
We tested training on:
- 4 × A8000s
- 4 × A100s
For testing on a local robot-ready PC after training, we used a single RTX 4090.
Q: Can I train with multiple GPUs?
Yes. The training script supports multi-GPU setups. By default, the script will use all available GPUs. You can set CUDA_VISIBLE_DEVICES to select specific GPUs. We recommend multi-GPU for large-scale training, especially with the full dataset.
Q: My run goes out-of-memory (OOM) even with small rays_per_batch. Why?
This usually happens if action_supervision_type is set to tracks.
- In track supervision,
rays_per_batchis ignored. - Instead, the number of rays is determined by:
num_positive_samples+num_negative_samples. If both values arenull(default), the dataloader uses all tracks (often ~10,000 rays), which easily causes OOM.
Q: What supervision type should I use for the Allegro hand?
For the Allegro hand dataset, we by default use optical flow supervision (via RAFT), not track supervision. Both types of supervision have been tested and work well.
📚 Citation
If you find our work useful, please consider citing us:
@Article{Li2025,
author={Li, Sizhe Lester
and Zhang, Annan
and Chen, Boyuan
and Matusik, Hanna
and Liu, Chao
and Rus, Daniela
and Sitzmann, Vincent},
title={Controlling diverse robots by inferring Jacobian fields with deep networks},
journal={Nature},
year={2025},
month={Jun},
day={25},
issn={1476-4687},
doi={10.1038/s41586-025-09170-0},
url={https://doi.org/10.1038/s41586-025-09170-0}
}
🙏 Acknowledgements
The authors thank Hyung Ju Terry Suh for his writing suggestions (system dynamics) and Tao Chen and Pulkit Agrawal for their hardware support on the Allegro hand. V.S. acknowledges support from the Solomon Buchsbaum Research Fund through MIT’s Research Suppport Committee. S.L.L. was supported through an MIT Presidential Fellowship. A.Z., H.M., C.L., and D.R. acknowledge support from the National Science Foundation EFRI grant 1830901 and the Gwangju Institute of Science and Technology.
Explore related projects
Loading…