|
#!/bin/bash
|
|
|
|
|
|
conda create -y -n latentsync python=3.10.13
|
|
conda activate latentsync
|
|
|
|
|
|
conda install -y -c conda-forge ffmpeg
|
|
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
|
sudo apt -y install libgl1
|
|
|
|
|
|
huggingface-cli download chunyu-li/LatentSync --local-dir checkpoints --exclude "*.git*" "README.md"
|
|
|
|
|
|
mkdir -p ~/.cache/torch/hub/checkpoints
|
|
ln -s $(pwd)/checkpoints/auxiliary/2DFAN4-cd938726ad.zip ~/.cache/torch/hub/checkpoints/2DFAN4-cd938726ad.zip
|
|
ln -s $(pwd)/checkpoints/auxiliary/s3fd-619a316812.pth ~/.cache/torch/hub/checkpoints/s3fd-619a316812.pth
|
|
ln -s $(pwd)/checkpoints/auxiliary/vgg16-397923af.pth ~/.cache/torch/hub/checkpoints/vgg16-397923af.pth
|
|
|