MARROW-1.2-head
Generating 3D head internals from an outer shell
3 min read
MARROW-1.2-head by gardianofthedarkness tackles an unusual task for games and 3D simulations: given only a closed outer surface of a character's head, the model reconstructs 14 internal physical compartments — the skull, mandible, teeth, eyes, brain, masticatory muscles, tongue, airways, and fat tissue. Each compartment is designed as a separate material with its own physics (rigid skull, movable hinged jaw, soft tissues). The architecture combines a flow-matching transformer (a transformer that generates data through gradual denoising over 16 steps) and a patch-transformer VAE (a variational autoencoder that maps codes into a 3D voxel grid). Version 1.2 is a fine-tuned version of MARROW-1.1-head featuring cleaned-up airway labeling: the model no longer mistakes air pockets in ear folds or near the shoulders for the respiratory tract.
Key features
- Generation from a single shell: takes only a closed head loop as input (including hair and custom ears) and outputs 14 compartments at a 1 mm resolution along with colored 3D meshes in
.glbformat. - Hair volume robustness: during training, the shell was artificially thickened up to 2.5 liters, so the model does not fill hairstyles with fat tissue — on a test elf, the fat layer measured 261 ml compared to 1976 ml without this augmentation.
- Cleaned airways: the volume of extraneous disconnected air fragments dropped from 38 ml (196 pieces in version 1.1) to 7 ml (28 pieces — limited to the frontal sinus and ear canals), while the Dice overlap metric for
airwayincreased from 0.61 to 0.65. - Stochastic generation: by changing the
--seedparameter, you can get different yet anatomically plausible internal structures for the same character.
What you can do
- In-game physics and destructibility: split a character's 3D head model into ready-made physical zones with different materials and attachment points for simulations and game engines.
- VRM avatar preparation: use the model as the first stage of a
model-to-vrmpipeline to automatically generate the anatomical structure of stylized characters (tested on an anime elf). - Visualization and rendering: open the resulting
compartments_game.glbfile in any glTF viewer or Blender — it already includes a semi-transparent layer of the original skin (skin_input) for easy inspection.
Example
pip install torch numpy scipy scikit-image safetensors trimesh fast-simplification
python marrow_head.py example/elf_shell.npz out --glb --max-faces 20000Read more
DetailsMetrics (median Dice across 20 CT scans): brain — 0.95, eyes — 0.85, tongue — 0.84, skull — 0.78, jaw — 0.76 (median surface error 1.3 mm), airways — 0.65, teeth — 0.56.
Hardware and speed: generating an elf head takes about 5 minutes on a GTX 1650 GPU (4 GB VRAM) and about 4 minutes on a T4; running on CPU is supported via the
--cpu flag.Training and limitations: trained on 151 adult CT scans (TotalSegmentator, HaN-Seg, PDDCA); covers only the head and upper neck; not a medical tool.
License: CC BY-NC 4.0 (non-commercial use only).










Comments