noahcao/FAB
Machine LearningEstimates 2D/3D keypoints and dense body surface points, fits SMPL meshes, recovers world-space motion and retargets to a Unitree G1 robot.
What it does
FAB is a human body estimation model and toolkit. For every person in an image it predicts 2D/3D keypoints and dense surface points, then fits an SMPL mesh. It also predicts foot, hand and knee contacts, body parts, and Unitree G1 joint angles. Given a video, it recovers motion in a metric world, reconstructs the surrounding scene, and retargets the motion onto a G1 humanoid robot. The default FAB-L model reports 32.7 mm 3DPW PA-MPJPE at 39 fps end to end on one RTX 4070 Ti SUPER (project overview, paper).
Three model sizes are offered: FAB-S, FAB-L (default) and FAB-H. FAB-H fits SMPL through its MHR mesh and does not provide contact, part or G1 outputs (model table).
Install
Requirements are Python 3.10+ and PyTorch 2.4+. Clone the repo, create a virtual environment and install with the retarget and world extras (install steps):
git clone https://github.com/noahcao/FAB.git && cd FAB
python3 -m venv .venv && source .venv/bin/activate
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128
pip install -e ".[retarget,world]"
Four download sets are then needed, placed under ~/.cache/fab by default ($FAB_HOME relocates them):
- FAB weights via
hf download noahcao/FAB, then verify withsha256sum -c SHA256SUMS. - SAM 3D Body config and MHR model: accept the SAM licence, run
hf auth login, thenpython -c "import fab; fab.download_sam3d()". - SMPL 1.1.0 for Python, registered at smpl.is.tue.mpg.de, then
bash scripts/download_body_models.sh /path/to/SMPL_python_v.1.1.0. - Unitree G1 description via
bash scripts/download_g1.sh.
Quick start
Run the CLI on the bundled demo assets (commands):
fab assets/demo/skater_seated.jpg --out output/fab
fab-video assets/demo/dancer_street.mp4 -o output/dancer.mp4
fab-world assets/demo/steps_up.mp4 --out output/world
fab-retarget output/world/steps_up.npz --out output/g1
fab-multiview rig.json --out output/mv
fab writes a per-person pickle with keypoints, dense points, MHR/SMPL meshes, contacts, G1 angles and body parts; fab-world adds a scene mesh and heightfield in .npz/.ply files; fab-retarget writes G1 joint angles and root pose at 50 fps (usage, world, retarget). Multi-view input expects several calibrated cameras described in rig.json (multi-view).
Constraints
fab-worldneeds static, textured surroundings within roughly 8 m of the camera.- CPU inference is possible through
FABPredictor(..., device="cpu", fast=False)but is slow; the CLI commands andfast=Truerequire CUDA. - Code is Apache 2.0, but the SAM 3D Body-derived files and vendored DINOv3 code carry their own licences (LICENSE, third-party notices).
- All weights, including detector and SMPL fitters, are research and non-commercial use only (weights license). SMPL, SAM, MHR and G1 downloads come under their own terms; no datasets are redistributed.
- FAB-H has no contact, part or G1 head.
fab-retarget --mode meshor--mode skeletonretargets from the fitted mesh or joints instead of dense points, andfab-retarget-eeplaces hands and feet on a flat floor (end-effector retargeting).
HotRepo's take
FAB is a new repository with little HotRepo history: it entered the Python new-project board on 2026-11-23 with 7 stars gained in a roughly two-hour window and has no recorded all-language daily rank. That is enough to mark it as a fresh release, not enough to judge adoption. The substantive signal is the technical claim itself: a 32.7 mm PA-MPJPE at 39 fps on a single RTX 4070 Ti SUPER, with an explicit path from video to scene reconstruction to G1 retargeting. The licence split matters for anyone planning commercial deployment, since only the code is Apache 2.0 while the weights are research-only.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- Huy-Quang-Dao/instantTrackTrains a single whole-body tracking policy for the Unitree G1 on one GPU in minutes, with reproducible benchmarks.
- fuyichen0725/blinkmimicTrains a Unitree G1 whole-body motion tracking policy in minutes on one RTX 4090.
- apple-aiml-research/ml-haloResearch code for generating synthetic data, training, and deploying perceptive humanoid motion policies for the Unitree G1.