What is ACE++?

This is a single image generated from a prompt like this:
- An image split into 2 frames.
- In the first frame, person A is sitting.
- In the second frame, person A is looking at the viewer.
As you can see, the people on the left and right look like the same person. This is called the sprite sheet technique, a trick people have used since the Stable Diffusion 1.5 days to make several consistent shots of the same scene.

Now let's go one step further: give the model an image like the one above and have it inpaint only the right half. Then a new image is generated on the right, using the left image as a reference.
This is the core principle behind IC-LoRA and ACE++, which this page covers. It used to be a "works sometimes" kind of technique, but since Flux came along, it has become reasonably stable.
Put roughly, ACE++ reinforces this principle with LoRAs, and there are 3 LoRAs, one for each use case.
- ID Transfer / Face Swap
- Subject Transfer
- Instruction-based Image Editing (Local Editing)
Required Custom Nodes
This custom node pack includes lots of matting and segmentation nodes, but we only use the IC LoRA Concat (RMBG) 🖼️ node from it.
There is also an official ACE++ custom node, but its behavior is unstable, so we don't use it here.
Model Download
- diffusion_models
- loras
📂ComfyUI/
└── 📂models/
├── 📂diffusion_models/
│ └── FLUX.1-Fill-dev_fp8.safetensors
└── 📂loras/
├── comfyui_portrait_lora64.safetensors
├── comfyui_subject_lora16.safetensors
└── comfyui_local_lora16.safetensors
Basic Concept
ACE++ works by looking at a single image with the "reference image" and the "image to edit + mask" placed side by side.
- Left side: Reference image (the face, character, etc. you want the result to resemble)
- Right side: A blank image or the image to edit (+ a mask drawn on it)
Think of it as joining these two side by side into one image and then inpainting as usual. It's easiest to understand if you think of Flux.1 Fill as handling "where to redraw" and the ACE++ LoRA as handling "what it should look like."
ID Transfer
Generates an image that resembles the person (face) in the reference image.

- The base is inpainting using Flux.1 Fill.
- 🟪 Load FLUX.1 Fill and the
portraitLoRA. - 🟩 Use the
IC LoRA Concat (RMBG) 🖼️node to put the "reference image" and the "base image + mask" side by side.- Left: Reference image (portrait photo, etc.)
- Right: Base image (a blank gray image here) + mask
- If you don't connect anything to the mask input, the whole right side is treated as masked.
- 🟨 This is the same
InpaintModelConditioningnode used in regular inpainting. - 🟦 Naturally, the output is a wide image with two panels.
- We only want the right half, so we crop out just the right side using the position info passed from the
IC LoRA Concat (RMBG) 🖼️node.
- We only want the right half, so we crop out just the right side using the position info passed from the
Using as Face Swap
The basics are the same as ID transfer, but by changing "the base image on the right" and "how you mask it," it works as a face swap.

- 🟩 Put the image whose face you want to swap (the base image) on the right side.
- 🟩 If you only want to change the face, mask just the area around the face.
It's called face swap, but it's more flexible than that, so masking the whole head works well too.
Subject Transfer
Switch to comfyui_subject_lora16.safetensors and you can do subject transfer.

- It's the same workflow as the Face Swap one above.
- 🟪 Change the loaded LoRA to
subject.
You can use all kinds of things as references, not just people but also logos and objects.
- Transfer just a logo onto a different package photo
- Place a character or mascot against a different background
- Move one specific item (a bag, etc.) into another photo
Local Editing
With comfyui_local_lora16.safetensors, you can steer it toward local editing that redraws only the masked area to follow the prompt.

- Use a regular inpainting workflow, not the side-by-side one.
- 🟪 Change the loaded LoRA to
local. - Write the prompt as an instruction, like "Change her clothes to a white shirt."