Instructions to use melmass/fab-s-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use melmass/fab-s-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download melmass/fab-s-mlx --local-dir fab-s-mlx
- SAM 3D Body
How to use melmass/fab-s-mlx with SAM 3D Body:
import cv2 import numpy as np from notebook.utils import setup_sam_3d_body from tools.vis_utils import visualize_sample_together estimator = setup_sam_3d_body("melmass/fab-s-mlx") img_bgr = cv2.imread("path/to/image.jpg") outputs = estimator.process_one_image(cv2.cvtColor(img_bgr, cv2.COLOR_BGR2RGB)) rend_img = visualize_sample_together(img_bgr, outputs, estimator.faces) cv2.imwrite("output.jpg", rend_img.astype(np.uint8)) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
|
Download README.md from melmass/fab-s-mlx: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/melmass/fab-s-mlx/resolve/main/README.md
- Command line
-
hf download hf://melmass/fab-s-mlx/README.md
-
curl -L -o README.md https://huggingface.co/melmass/fab-s-mlx/resolve/main/README.md
1.28 kB
metadata
license: other
license_name: fab-weights-license
license_link: https://huggingface.co/noahcao/FAB/blob/main/WEIGHTS_LICENSE
library_name: mlx
tags:
- mlx
- human-mesh-recovery
- sam-3d-body
base_model: noahcao/FAB
FAB-S for MLX
FAB-S from noahcao/FAB (code: github.com/noahcao/FAB at ec65caf), converted for an MLX port of SAM 3D Body: SAM 3D Body's prompt encoder, decoder, MHR and camera heads on FAB's distilled DINOv3 backbone (ViT-S+/16, 12 blocks), body pass only.
model.safetensors: the student backbone under timm's names (backbone.vit.*,backbone.proj.*) in bfloat16, the body decoder and heads in float32 under mlx-vlm's SAM 3D Body names, MLX layouts (Linear[out, in], Conv2d[out, kh, kw, in]). The Momentum Human Rig (head_pose.body_model.*), which FAB's checkpoint does not hold, is taken frommlx-community/sam-3d-body-dinov3-bf16. The hand decoder and FAB's own heads (dense, contact, visibility, G1) are left out.conversion.json: the source files and their hashes.parity/: FAB's own forward pass on one photo (CPU, float32), for the port's parity test.
Weights under FAB's weights licence (research and non-commercial use only); SAM 3D Body's and DINOv3's terms apply.