Installation and configuration steps
InstantCharacter需要支持GPU的环境运行,以下是详细的安装指南:
environmental preparation
- Python 3.8+版本
- PyTorch(CUDA支持)
- Git和Git LFS用于大文件下载
- 推荐NVIDIA GPU(最低48GB VRAM,优化后支持24GB)
Installation process
- 安装Python和PyTorch:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
- Install dependent libraries:
pip install transformers accelerate diffusers huggingface_cli
- Cloning Warehouse:
git clone https://github.com/Tencent/InstantCharacter.git
- 下载模型检查点:
huggingface-cli download --resume-download Tencent/InstantCharacter --local-dir checkpoints
caveat
需确保GPU驱动和CUDA版本与PyTorch兼容,模型需移至支持CUDA的设备。如遇下载问题,可使用Hugging Face镜像地址。
This answer comes from the articleInstantCharacter: An Open Source Tool for Generating Consistent Characters from a Single ImageThe