An unofficial playground for Meta's SAM3D Body (DINOv3) with promptable SAM3 masks and live Rerun visualization. Uses Rerun for 3D inspection, Gradio for the UI, and Pixi for one-command setup.
Make sure you have the Pixi package manager installed.
TL;DR install Pixi:
curl -fsSL https://pixi.sh/install.sh | shRestart your shell so the new pixi binary is on PATH.
This is Linux only with an NVIDIA GPU.
The SAM3 and SAM3D Body checkpoints are gated on Hugging Face—request access for both facebook/sam-3d-body-dinov3 and facebook/sam3, then authenticate either by setting HF_TOKEN=<your token> or running huggingface-cli login before the first download (see Meta's install notes).
First run will download HF checkpoints for SAM3, SAM3D Body, and the relative-depth model.
git clone https://github.com/rerun-io/sam3d-body-rerun.git
cd sam3d-body-rerun
pixi run appAll commands can be listed with pixi task list.
pixi run appOpens the Gradio UI with an embedded streaming Rerun viewer. Try the bundled samples in data/example-data or upload your own RGB image; toggle “Log relative depth” to stream predicted depth.
From a dev shell (for tyro + dev deps):
pixi run cli
OR
pixi shell -e dev
python tool/demo.py --helpRun on a folder of images and configure Rerun output/recordings via the CLI flags.
If you just want SAM3 masks without 3D reconstruction:
pixi run -e dev python tool/gradio_sam3.pyThanks to the original projects that make this demo possible:
- facebook/sam-3d-body-dinov3 — SAM3D Body checkpoints and assets.
- facebook/sam3 — promptable concept segmentation.
- Relative depth/FOV from
MogeV1Predictorin monopriors. - Built with Rerun, Gradio, and Pixi.
Dual licensed under Apache 2.0 and MIT for the code in this repository; upstream models/assets retain their original licenses (see LICENSE-APACHE and LICENSE-MIT for this repo).
