install.md
December 18, 2023 ยท View on GitHub
Environment setup
- We have tested our code with this docker environment
pytorch/pytorch:1.13.0-cuda11.6-cudnn8-develand NVIDIA V100 GPUs. - Install PyTorch:
pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 - Install other dependencies:
# install libraries
apt-get install -y \
libglfw3-dev \
libgles2-mesa-dev \
libglib2.0-0 \
libosmesa6-dev \
# install requirements
pip install -r requirements.txt
# install kaolin
pip install kaolin==0.13.0 -f https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-${YOUR_TORCH_VERSION}_${YOUR_CUDA_VERSION}.html
- Git clone both TeCH and thirdparties
git clone --recurse-submodules git@github.com:huangyangyi/TeCH.git
- Build modules
cd core/lib/freqencoder
python setup.py install
cd ../gridencoder
python setup.py install
cd ../../
- Download necessary data for body models:
bash scripts/download_body_data.sh. IfUsername/Password Authentication Failed, you need firstly register at ICON and choose "Yes" for all the projects listed in "Register for other projects". - Download pretrained models of MODNet:
bash scripits/download_modnets.sh - Download
runwayml/stable-diffusion-v1-5checkpoint, background images and class regularization data for DreamBooth by runningbash scripts/download_dreambooth_data.sh, you can also try using another version of SD model, or use other images ofmanandwomanfor regularization (We simply generates these data with the SD model).