> For the complete documentation index, see [llms.txt](https://sogni.gitbook.io/sogni-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sogni.gitbook.io/sogni-docs/tutorials/guides/how-to-transfer-a-face-from-one-image-to-another.md).

# How to Transfer a Face From One Image to Another

You can mix the face from one image with body from another one by following these steps:

**1.** Generate the image that has the face you would like to use. Save it to the gallery

<div align="left"><figure><img src="/files/udXcVZKaZn5IMrmLStuF" alt="" width="375"><figcaption></figcaption></figure></div>

**2.** Generate the image that has the body you would like to use. Save it to the gallery

<div align="left"><figure><img src="/files/NZdcnjb8fo4Pb58iWRpO" alt="" width="375"><figcaption></figcaption></figure></div>

**3.** Select the Stable Diffusion model you want to use for the final image. It should be one that supports ControlNet.

**4.** Create a mask image that only has the face with transparent background. You can use the ControlNet preprocessor to do this:

1. Drag the “face” image from the gallery to the controlNet module.&#x20;
2. Select the Segmentation preprocessor (second one from the bottom on the left side of the CN image)&#x20;
3. Tap the subject mask button and make sure you have transparent background selected. This should create the mask you need with only the face. Note: If your face image also has a body or other things you need to remove from the mask, click the “Send to Main Window” button to the right of the CN image, then activate the "Lasso Eraser / Mask Tool".

**5.** Select the InPaint CN Model.

**6.** Restore the “body” image from the gallery with all of its settings, and turn seed shuffle OFF.

**7.** Drag and drop the “body” image from the gallery to the Guide Image module. Set strength between 50-65%.

**8.** Zoom and pan the CN face mask image so it is in the correct position relative to the body image.

**9.** Generate the image

**10.** With real-time rendering ON, adjust the position of the face mask, steps, guidance, etc. until the image is right.

<figure><img src="/files/wNcmoEdM4UTTmqZ8OTw5" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sogni.gitbook.io/sogni-docs/tutorials/guides/how-to-transfer-a-face-from-one-image-to-another.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
