PhysReader-Real / README.md
bjxdw's picture
Update drops.json, README.md
fe85151 verified
|
Raw History Blame Contribute Delete
6 kB
---
license: cc-by-nc-4.0
pretty_name: PhysReader-Real
size_categories:
- n<1K
tags:
- physics
- material-estimation
- deformable-objects
- video
- depth
---
# PhysReader-Real
Real drops used to evaluate [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/)).
16 everyday objects, each dropped five times onto a plywood floor: 80 videos at 960×720, 30 fps, with LiDAR depth.
For each object we fit a reference material (E and yield stress) by simulating its five drops with the same MPM
solver used for training, together with a plausible region: the materials whose replays still match the video. Predictions are scored by their distance
to that region and by replaying them in the simulator.
## Files
| Path | Size | Contents |
|---|---|---|
| `drops.json` | | one row per drop (below) |
| `drops/<key>/video.mp4`, `lidar_depth.npz` | 12 GB | 60-frame video; LiDAR `depth` in m and `valid_mask`, per frame |
| `drops/<key>/scene/` | | `camera.json`, the object mesh placed in the scene (`aligned_mesh.ply`), the empty `background.png` and `particles.npz`: the MPM particles of the starting state (the first `num_surface` lie on the surface) |
| `drops/<key>/observations/` | | object masks, metric depth (DepthCrafter, aligned to the LiDAR) and SEA-RAFT flow over the 16-frame window, used by the replay |
| `drops/<key>/replay/` | 0.4 GB | what `python -m physreader.replay` needs: the reference's replay results, the real signals it is compared with, the render mesh and the reference simulation |
| `inputs/<key>.npz` | 0.4 GB | the model input of each drop: the fields of a PhysReader-Sim clip plus the 224×224 RGB window, WAFT flow and 4RC depth |
| `regions.json` | | the plausible region of each object |
| `meshes/<object>.ply` | 1.5 GB | the mesh of each object used in the simulations |
| `kitty2/` | 2.2 GB | 40 drops of a second Kitty toy (below) |
| `tensile/` | 40 MB | tensile tests (below) |
A row of `drops.json`:
```
key box_1 window the 16 frames C-3..C+12 of video.mp4
object, drop box, 1..5
density kg/m³ crop [left, top, side] of the square input crop, pixels
poisson_ratio reference E_Pa, YS_Pa, yielded, initial_state
contact_frame C, the first floor contact, picked by hand
```
All five drops of an object share one reference material. `initial_state` holds the 12 numbers that move the
starting state of `particles.npz` (position in m, rotation in degrees, velocity in m/s, angular velocity in rad/s)
so that the reference simulation matches the video.
`regions.json` describes each region in z = (log10 E/ρ, log10 σY/ρ): the reference (`center`), the accepted and
rejected samples, and the `segments` and `triangles` that bound the accepted set. Objects that never yield are
scored on stiffness only, against `E_interval`. `physreader/metrics.py` computes the parameter distance.
The model inputs were made like the synthetic ones: WAFT flow, SAM 3.1 masks and 4RC depth, all run on the video.
SAM 3.1 is prompted with object boxes drawn by hand on each frame, and the 4RC depth is scaled with the LiDAR.
## Second Kitty
`kitty2/` holds 40 drops of a second Kitty toy: the same model as the benchmark Kitty, with a different appearance.
Ten drops each change the camera angle, the background, the distance or the lighting. They test how stable the
predictions are, and each has its video, LiDAR depth and model input (`kitty2/inputs`), plus the toy's mesh. There is
no reference material for this toy, so these drops should not be scored against the benchmark Kitty's region. People
who appear in some of these videos are covered with boxes. No people appear in the 80 benchmark drops.
## Tensile tests
Uniaxial tensile tests of specimens cut from box, crocs, diaper, glove, hanger, kitty, napkin, pad and trash bin. The
Kitty specimens come from the second Kitty. The tests check the reference materials. The paper evaluates
predictions against the references, not against these tests. `fits.csv` has one row per specimen:
```
object, direction, specimen file, sha256 the raw curve, raw/<object>_<direction>_<specimen>.csv
left_strain_percent, right_strain_percent the strain interval of the linear fit
slope_MPa, intercept_MPa, R2 the fit; slope_MPa is the tensile modulus
gauge_mm, area_mm2 specimen gauge length and cross-section
optimized_E_MPa the reference E of the object, for comparison
```
A raw curve has time (s), displacement (mm), force (mN) and tensile displacement (mm).
## Usage
```bash
git clone --single-branch https://github.com/bjxdw/PhysReader && cd PhysReader && pip install -r requirements.txt
hf download bjxdw/PhysReader --local-dir checkpoints
hf download bjxdw/PhysReader-Real --repo-type dataset --local-dir data/PhysReader-Real
python -m physreader.predict --model physreader --checkpoint checkpoints/physreader.pt \
--inputs data/PhysReader-Real/inputs --real data/PhysReader-Real --out real.json
python -m physreader.replay --data data/PhysReader-Real --predictions real.json --sea-raft SEA-RAFT --out replay
```
The first command prints the mean parameter distance (0.677 for PhysReader), the second the replay columns of
Table 1. See the code repository for details.
## License
CC BY-NC 4.0.
## 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}
}
```