2 minutes to read - Mar 30, 2023

Stable Diffusion tutorial: Stable Diffusion Image Variations using lambda diffusers

VISIT
Stable Diffusion tutorial: Stable Diffusion Image Variations using lambda diffusers
Stable Diffusion is a text-to-image latent diffusion model created by the researchers and engineers from CompVis, Stability AI and LAION. It's trained on 512x512 images from a subset of the LAION-5B database.
Table of Contents
1About lambda diffusers
2⚙️ Preparing dependencies
3Import the required libs
4🎥 Image to Image
5Generate the images
6Show the image

About lambda diffusers

This version of Stable Diffusion has been fine tuned from CompVis/stable-diffusion-v1-3-original to accept CLIP image embedding rather than text embeddings. This allows the creation of "image variations" similar to DALLE-2 using Stable Diffusion. This version of the weights has been ported to huggingface Diffusers, to use this with the Diffusers library requires the Lambda Diffusers repo.

Let's get started and learn how to use Stable Diffusion Image Variations using lambda diffusers!

To run this tutorial we will use Google Colab and Google Drive

⚙️ Preparing dependencies

Download the necessary files:

install the required libs:

Import the required libs

🎥 Image to Image

Load the pipeline.

download the intial image:

Generate the images

1. we load the image

2. run the model

3. save the output images

Show the image

Here we resize the images then concat them horizontally and show them

As you can see here we have different variations of the intial image

Article source
loading...