Skip to content

Instantly share code, notes, and snippets.

@henrytriplette
Last active August 22, 2024 09:53
Show Gist options
  • Save henrytriplette/1c1baf8d7d681ff7f1d5e948e7a7e7e2 to your computer and use it in GitHub Desktop.
Save henrytriplette/1c1baf8d7d681ff7f1d5e948e7a7e7e2 to your computer and use it in GitHub Desktop.
Install Stability-AI/stable-fast-3d

Clone repo

git clone https://github.com/Stability-AI/stable-fast-3d
cd stable-fast-3d

Create a new conda environment and activate it

conda create -n stable-fast-3d python=3.9
conda activate stable-fast-3d
conda install cuda -c nvidia/label/cuda-12.1.1

Install torch libs

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

Install setuptools and requirements

# pip install -U setuptools==69.5.1
pip install -r requirements.txt

Add huggingface token

Gated model, fill in the form (name / email / company .. ) https://huggingface.co/spaces/stabilityai/stable-fast-3d

HuggingFace >> Setting >> Access Tokens >> Create new token https://huggingface.co/settings/tokens

pip install huggingface_hub
python -c "from huggingface_hub.hf_api import HfFolder; HfFolder.save_token('XXXXXXX')"

Replace your self token

Run

python run.py demo_files/examples/chair1.png --output-dir output/

Uninstall

conda remove -n stable-fast-3d --all -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment