# 2-2 Image to Image

> **In the practical application of AI painting, due to the uncertainty of the initial images produced by the model, the actual controllability of the output images is not high. Subsequently, we can use the "Image to Image" function to modify the pictures towards our desired direction, thereby enhancing the controllability of the generated images.**

## What is Image to Image?

The "Image to Image" function is an AI-based image generation technology that allows users to generate new images based on an existing picture combined with text descriptions. This technology is significant because it can create new visual content by mixing image and text prompts according to the specific needs of users.

Simply put, the process of considering <mark style="background-color:yellow;">both the prompt words and the image information</mark> in the reference picture and then drawing is what constitutes the image-to-image generation.

## Analysis of Img to Img Parameters

**Intelligent Analysis**

<mark style="background-color:yellow;">Automatically inferring matching</mark> prompts based on the provided image, as well as a model that matches the image. However, the prompts generated by intelligent analysis may contain incorrect prompts, so it is recommended to manually perform a <mark style="background-color:yellow;">second screening</mark>. This function primarily serves as a reference for writing prompt words.

<figure><img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2FMseX7gkQQ34msa9a1QAp%2F%25E6%2599%25BA%25E8%2583%25BD%25E5%2588%2586%25E6%259E%2590.png?alt=media&#x26;token=37943247-80df-4599-a6d9-dc67616e077b" alt="SeaArt intelligent analysis feature"><figcaption></figcaption></figure>

**Workflow of Img to Img**

<mark style="background-color:red;">Workflow: Upload Reference Image - Set Model Prompts - Set Parameters - Generate</mark>

After uploading the reference image, open intelligent analysis, which will automatically fill in the prompts, Model, and image size. It is recommended to readjust the prompts according to actual needs. The parameter settings are the same as for generating initial images. Finally, click to generate the image, and AI will create a new image based on the reference picture and the user's instructions.

<mark style="color:red;">\*The larger the redrawing extent, the greater the difference from the original image. It is generally set between 0.4-0.8.</mark>

**Denoising Strength:** This parameter controls the degree of divergence in the redrawing process based on the original image. The higher the value, the more freedom the model has during the redrawing process, and the <mark style="background-color:yellow;">greater the difference</mark> between the drawing result and the original reference image.

When the Denoising Strength is too high, it becomes difficult to associate the drawn image content with the original image, hence, we typically keep the value of the redrawing extent <mark style="color:red;">between 0.4 and 0.8.</mark>

**Partial Repainting**

Partial Repainting allows for modifications and adjustments to <mark style="background-color:yellow;">specific areas within an image.</mark> This feature is particularly suited for fine-tuning local details. It also requires the addition of prompts to guide the modification content. This is used when the majority of the image content is satisfactory, but there is a need to adjust some detail elements.

After uploading the image, click the brush on the right to enter the Partial Repainting area. Then, you can smear the image. After smearing, fill in the prompts for the smeared area in the prompt box.

After using Partial Repainting, only the selected area has been redrawn, while the other areas remain unchanged.
