Reading physical information from frozen models and testing how they use it for prediction.
English | 简体中文
Run the CPU example · Reproduce DINOv3 on Table 5 · Find another experiment
Install Git and Python 3.12. Clone the repository and run the following examples from its root directory.
git clone https://github.com/vid-gen/physics-probe-code.git
cd physics-probe-codeApply the released V-JEPA 2.1 readout to eight stored examples. The inputs are included in the repository. Choose the commands for your shell.
Linux or macOS
python3.12 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python examples/native_readout.py --output-dir outputs/nativeWindows PowerShell
py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe examples/native_readout.py --output-dir outputs/nativeLook for PASSED: 8 predictions in the terminal. Open outputs/native/predictions.csv to inspect the four friction-scene and four rotation-scene predictions. To reproduce Table 19 from the bundled test predictions, follow Check your results.
Choose this workflow for the three Genesis columns in the DINOv3 ViT-L/16 row. It extracts features from the observed part of each video and applies the released readouts to predict future displacement, angular velocity and signed accumulated rotation.
Use Python 3.12 and a BF16-capable NVIDIA GPU for this workflow. In the repository root, create and activate an environment for the feature extractor.
Linux
python3.12 -m venv .venv-dino
source .venv-dino/bin/activateWindows PowerShell
py -3.12 -m venv .venv-dino
.\.venv-dino\Scripts\Activate.ps1Install PyTorch and torchvision using the CUDA build for your system and driver. For example, use the following command for CUDA 13.0. PyTorch installation options
python -m pip install torch==2.12.1 torchvision==0.27.1 --index-url https://download.pytorch.org/whl/cu130Install the remaining dependencies and check that the active environment reports True for CUDA and BF16.
python -m pip install -r requirements-dinov3-future.txt
python -c "import torch; print(torch.cuda.is_available(), torch.cuda.is_bf16_supported())"Download and unpack the two required ZIPs (488.5 MB). The Genesis archive supplies the videos, target masks, ground truth and split assignments. The readout archive supplies the nine fitted heads for the three targets and three splits.
python tools/prepare_experiment.py genesis-future --model dinov3_vitl16 --installRequest access on the official model page. Once access is granted, sign in with that account and download the configuration and weights (about 1.21 GB).
hf auth login
hf download facebook/dinov3-vitl16-pretrain-lvd1689m config.json model.safetensors --revision ea8dc2863c51be0a264bab82070e3e8836b02d51 --local-dir models/dinov3-vitl16Run all three Table 5 targets together.
python tools/reproduce_dinov3_future.py run --weights models/dinov3-vitl16 --device cudaTo reproduce the displacement column alone, run the following command.
python tools/reproduce_dinov3_future.py run --weights models/dinov3-vitl16 --device cuda --target displacement --output outputs/dino-displacementFor angular velocity or accumulated rotation alone, set --target to angular-velocity or rotation and choose an output directory for that target.
Open outputs/dinov3-future/ for the three-target run, or outputs/dino-displacement/ for the displacement example.
| File | What to look for |
|---|---|
metrics.csv |
Find the mean row for each target and compare its test R² with Table 5. The paper reports 0.535 for displacement, 0.058 for angular velocity and 0.104 for signed accumulated rotation. |
predictions.csv |
Compare the predicted value and ground truth for each episode and split. The three-target run produces 356 rows from 164 distinct clips. |
features/ |
Reuse the extracted features to score the fixed heads again. For the default output directory, run python tools/reproduce_dinov3_future.py score. |
Choose the scientific question first. The package selector lists the configurations available for a task and can install the corresponding ZIPs. For instance, these two commands list the Genesis state models and preview the IntPhys2 parts required by LTX-2.5. Add --install to the second to download them. Online installation uses huggingface_hub (python -m pip install huggingface_hub). Use --archive-dir <folder> with previously downloaded ZIPs.
python tools/prepare_experiment.py genesis-states
python tools/prepare_experiment.py intphys2 --model ltx25_22b| Paper result | Inputs and package selector task | How to run the experiment |
|---|---|---|
| Object mass / material (Table 2) | ABO / PACO media. Use the paper-to-code map for the selected head. single-image and property-layers cover the original and all-layer runs. For the supplement, choose full-paco for material, abo-mass-unified for LTX Table 2 mass or abo-mass-layers for its layer comparison |
Visual property readouts · Full-PACO configurations |
| Observed states / physical parameters (Tables 3, 14), motion direction (Table 15) | Genesis, genesis-states or genesis-direction |
Extraction and readout by model |
| Sound / touch (Table 4) | RealImpact / RCT, audio-touch |
Audio and tactile pipelines |
| Event judgments / collisions / future motion (Table 5) | IntPhys2 intphys2, SSv2 collision, Genesis genesis-future |
Events §1–2 and future states §3 |
| Temporal, viewpoint, shape or material changes (Fig. 5, Table 19) | Genesis, temporal-controls, viewpoint-controls, shape-controls, material-controls |
Fixed and refitted readouts |
| Layers and backbone scale (Figs. 3–4) | ABO, PACO or Genesis for the selected target. genesis-friction-scale covers the Genesis friction trajectories |
Layer and scale runs |
| Deleting / exchanging features (Fig. 6, Tables 21–22) | Genesis, pooled-edits, native-edits or native-edits-decorrelated |
Fixed future heads · V-JEPA native predictor |
| Physion++ mass / speed or native depth | Physion++ physion; Bonn / TUM RGB-D native-depth |
Physion++ · Native depth |
For these research pipelines, open the guide in the last column for the extraction script, working directory, training or evaluation command, and expected files. For another model, look up official_entry, exact_revision and conda_env in the model catalog, then use the corresponding recorded Linux GPU environment. Use the Linux filesystem for multi-model archives with case-sensitive configuration names. The artifact release supplies Genesis inputs. Other benchmark media come from their original datasets.
Package contents · Paper-to-code map · Genesis sample layout · Rebuild missing heads or preprocessing · Check your results
