PhysReader-Sim / README.md
bjxdw's picture
Update card
47f5e43 verified
|
Raw History Blame Contribute Delete
5.27 kB
---
license: odc-by
pretty_name: PhysReader-Sim
size_categories:
- 100K<n<1M
tags:
- physics
- material-estimation
- deformable-objects
- simulation
- mpm
- video
---
# PhysReader-Sim
Simulated drops used to train [PhysReader](https://github.com/bjxdw/PhysReader), from
*What a Drop Reveals: Sim-to-Real Material Estimation for Deformable Objects from Video*
([arXiv:2611.34894](https://arxiv.org/abs/2611.34894), [project page](https://bjxdw.github.io/PhysReader/)).
97,226 MPM simulations of Objaverse objects dropped onto the floor, each rendered from three cameras:
291,638 clips, split by mesh into 277,050 training and 14,588 validation clips. Materials are Neo-Hookean
with von Mises plasticity: E log-uniform in [1e4, 1e9] Pa, yield stress log-uniform in [1e5, 2e7] Pa,
Poisson's ratio uniform in [0.1, 0.45], density uniform in [100, 2000] kg/m³. The videos have motion blur,
exposure changes, H.264 compression and indoor backgrounds, as described in the paper.
## Files
| Path | Size | Contents |
|---|---|---|
| `train.json`, `val.json` | 0.2 GB | one row per clip (below) |
| `clips/{split}-NNNNN.tar` | 69 GB | model inputs and labels, one `.npz` per clip |
| `videos/{split}-NNNNN.tar` | 27 GB | the rendered source video of each clip, 60 frames, 960×720, 30 fps |
| `surface/{split}-NNNNN.tar` | 41 GB | teacher input: 1024 exact surface particles over the 16-frame window |
| `latents/{split}.npz` | 0.3 GB | teacher latents used to train PhysReader |
| `simulations/NNNNN.tar`, `simulations.json` | 43 GB | t=0 state of every simulation (particle positions and volumes) |
| `clip_to_simulation.json` | | clip uid → simulation id |
| `index/{split}-NNNNN.json` | | the rows of `{split}.json` whose clips are in that shard |
A row of `train.json` / `val.json`:
```
uid clip id target [log10 E/ρ, log10 σY/ρ], E and σY in Pa, ρ in kg/m³
mesh Objaverse uid yielded plastic flow inside the window (yield stress is supervised only then)
E_Pa, YS_Pa, rho crop [left, top, side, width, height] of the square input crop, pixels
frames the 16 video frames C-3..C+12 clips, video, surface {file, offset, size}: byte range of the .npz / .mp4 inside its tar
license, author, source license of the source mesh (see below)
```
The tar files are plain uncompressed tars, so a clip can be read with one seek: see `physreader/data.py`, which
also cuts the 224×224 RGB window out of the source video exactly as in training.
A clip `.npz` holds 2D tracklets (`raw_trajectory`: 4 windows × 5 frames × 128 points), the image-plane cues
(`strain_2d`, `stretch_2d`, `nonaffine_2d`), lifted 3D tracklets (`trajectory_3d`, `stretch_3d`), each with a `_valid`
mask, the tracklet graph (`neighbors`, `edge_valid`), timing and camera metadata, `targets`, `yielded`, the frame
`indices` and the `crop`. Tracks come from WAFT optical flow, masks from SAM 3.1 and depth from 4RC, all run on the
noisy videos. Unlike on the real drops, SAM 3.1 is prompted with the simulator's object boxes and the 4RC depth is
scaled with the rendered depth instead of LiDAR.
## Re-running the simulations
`simulations.json` has, per simulation: material (`E`, `yield_stress` in Pa, `nu`, `density`), `substep_dt`,
`initial_velocity`, `rotation`, the drop heights, the solver version and where its t=0 state is stored.
`python -m physreader.sim.resimulate` in the code repository re-runs it, and matches the saved trajectories to
about 0.01 mm. Where the contact is chaotic, runs can drift apart by up to a few mm, because GPU atomic sums are
not reproducible from run to run; the original code behaves the same.
For 8,652 clips (2,884 meshes) the simulation was redone with a corrected contact and plasticity solver
(`"solver": "repaired"`); their t=0 state was saved. For the others it was rebuilt from the first saved frame,
and `mass_check` (rebuilt total volume over the volume implied by the recorded kinetic energy) confirms the
particle volumes. 70 simulations (210 clips) fail that check, `abs(mass_check - 1) > 1e-3`, and cannot be
re-run exactly. Renders cannot be regenerated, because the mesh scale, textures and sampling seeds were not
recorded.
## License
The collection is released under ODC-By 1.0, like Objaverse. Each clip also inherits the Creative Commons license
of its source object, given in the `license`, `author` and `source` fields:
| `license` | clips | meshes |
|---|---|---|
| by | 265,977 | 88,672 |
| by-sa | 4,449 | 1,483 |
| by-nc | 11,873 | 3,958 |
| by-nc-sa | 7,116 | 2,372 |
| cc0 | 2,223 | 741 |
Clips from NC objects may be used for non-commercial purposes only. Textures come from MatSynth and keep their
own licenses. The backgrounds come from MIT Indoor 67, a set of web images meant for research use.
## Citation
```bibtex
@article{peng2026physreader,
title = {What a Drop Reveals: Sim-to-Real Material Estimation for Deformable Objects from Video},
author = {Ziyue Peng and Yanxi Hu and Junyoung Kim and Andrew Chen and Jin Yang and Chandrajit L. Bajaj and Etienne Vouga and William T. Freeman and Qixing Huang and Brandon Y. Feng},
journal = {arXiv preprint arXiv:2611.34894},
year = {2026}
}
```