Instructions to use JoeyJinArt/image2pose-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- SAM 3D Body
How to use JoeyJinArt/image2pose-models 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("JoeyJinArt/image2pose-models") 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
SAM 3D Body (DINOv3) + RTMDet person finder - redistributed copies for image2pose
This repository contains an unmodified copy of Meta's SAM 3D Body model files
(facebook/sam-3d-body-dinov3). They are downloaded automatically by the desktop application
image2pose by JoeyJin on its first start.
| File | Source | SHA-256 (identical to Meta's official file) |
|---|---|---|
model.ckpt |
facebook/sam-3d-body-dinov3 | b5a2f9d305dd02626b967aa2e86021fba07065df66ce7a7e00ffb9664f150abf |
assets/mhr_model.pt |
facebook/sam-3d-body-dinov3 | 352e271a6c42729c68554ceaea0c955e866970160c31e35506d782dc0f7377bc |
model_config.yaml |
facebook/sam-3d-body-dinov3 | 1012fc3f39cb5e90e3f8fbadf7bded31604bfafdce0321d17a7c1a2d3f08b88d |
LICENSE |
facebook/sam-3d-body-dinov3 (SAM License) | b3a5a0e2d973ab80e6610ccf1cffc40756050d0ace3cd4fec879b3ec290b2e9b |
Person finder (RTMDet-m, COCO) - person_detector/rtmdet_m_coco.onnx
| File | Source | SHA-256 |
|---|---|---|
person_detector/rtmdet_m_coco.onnx |
RTMDet-m from OpenMMLab MMDetection (official COCO checkpoint rtmdet_m_8xb32-300e_coco_20220719_112220-229f527c.pth, SHA-256 229f527ca88498e8894a778a62a878a322b4a3ea2cae09ea537d34b7e907792b) exported to ONNX (with NMS) by MMDeploy; copy of https://huggingface.co/bukuroo/RTMDet-ONNX |
07921f4ee8c477b00abfce3c3bfff53bbc528c41abfa0193f981afbafcff95d4 |
RTMDet code and weights: Apache License 2.0 (https://github.com/open-mmlab/mmdetection, copy of the
license in person_detector/LICENSE-Apache-2.0.txt). Trained on COCO only. It finds the people in a
photo (also people who touch) so the AI pose model can be run on each of them. The ONNX file is
byte-identical to the file linked above; all 122 convolution weights of the official checkpoint (BatchNorm
folded in) were checked to be contained unchanged in it.
License
The four files above (model.ckpt, assets/mhr_model.pt, model_config.yaml, LICENSE) are SAM Materials made available by Meta Platforms, Inc. under the SAM License
(full text in LICENSE). They are redistributed here under that license (section 1.b.i),
together with a copy of it. Any use of these files is subject to the SAM License. Meta may update the
SAM License from time to time; see https://github.com/facebookresearch/sam-3d-body.
Trade controls. By downloading or using these files you confirm that you are not the target of Trade Controls (sanctions and export/import controls administered by the United States, the United Nations, the European Union or the United Kingdom), that your use complies with Trade Controls, and that you will not use them for activities subject to ITAR or for end uses prohibited by Trade Controls, including military or warfare purposes, nuclear industries or applications, espionage, or the development or use of guns or illegal weapons (SAM License section 1.b.v).
The MHR body model (assets/mhr_model.pt) comes from Meta's Momentum Human Rig
(https://github.com/facebookresearch/MHR, Apache License 2.0) and is distributed by Meta inside the
SAM 3D Body release.
THE FILES ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND (SAM License sections 3 and 4).
Notes
- Original model and paper: https://github.com/facebookresearch/sam-3d-body
- This copy is maintained by JoeyJin for image2pose. It is not affiliated with or endorsed by Meta.
- No modifications were made to the files.