Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.76 KB

File metadata and controls

54 lines (35 loc) · 1.76 KB

Installation Guide for SAM 3D Body

Setup Python Environment

1. Create and Activate Environment

conda create -n sam_3d_body python=3.11 -y
conda activate sam_3d_body

2. Install PyTorch

Please install PyTorch following the official instructions.

3. Install Python Dependencies

pip install pytorch-lightning pyrender opencv-python yacs scikit-image einops timm dill pandas rich hydra-core hydra-submitit-launcher hydra-colorlog pyrootutils webdataset chump networkx==3.2.1 roma joblib seaborn wandb appdirs appnope ffmpeg cython jsonlines pytest xtcocotools loguru optree fvcore black pycocotools tensorboard huggingface_hub

4. Install Detectron2

pip install 'git+https://github.com/facebookresearch/detectron2.git@a1ce2f9' --no-build-isolation --no-deps

5. Install MoGe (Optional)

pip install git+https://github.com/microsoft/MoGe.git

6. Install SAM3 (Optional)

# this is a minimal installation of sam3 only to support its inference 
git clone https://github.com/facebookresearch/sam3.git
cd sam3
pip install -e .
pip install decord psutil

Getting Model Checkpoints

We host model checkpoints on Hugging Face. Available models:

⚠️ Please note that you need to request access on the SAM 3D Body Hugging Face repos above. Once accepted, you need to be authenticated to download the checkpoints.

⚠️ SAM 3D Body is available via HuggingFace globally, except in comprehensively sanctioned jurisdictions. Sanctioned jurisdiction will result in requests being rejected.