img | videos |
git clone https://github.com/xx025/stable-video-diffusion-webui.git
cd stable-video-diffusion-webui
Before starting, you need to create a virtual environment. It is recommended to use conda. If you are not comfortable using conda, create a Python 3.10 environment in your own way.
conda create -n svd python=3.10
conda activate svd
Then execute the following commands in order,
# During this process, the torch version corresponding to cu118 will be installed. You can try installing it first. The author tested it on a machine with cuda11.6, and it installed normally.
# If it doesn't fit your computer, please change the --extra-index-url in requirements.txt accordingly.
python install.py
# Create a folder to save weight files
mkdir checkpoints
# Download the model. This may take some time.
# If it's inconvenient to use wget, you can download it manually and save it to the checkpoints folder with the name svd_xt.safetensors
wget https://huggingface.co/vdo/stable-video-diffusion-img2vid-xt/resolve/main/svd_xt.safetensors?download=true -P checkpoints/ -O svd_xt.safetensors
During the first run, other model files will be downloaded.
python run.py
Please check settings.py and make modifications.
Only for China users
![](https://private-user-images.githubusercontent.com/71559822/290119486-2608e9c2-c641-4932-9244-90eec2e9d8f5.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI0NDM3ODgsIm5iZiI6MTcyMjQ0MzQ4OCwicGF0aCI6Ii83MTU1OTgyMi8yOTAxMTk0ODYtMjYwOGU5YzItYzY0MS00OTMyLTkyNDQtOTBlZWMyZTlkOGY1LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzMxVDE2MzEyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkwZDA3MGZjMDg3M2U1NzY0MTVkOWNhMDUwZGU4ODQ3NGU1MzEyOTc5YzEzNmM2MmI0ZDk5MzljNDYxNWY4ZTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d81RL-qC5v1emygRPFqRs5Cy_LaP9V-R6RckKxZAThg)
Note
This library is modified from url, which is the colab version of stable-video-diffusion.