Instructions to use designloves/One_Studio with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use designloves/One_Studio with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf designloves/One_Studio:BF16_MMPROJ # Run inference directly in the terminal: llama cli -hf designloves/One_Studio:BF16_MMPROJ
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf designloves/One_Studio:BF16_MMPROJ # Run inference directly in the terminal: llama cli -hf designloves/One_Studio:BF16_MMPROJ
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf designloves/One_Studio:BF16_MMPROJ # Run inference directly in the terminal: ./llama-cli -hf designloves/One_Studio:BF16_MMPROJ
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf designloves/One_Studio:BF16_MMPROJ # Run inference directly in the terminal: ./build/bin/llama-cli -hf designloves/One_Studio:BF16_MMPROJ
Use Docker
docker model run hf.co/designloves/One_Studio:BF16_MMPROJ
- LM Studio
- Jan
- Ollama
How to use designloves/One_Studio with Ollama:
ollama run hf.co/designloves/One_Studio:BF16_MMPROJ
- Unsloth Studio
How to use designloves/One_Studio with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for designloves/One_Studio to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for designloves/One_Studio to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for designloves/One_Studio to start chatting
- Pi
How to use designloves/One_Studio with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf designloves/One_Studio:BF16_MMPROJ
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "designloves/One_Studio:BF16_MMPROJ" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use designloves/One_Studio with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf designloves/One_Studio:BF16_MMPROJ
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "designloves/One_Studio:BF16_MMPROJ" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use designloves/One_Studio with Docker Model Runner:
docker model run hf.co/designloves/One_Studio:BF16_MMPROJ
- Lemonade
How to use designloves/One_Studio with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull designloves/One_Studio:BF16_MMPROJ
Run and chat with the model
lemonade run user.One_Studio-BF16_MMPROJ
List all available models
lemonade list
- Hermes Agent
How to use designloves/One_Studio with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf designloves/One_Studio:BF16_MMPROJ
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default designloves/One_Studio:BF16_MMPROJ
Run Hermes
hermes
- Atomic Chat
license: other
license_name: sam-license
license_link: https://huggingface.co/facebook/sam-3d-body-dinov3/blob/main/LICENSE
extra_gated_fields:
First Name: text
Last Name: text
Date of birth: date_picker
Country: country
Affiliation: text
Job title:
type: select
options:
- Student
- Research Graduate
- AI researcher
- AI developer/engineer
- Reporter
- Other
geo: ip_location
By clicking Submit below I accept the terms of the license and acknowledge that the information I provide will be collected stored processed and shared in accordance with the Meta Privacy Policy: checkbox
extra_gated_description: >-
The information you provide will be collected, stored, processed and shared in
accordance with the [Meta Privacy
Policy](https://www.facebook.com/privacy/policy/).
extra_gated_button_content: Submit
language:
- en
tags:
- sam-3d
- sam-3d-body
- 3d-human-mesh-recovery
- human-pose-estimation
- meta
SAM 3D Body: Robust Full-Body Human Mesh Recovery
Meta Superintelligence Labs
SAM 3D Body (3DB) is a promptable model for single-image full-body 3D human mesh recovery (HMR). Our method demonstrates state-of-the-art performance, with strong generalization and consistent accuracy in diverse in-the-wild conditions. 3DB estimates the human pose of the body, feet, and hands based on the Momentum Human Rig (MHR), a new parametric mesh representation that decouples skeletal structure and surface shape for improved accuracy and interpretability.
3DB employs an encoder-decoder architecture and supports auxiliary prompts, including 2D keypoints and masks, enabling user-guided inference similar to the SAM family of models. Our model is trained on high-quality annotations from a multi-stage annotation pipeline using differentiable optimization, multi-view geometry, dense keypoint detection, and a data engine to collect and annotated data covering both common and rare poses across a wide range of viewpoints.
Key Features
- Robust Full-Body Performance: Superior handling of occlusions, hard poses, and challenging viewpoints
- Promptable Model: Supports auxiliary prompts including 2D keypoints and masks for user-guided inference
- Momentum Human Rig (MHR): New parametric mesh representation that decouples skeletal structure and surface shape
- Large-Scale and High-Quality Data: Multi-stage annotation pipeline for large-scale, diverse, and high-quality data
Quick Start
Installation
Please refer to INSTALL.md for detailed installation guidelines.
Inference
# Download assets from HuggingFace
hf download facebook/sam-3d-body-dinov3 --local-dir checkpoints/sam-3d-body-dinov3
# Run demo script
python demo.py \
--image_folder <path_to_images> \
--output_folder <path_to_output> \
--checkpoint_path ./checkpoints/sam-3d-body-dinov3/model.ckpt \
--mhr_path ./checkpoints/sam-3d-body-dinov3/assets/mhr_model.pt
You can also try the following lines of code with models loaded directly from Hugging Face
import cv2
import numpy as np
from notebook.utils import setup_sam_3d_body
from tools.vis_utils import visualize_sample_together
# Set up the estimator
estimator = setup_sam_3d_body(hf_repo_id="facebook/sam-3d-body-dinov3")
# Load and process image
img_bgr = cv2.imread("path/to/image.jpg")
outputs = estimator.process_one_image(cv2.cvtColor(img_bgr, cv2.COLOR_BGR2RGB))
# Visualize and save results
rend_img = visualize_sample_together(img_bgr, outputs, estimator.faces)
cv2.imwrite("output.jpg", rend_img.astype(np.uint8))
For a complete demo with visualization, see demo_human.ipynb.
Output Format
Each detected person returns a dictionary containing:
pred_vertices: 3D mesh vertices in camera coordinatespred_keypoints_3d: 3D pose keypointspred_keypoints_2d: 2D pose keypoints projected to imagepred_cam_t: Camera translation parametersfocal_length: Estimated focal lengthbody_pose_params: Body pose parametershand_pose_params: Hand pose parametersshape_params: Body shape parameters
Citation
If you use SAM 3D Body or the SAM 3D Body dataset in your research, please use the following BibTeX entry.
@article{yang2025sam3dbody,
title={SAM 3D Body: Robust Full-Body Human Mesh Recovery},
author={Yang, Xitong and Kukreja, Devansh and Pinkus, Don and Sagar, Anushka and Fan, Taosha and Park, Jinhyung and Shin, Soyong and Cao, Jinkun and Liu, Jiawei and Ugrinovic, Nicolas and Feiszli, Matt and Malik, Jitendra and Dollar, Piotr and Kitani, Kris},
journal={arXiv preprint; identifier to be added},
year={2025}
}
License
The SAM 3D Body model is licensed under SAM License.
Links
- Paper: https://ai.meta.com/research/publications/sam-3d-body-robust-full-body-human-mesh-recovery/
- Code: https://github.com/facebookresearch/sam-3d-body
- Demo: https://www.aidemos.meta.com/segment-anything/editor/convert-body-to-3d
- Website: https://ai.meta.com/sam3d/
- Dataset: https://huggingface.co/datasets/facebook/sam-3d-body-dataset