Stable Diffusion Animation SDK For Python |
Written by Nikos Vaggalis | |||
Monday, 19 June 2023 | |||
Stability AI has released its Stable Animation SDK, a toolkit designed for artists and developers to implement the Stability models in generating their animations. In general, the SDK allows users to generate animations from text, images, or video combined with text. More specifically, the SDK offers three ways to create animations:
After installing it but before using it, you have to create a Stability DreamStudio account in order to get an API key since to create animations using the SDK, a connection to the Stability servers must first be established. The installation is pretty straight forward. Just run
Now you are ready to use the SDK from your code. Alternatively, there's also a UI which runs as a local server which you can access through the browser. To do this use the
Then you just run the UI with
From there on, you can experiment with the models and generate animations without having to write any code. In the UI as well from code utilizing the SDK, dvelopers can use many parameters to adjust their animations.
To watch how these parameters affect the resulting animation, you can check the animated previews of the Animation Handbook, a Google Doc file with many examples. The available Diffusion models are: stable-diffusion-v1 The SDK is open source but since it has to call into the Stability servers, there is charge based on credits depending on its usage. There are two parts to the credit usage; one part is for still image generation, and the second part is for the running of animation operations At the default of (512x512, 30 steps) using the Stable Diffusion v1.5 model, an animation consisting of 100 frames (around 8s) will use 37.5 credits. Depending on the parameters used, the charging varies. There's a detailed chart on charging here. However, when you open an account you'll also get some free credits to try the API out. In conclusion, the Stability Animation SDK opens up the world of generative AI to your Python code. More InformationRelated ArticlesTake Harvard's CS50 Introduction to Artificial Intelligence with Python For Free To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info |
|||
Last Updated ( Monday, 19 June 2023 ) |