A Google Colab notebook that launches a GUI to use Stability AI's Stable Video Diffusion (SVD) model.
The SVD model is an image-to-video model. It takes the input image as the first frame of the video and generates a short video clip using a motion prior learned from a large video dataset.
- Open the Colab Notebook.
- Review options. Run the notebook.
- Wait for the gradio.live link to appear. Click the link to start the GUI.
- In the GUI, upload an initial image for the video.
- Adjust
crop offset
to get the desired crop. - Press
Run
to generate a video.
A full tutorial can be found here.
It takes 9 mins on a T4 and 2 mins on a V100.
High RAM is not strictly necessary but helps to avoid crashes.
Works on free Colab.
- Increase
motion bucket id
to increase the motion in the video. - Increase
fps id
to increase the frame rate of the video. - Fix the random as a positive integer to generate the same video.
The notebook may crash after a few generations when NOT using the high RAM setting. (Such as in the Free Colab runtime.)
Thanks to these notebooks!