Skip to content

gushinja8r/amazon-bedrock-animation-demo

Repository files navigation

Amazon Bedrock and Stability.ai Stable Diffusion XL 1.0 Video Animation Demo

In this 3-part demonstration we will learn how to use the AWS SDK for Python (Boto3) to create Generative AI images and simple video animations using Amazon Bedrock and Stability.ai Stable Diffusion XL 1.0 model.

Demonstration

  1. Text-to-image
  2. Image-to-image
  3. Video-to-video (video-frame-frame-video)

All instructions for this project can be found in the Jupyter Notebook and on the accompanying YouTube video.

Video

There is second video containing several sample animations available on YouTube.

Video

Technologies

  • Amazon Bedrock: Amazon Bedrock is a fully managed service that offers a choice of high-performing foundation models (FMs) from leading AI companies like AI21 Labs, Anthropic, Cohere, Meta, Mistral AI, Stability AI, and Amazon via a single API
  • Stable Diffusion XL Model: Stable Diffusion XL or SDXL is the latest image generation model that is tailored towards more photorealistic outputs with more detailed imagery and composition compared to previous SD models, including SD 2.1. Stable Diffusion XL is a significant advancement in image generation capabilities, offering enhanced image composition and face generation that results in stunning visuals and realistic aesthetics.

References

Sample Generated Images, Frames, and Videos

Part 1: Text-to-Images Samples

Text-to-Image Text-to-Image
Text-to-Image Text-to-Image
Text-to-Image Text-to-Image

Part 2: Image-to-Images Samples

Image-to-Image
Original Image
Image-to-Image
Variation #1
Image-to-Image
Variation #2
Image-to-Image
Variation #3

Part 3: Video-to-Video Samples (Animated GIFs)

Original MP4 video files, created with FFPmpeg, converted to scaled down animated GIF files.

Video-to-Image
Selfie 1 v1
Video-to-Image
Selfie 1 v2
Video-to-Image
Selfie 3 v1
Video-to-Image
Male 2
Video-to-Image
Female 1 v1
Video-to-Image
Female 2 v1
Video-to-Image
Female 3 v2
Video-to-Image
Owl
Video-to-Image
Male 1
Video-to-Image
Squirrel
Video-to-Image
Dancer
Video-to-Image
Snowy Day

State-of-the-Art Generative AI Animation

This demonstration was very basic. If you are interested in state-of-the-art Generative AI image and video generation techniques, I would suggest looking at a combination of the AnimateDiff, ControlNet, IP-Adapter, and A1111 or ComfyUI, along with the use of custom fine-tuned SDXL models. Most high-quality animations are created with multiple fine-tuned SDXL LoRAs (Low-Rank Adaptation of Large Language Models). These tools can all be used on AWS using a GPU-based Amazon WorkSpaces environment.

If you are looking for examples of state-of-the-art Generative AI-based animations, check out Civitai. WARNING! EXTREMELY INAPPROPRIATE CONTENT!

civitai

Basic ComfyUI Workflows

These are simple examples of ComfyUI workflows from Reddit's ComfyUI and Stable Diffusion communities, used to create high-quality generative images. Many workflows are even more complex than the two shown below.

Video-to-Image
ComfyUI Example 1
Video-to-Image
ComfyUI Example 2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published