huggingface_hub diffusers transformers torch>=2.4.1 xformers>=0.0.27.post2 gradio>=4.44.1 scepter ms_swift











































Chaojie Mao
·
Jingfeng Zhang
·
Yulin Pan
·
Zeyinzi Jiang
·
Zhen Han
·
Yu Liu
·
Jingren Zhou
Tongyi Lab, Alibaba Group
The original intention behind the design of ACE++ was to unify reference image generation, local editing,
and controllable generation into a single framework, and to enable one model to adapt to a wider range of tasks.
A more versatile model is often capable of handling more complex tasks. We have released three LoRA models for
specific vertical domains and a more versatile FFT model (the performance of the FFT model declines compared
to the LoRA model across various tasks). Users can flexibly utilize these models and their
combinations for their own scenarios.
for the delayed responses and updates regarding ACE++ issues.
Further development of the ACE model through post-training on the FLUX model must be suspended.
We have identified several significant challenges in post-training on the FLUX foundation.
The primary issue is the high degree of heterogeneity between the training dataset and the FLUX model,
which results in highly unstable training. Moreover, FLUX-Dev is a distilled model, and the influence of its original negative prompts on its final performance is uncertain.
As a result, subsequent efforts will be focused on post-training the ACE model using the Wan series of foundational models. __Due to the reasons mentioned earlier, the performance of the FFT model may decline compared
to the LoRA model across various tasks. Therefore, we recommend continuing to use the LoRA model to achieve better results.
We provide the FFT model with the hope that it may facilitate academic exploration and research in this area.__
Portrait-consistent generation to maintain the consistency of the portrait.
Models’ scepter_path:
Subject-driven image generation task to maintain the consistency of a specific subject in different scenes.
Models’ scepter_path:
Redrawing the mask area of images while maintaining the original structural information of the edited area.
| Tuning Method | Input | Output | Instruction | Models |
| LoRA + ACE Data |
![]() ![]() |
![]() |
“By referencing the mask, restore a partial image from the doodle {image} that aligns with the textual explanation: “1 white old owl”.” |
Models’ scepter_path:
Fully finetuning a composite model with ACE’s data to support various editing and reference generation tasks through an instructive approach.
We introduced 64 additional channels in the channel dimension to differentiate between the repainting task and the editing task. In these channels, we place the latent representation of the pixel space from the edited image, while keeping other channels consistent with the repainting task. One issue with this approach is that it changes the input channel number of the FLUX-Fill-Dev model from 384 to 448. The specific configuration can be referenced in the configuration file.
The ACE++ model supports a wide range of downstream tasks through simple adaptations. Here are some examples.
| ACE++ Model | Input Reference Image | Input Edit Image | Input Edit Mask | Output | Instruction | Function |
|---|---|---|---|---|---|---|
| Portrait LoRA(recommended) / FFT model | ![]() |
![]() |
“Maintain the facial features, A girl is wearing a neat police uniform and sporting a badge. She is smiling with a friendly and confident demeanor. The background is blurred, featuring a cartoon logo.” | “Character ID Consistency Generation” | ||
| Subject LoRA(recommended) / FFT model | ![]() |
![]() |
“Display the logo in a minimalist style printed in white on a matte black ceramic coffee mug, alongside a steaming cup of coffee on a cozy cafe table.” | “Subject Consistency Generation” | ||
| Subject LoRA(recommended) / FFT model | ![]() |
![]() |
![]() |
![]() |
“The item is put on the table.” | “Subject Consistency Editing” |
| Subject LoRA(recommended) / FFT model | ![]() |
![]() |
![]() |
![]() |
“The logo is printed on the headphones.” | “Subject Consistency Editing” |
| Subject LoRA(recommended) / FFT model | ![]() |
![]() |
![]() |
![]() |
“The woman dresses this skirt.” | “Try On” |
| Portrait LoRA(recommended) / FFT model | ![]() |
![]() |
![]() |
![]() |
“{image}, the man faces the camera.” | “Face swap” |
| FFT model | ![]() |
![]() |
![]() |
“{image} features a close-up of a young, furry tiger cub on a rock. The tiger, which appears to be quite young, has distinctive orange, black, and white striped fur, typical of tigers. The cub’s eyes have a bright and curious expression, and its ears are perked up, indicating alertness. The cub seems to be in the act of climbing or resting on the rock. The background is a blurred grassland with trees, but the focus is on the cub, which is vividly colored while the rest of the image is in grayscale, drawing attention to the tiger’s details. The photo captures a moment in the wild, depicting the charming and tenacious nature of this young tiger, as well as its typical interaction with the environment.” | “Super-resolution” | |
| FFT model | ![]() |
![]() |
![]() |
“a blue hand” | “Regional Editing” | |
| FFT model | ![]() |
![]() |
![]() |
“Mechanical hands like a robot” | “Regional Editing” | |
| Local Editing LoRA/FFT model | ![]() |
![]() |
![]() |
“{image} Beautiful female portrait, Robot with smooth White transparent carbon shell, rococo detailing, Natural lighting, Highly detailed, Cinematic, 4K.” | “Recolorizing” | |
| Local Editing LoRA/FFT model | ![]() |
![]() |
![]() |
“{image} Beautiful female portrait, Robot with smooth White transparent carbon shell, rococo detailing, Natural lighting, Highly detailed, Cinematic, 4K.” | “Depth Guided Generation” | |
| Local Editing LoRA/FFT model | ![]() |
![]() |
![]() |
“{image} Beautiful female portrait, Robot with smooth White transparent carbon shell, rococo detailing, Natural lighting, Highly detailed, Cinematic, 4K.” | “Contour Guided Generation” |
We are deeply grateful to the community developers for building many fascinating applications based on the ACE++ series of models.
During this process, we have received valuable feedback, particularly regarding artifacts in generated images and the stability of the results.
In response to these issues, many developers have proposed creative solutions, which have greatly inspired us, and we pay tribute to them.
At the same time, we will take these concerns into account in our further optimization efforts, carefully evaluating and testing before releasing new models.
In the table below, we have briefly listed some workflows for everyone to use.
Additionally, many bloggers have published tutorials on how to use it, which are listed in the table below.
Copy the workflow/ComfyUI-ACE_Plus folder into ComfyUI’s custom_nodes directory. Launch ComfyUI, and we have provided some example workflows in workflow_example with the following explanations. It is recommended to use the LoRA model workflow, as it offers more stable results compared to the FFT model.
| Workflow | Description | Other dependency models | Setting |
| ACE_Plus_LoRA_workflow_reference_generation.json | Reference image generation capability for portrait or subject. | Potrait or subject LoRA Model + FLUX.1-Fill-dev | Task_type: repainting (you don’t need to install dependencies like scepter) |
| ACE_Plus_LoRA_workflow_redux_reference_generation.json | Reference image generation capability for portrait or subject used in conjunction with Redux. | Potrait or subject LoRA Model + FLUX.1-Fill-dev + FLUX.1-Redux | Task_type: repainting (you don’t need to install dependencies like scepter) |
| ACE_Plus_LoRA_workflow_reference_editing.json | Reference image editing capability such as logo paste, face swap. | Potrait or subject LoRA Model + FLUX.1-Fill-dev | Task_type: repainting (you don’t need to install dependencies like scepter) |
| ACE_Plus_LoRA_workflow_redux_reference_editing.json | Reference image editing capability such as logo paste, face swap used in conjunction with Redux. | Potrait or subject LoRA Model + FLUX.1-Fill-dev + FLUX.1-Redux | Task_type: repainting (you don’t need to install dependencies like scepter) |
| ACE_Plus_LoRA_workflow_localcontrol_generation.json | Controllable image-to-image translation capability. To preprocess depth and contour information from images,
we use externally-provided models that are typically downloaded from the ModelScope Hub. Because download success can vary depending on the user’s environment, we offer alternatives: users can either leverage existing community nodes (depth extration node or contour extraction node) for this task (then choosing the ‘no_preprocess’ option), or users can pre-download the required models contour and and adjust the configuration file ‘workflow/ComfyUI-ACE_Plus/config/ace_plus_fft_processor.yaml’ to specify the models’ local paths. |
Local editing LoRA Model + FLUX.1-Fill-dev + Preprocessing model (depth or contour) | Task_type: contour_repainting/depth_repainting/recolorizing (you need to install dependencies like scepter) |
| ACE_Plus_FFT_workflow_referenceediting_generation.json | Reference image editing capability | FFT model | Task_type: repainting (you don’t need to install dependencies like scepter) |
| ACE_Plus_FFT_workflow_no_preprocess.json | Use the preprocessed images, such as depth and contour, as input, or the super-resolution. | FFT model | Task_type: no_preprocess (you don’t need to install dependencies like scepter) |
| ACE_Plus_FFT_workflow_controlpreprocess.json | Controllable image-to-image translation capability. To preprocess depth and contour information from images,
we use externally-provided models that are typically downloaded from the ModelScope Hub. Because download success can vary depending on the user’s environment, we offer alternatives: users can either leverage existing community nodes (depth extration node or contour extraction node) for this task (then choosing the ‘no_preprocess’ option), or users can pre-download the required models contour and and adjust the configuration file ‘workflow/ComfyUI-ACE_Plus/config/ace_plus_fft_processor.yaml’ to specify the models’ local paths. |
FFT model | Task_type: contour_repainting/depth_repainting/recolorizing (you need to install dependencies like scepter) |
| ACE_Plus_FFT_workflow_reference_generation.json | Reference image generation capability for portrait or subject. | FFT model | Task_type: repainting (you don’t need to install dependencies like scepter) |
| ACE_Plus_FFT_workflow_referenceediting_generation.json | Reference image editing capability | FFT model | Task_type: repainting (you don’t need to install dependencies like scepter) |