![]() |
![]() |
---|---|
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2NDQwOTMsIm5iZiI6MTcxODY0Mzc5MywicGF0aCI6Ii83MTU1OTgyMi8yOTAxMTk0ODYtMjYwOGU5YzItYzY0MS00OTMyLTkyNDQtOTBlZWMyZTlkOGY1LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE3VDE3MDMxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ2MmRkYTlhOGQ2MWQ3ZDc5OTU3ZGIwNTc3OGZiMzEzMjIwNWZlN2RhNGUwNmVkYWQxODNhMzkxY2FhOWQ3YjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YVBeoBm5ec72oG9xQokgFUx8MDhYZbemryi_-UcdFVQ)
Note
This library is modified from url, which is the colab version of stable-video-diffusion.