Upscaling images using Img2img diffusion
As we discussed in Chapter 5, Stable Diffusion doesn’t solely rely on text as its initial guidance; it is also capable of utilizing an image as the starting point. We implemented a custom pipeline that employs an image as the foundation for image generation.
By reducing the denoising strength to a certain threshold, such as 0.3
, the features and style of the initial image persist in the final generated image. This property can be exploited to employ Stable Diffusion as an image upscaler, thereby enabling image super-resolution. Let’s explore this process step by step.
We will begin by introducing the concept of one-step super-resolution, followed by an exploration of multiple-step super-resolution.
One-step super-resolution
In this section, we will cover a solution to upscale images using image-to-image diffusion once. Here are the step-by-step instructions to implement it:
- Let’s start by generating a...