--- pretty_name: physforge rigid-body interaction videos license: other viewer: false tags: - video - physics - force-conditioned-video-generation --- # physforge: force-conditioned rigid-body videos for MiniMax-H3 Rooms from 3D-FRONT where an invisible force pushes, shoves or strikes one piece of furniture, simulated with MuJoCo and rendered with Blender EEVEE. Every video comes with the exact forces, a pixel-aligned force video, rigid-body states, contacts, events and QA labels. Generator, schema and training code: the `physforge` branch of github.com/lllab-org/mise (`docs/SCHEMA.md`, `docs/H3_TRAINING.md`). **Private.** The rooms and furniture come from 3D-FRONT / 3D-FUTURE, used under their terms of use, which allow non-commercial research and do not allow redistributing the dataset. This repo holds only our renders and simulation records, plus the room types and object categories used in the prompts. It has no 3D-FRONT or 3D-FUTURE files (meshes, textures, collision geometry). Keep it private. ## Sets | set | rooms | episodes | H3 samples | size (h3 / raw) | use | |---|---|---|---|---|---| | `pilot-h3-v2` | 290 | 1964 (train 1744 / val 220, split by apartment) | train 1720 / val 215 | 3.4 GB / 15 GB | training, validation | | `pilot-h3-v3` | 318 | 2141 (train 1898 / val 243, same apartments per split as `pilot-h3-v2`) | train 1872 / val 237 | 3.7 GB / 16 GB | training, validation; replaces `pilot-h3-v2` (do not mix them: same rooms) | | `cf-h3` | 22 (val apartments) | 105 | val 102 | 0.2 GB / 0.75 GB | evaluation only: counterfactual groups (`base`, `weaker` 0.5x, `stronger` 2x, `turned` >= 90 deg, `none`) from one initial state and camera | One action per episode (a sustained push, a shove or an impulse) or none (about 18 %), fixed camera, 124 frames, 24 fps, 1344x768. `pilot-h3-v3` is the plan of `pilot-h3-v2` (the same 350 candidate rooms, 10 seeds per room instead of 8) generated again with three changes: - A furniture model keeps its mass and friction: they are fixed by the 3D-FUTURE model id with a small per-episode jitter. The same object's mass varies 1.09x between episodes of a room (median max/min) instead of 2.6x. - 24 % of the actions (427 of 1768) were sized in newtons or newton-seconds regardless of the object (`actions.json` `sampling.magnitude_mode` = `absolute`); the others relative to the object's weight and friction as before. - Objects wedged into the layout are fixed in place instead of spoiling every episode of their room, which is why 318 rooms are published instead of 290. Both sets keep only episodes whose object moves at least 30 px, so weak pushes that move nothing are not in either. `cf-h3` was generated with the `pilot-h3-v2` code; its apartments are val apartments of both sets. ## Layout ``` h3// MiniMax-H3 training samples (physforge export-h3): plain files, ready to train on raw// the physforge episodes they were exported from, one tar per room ``` ### `h3//` ``` encoding.json force encoding (gauss-blob-v1) and its parameters, prompt templates, code commits train.jsonl, val.jsonl one row per sample diffsynth/metadata_.jsonl DiffSynth-Studio rows: video, control_video, input_audio, prompt, prompt_no_action, ref2va_prompt, ref2va_prompt_no_action, sample, context_frames (paths relative to h3/) /____v0/ video.mp4 H.264 yuv420p, BT.601 limited range (tagged), no audio track control.mp4 force video: same size, frame count and fps, aligned pixel for pixel and frame for frame first_frame.png meta.json actions, context_frames (first frame of the main action), prompts, counterfactual info preview.mp4 a few samples only: the video with the force drawn over it ``` Both training modes of `tools/h3/train_h3.sh` read the same files and are chosen at training time: `MODE=controlnet` (FL2VA keyframe + Fun-ControlNet, `prompt*` columns) and `MODE=ref2va` (first frame and force video as Ref2VA references, `ref2va_prompt*` columns). Pass `h3/` as `DATA`. ### `raw//` `index.jsonl`, `dataset_manifest.json` and `.tar`. Extracting every tar into one directory gives the physforge output layout (`docs/SCHEMA.md`): ``` episodes/// episode.json, actions.json, signals.npz, camera.json, states.npz (240 Hz), contacts.npz, events.json, physics.json, qa.json, visibility.json, lighting.json, initial_state.npz, rgb.mp4, first_frame.png, geometry.npz (quarter-res depth, segmentation), force_overview.png scenes// scene.json (entities, categories, poses), prepare.json (roles, settling) ``` Left out: `model_patch.npz` (the episode's MuJoCo model as a patch of the scene base model) and the scene base models, visual meshes and collision decompositions, which are 3D-FUTURE geometry. So the episodes cannot be re-simulated or re-rendered from this repo, and `physforge verify` reports `model_patch.npz` missing (it is still listed in `episode.json` `files`). The force video and the prompts can be rebuilt (below). ## Download ```bash hf download ProfessorProton/mise --repo-type dataset --include 'h3/pilot-h3-v2/*' --local-dir data # training set hf download ProfessorProton/mise --repo-type dataset --include 'h3/*' --local-dir data # + cf-h3 hf download ProfessorProton/mise --repo-type dataset --include 'raw/pilot-h3-v2/*' --local-dir data # episodes ``` ## Rebuilding the H3 samples (another force encoding or prompt template) ```bash git clone -b physforge https://github.com/lllab-org/mise physforge cd physforge && python3.10 -m venv .venv && .venv/bin/pip install -r requirements.txt && .venv/bin/pip install -e . mkdir -p ../raw-pilot && for t in ../data/raw/pilot-h3-v2/*.tar; do tar -xf "$t" -C ../raw-pilot; done cp ../data/raw/pilot-h3-v2/{index.jsonl,dataset_manifest.json} ../raw-pilot/ .venv/bin/python -m physforge.cli export-h3 --out ../h3-new \ --set paths.output_root=../raw-pilot --set paths.work_root=../pf-work --set paths.cache_root=../pf-work/cache \ --set paths.lock_root=../pf-work/locks --set sources.front3d.dataset=unused ``` No 3D-FRONT data, Blender or GPU is needed; `sources.front3d.dataset` only has to be set. Checked on 2026-11-02 from a clean checkout without `configs/local.json`: two rooms (14 samples) re-exported from their tars give byte-identical `video.mp4`, `control.mp4`, `first_frame.png` and DiffSynth rows. `meta.json` differs only in `source` (the episode's path). ## Provenance - Episodes (`episode.json` `code`): `pilot-h3-v2` physforge `15955f6` with `configs/pilot_h3.json`; `pilot-h3-v3` physforge `3dfa176` with `configs/pilot_h3.json` and `sampling.programs` single 0.88 / none 0.12 (H3 export by the same commit); `cf-h3` physforge `b72765b` with `configs/pilot_h3.json` + `configs/counterfactual_h3.json`. - H3 export: physforge `db1d0d1` (`encoding.json` `code`). Prompts were rebuilt with `export-h3 --prompts-only` to add the Ref2VA prompts. `encoding.json` `prompts_code` reads `c715563` (dirty) because the rebuild ran before that code was committed as `9977d3a`.