

The following sections provide an overview of how to deploy the model and run inference using either the Studio UI or the JumpStart APIs.

You can access these scripts with one click through the Studio UI or with very few lines of code through the JumpStart APIs. JumpStart simplifies this process by providing ready-to-use scripts that have been robustly tested. You have to run end-to-end tests to make sure that the script, the model, and the desired instance work together efficiently. Running large models like Stable Diffusion requires custom inference scripts. The second generated image is the result of low resolution butterfly image and the prompt “a butterfly on a green leaf.” The first generated image is the result of low resolution cat image and the prompt “a white cat.” On the right is the image generated by the model. On the left is the original low-resolution image enlarged to match the size of the image generated by the model. The following images show examples of upscaling performed by the model. In this post, we provide an overview of how to deploy and run inference with the Stable Diffusion upscaler model in two ways: via JumpStart’s user interface (UI) in Amazon SageMaker Studio, and programmatically through JumpStart APIs available in the SageMaker Python SDK. Additionally, unlike non-deep-learning techniques such as nearest neighbor, Stable Diffusion takes into account the context of the image, using a textual prompt to guide the upscaling process. It has been trained on millions of images and can accurately predict high-resolution images, resulting in a significant increase in detail compared to traditional image upscalers.

#Aws image resize manual
Stable Diffusion uses an AI algorithm to upscale images, eliminating the need for manual work that may require manually filling gaps in an image. Additionally, upscaling can improve the visual quality of low-resolution images when displayed on high-resolution screens. This can be used to enhance image quality in various industries such as ecommerce and real estate, as well as for artists and photographers. This process, called upscaling, can be applied to both real images and images generated by text-to-image Stable Diffusion models. An image that is low resolution, blurry, and pixelated can be converted into a high-resolution image that appears smoother, clearer, and more detailed. Today, we announce a new feature that lets you upscale images (resize images without losing quality) with Stable Diffusion models in JumpStart. In November 2022, we announced that AWS customers can generate images from text with Stable Diffusion models in Amazon SageMaker JumpStart.
