Set Scale factor to 4 to scale to 4x the original size. In the Script dropdown menu at the bottom, select SD Upscale. (Alternatively, use Send to Img2img button to send the image to the img2img canvas) SD Upscale is a script that comes with AUTOMATIC1111 that performs upscaling with an upscaler followed by an image-to-image to enhance details. If you have stable diffusion in hand, why not adding it to your upscaler workflow? Original R-ESRGAN Enhancing details with SD upscale Compare them on computer and cell phone screens to see the difference. Enlarge and switch between them to observe the difference. The following models are good general-purpose upscalers.īelow is an example of a complex scene upscaled using R-ESRGAN. Below is what you should see after installing the Universal Upscaler V2. Your upscaler should now be available for selection. To install a new upscaler in AUTOMATIC1111 GUI, download a model from the upscaler model database and put it in the folder stable-diffusion-webui/models/ESRGAN Visit Upscaler model database to download other upscalers. Anime images require upscalers specifically trained for recovering animes. R-ESRAGN is a good choice for photographs or realistic paintings. There’s a good comparison in this post to check out other options. R-ESRGAN performs best with realistic photo images. It models various degrees of distortion from the camera lens and digital compression.Ĭompared to ESRGAN, it tends to produce smoother images. The Real-ESRGAN ( R-ESRGAN) is an enhancement to ESRGAN and can restore a variety of real-world images. It tends to retain fine details and produce crisp and sharp images. It is an enhancement to the previous SRGAN model. ESRGAN 4xĮnhanced Super-Resolution Generative Adversarial Networks ( ESRGAN) is an upscaling network that has won the 2018 Perceptual Image Restoration and Manipulation challenge. It is a latent diffusion model trained to perform upscaling tasks.Īlthough delivering superior quality, it is extremely slow. Latent Diffusion Super Resolution (LDSR) upscaler was initially released along with Stable Diffusion 1.4. When it is done, the upscaled image will appear in the output window on the right. Select R-ESRGAN 4x+, an AI upscaler that works for most images. Set it to a lower value, like 2, if you don’t want the image to be that big. Many AI upscaler is default to upscaling 4 times, so 4 is a fine choice. Upload the image you want to upscale to the source canvas. Go to the Extras tab (I know the name is confusing), and select Single Image. See my Quick Start Guide for setting up AUTOMATIC1111 GUI. We will go through how to use an AI upscaler using AUTOMATIC1111 GUI for Stable Diffusion. How to use AI upscaler for Stable Diffusion? Because of the knowledge embedded in the AI upscaler, it can upscale the image and recover the details simultaneously. We mainly pay attention to a few key features.īelow is an example of comparing the traditional (Lanczos) and AI (R-ESRGAN) upscaler. It’s like humans don’t need to study a person’s face in great detail to remember it. It is capable of filling in the missing information. A neural network model is then trained to recover the original images.Ī massive amount of prior knowledge is embedded into the model. The degraded images are then reduced to a smaller size. Good-quality images are first artificially corrupted to emulate real-world degradation. In contrast, AI upscalers are models trained with massive amounts of data. However, if the image itself is corrupted or distorted, there’s no way for these algorithms to fill in missing information accurately. They enlarge the canvas and fill in the new pixels by performing mathematical operations using only the image’s pixel values. Traditional algorithms for resizing images, such as the nearest neighbor interpolation and Lanczos interpolation, have been criticized for using only pixel values of the image. You can, but the result won’t be as good. To complicate the matter, a complex scene generated by Stable Diffusion is often not as sharp as it should be. Its screen displays 2,532 x 1,170 pixels so an unscaled Stable Diffusion image would need to be enlarged and look low quality. It’s camera produces 12 MP images – that is 4,032 × 3,024 pixels. The default image size of Stable Diffusion v1 is 512×512 pixels. How to use AI upscaler for Stable Diffusion?.Why can’t we use a traditional upscaler?.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |