diff --git a/README.md b/README.md index 95c6a4c..eba7ae6 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,128 @@ expected to empower community developers to build even more interesting applicat - [x] **[2025.01.16]** Release the training code for lora. - [x] **[2025.02.15]** Collection of workflows in Comfyui. - [x] **[2025.02.15]** Release the config for fully fine-tuning. -- [] **[ToDo]** Release a unified fft model for ACE++, support more image to image tasks. +- [x] **[2025.03.03]** Release a unified fft model for ACE++, support more image to image tasks. -## π₯ Comfyui Workflows in community +## π₯The unified fft model for ACE++ +Fully finetuning a composite model with ACEβs data to support various editing and reference generation tasks through an instructive approach. + +We found that there are conflicts between the repainting task and the editing task during the experimental process. This is because the edited image is concatenated with noise in the channel dimension, whereas the repainting task modifies the region using zero pixel values in the VAE's latent space. The editing task uses RGB pixel values in the modified region through the VAE's latent space, which is similar to the distribution of the non-modified part of the repainting task, making it a challenge for the model to distinguish between the two tasks. + +To address this issue, we introduced 64 additional channels in the channel dimension to differentiate between these two tasks. 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. This approach significantly enhances the model's adaptability to different tasks. + +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](config/ace_plus_fft.yaml). + +### Examples +
| Input Reference Image | +Input Edit Image | +Input Edit Mask | +Output | +Instruction | +Function | +
![]() |
+ + | + | ![]() |
+ "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" | +
![]() |
+ + | + | ![]() |
+ "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" | +
![]() |
+ ![]() |
+ ![]() |
+ ![]() |
+ "The item is put on the table." | +"Subject Consistency Editing" | +
![]() |
+ ![]() |
+ ![]() |
+ ![]() |
+ "The logo is printed on the headphones." | +"Subject Consistency Editing" | +
![]() |
+ ![]() |
+ ![]() |
+ ![]() |
+ "The woman dresses this skirt." | +"Try On" | +
![]() |
+ ![]() |
+ ![]() |
+ ![]() |
+ "{image}, the man faces the camera." | +"Face swap" | +
| + | ![]() |
+ ![]() |
+ ![]() |
+ "{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" | +
| + | ![]() |
+ ![]() |
+ ![]() |
+ "a blue hand" | +"Regional Editing" | +
| + | ![]() |
+ ![]() |
+ ![]() |
+ "Mechanical hands like a robot" | +"Regional Editing" | +
| + | ![]() |
+ ![]() |
+ ![]() |
+ "{image} Beautiful female portrait, Robot with smooth White transparent carbon shell, rococo detailing, Natural lighting, Highly detailed, Cinematic, 4K." | +"Recolorizing" | +
| + | ![]() |
+ ![]() |
+ ![]() |
+ "{image} Beautiful female portrait, Robot with smooth White transparent carbon shell, rococo detailing, Natural lighting, Highly detailed, Cinematic, 4K." | +"Depth Guided Generation" | +
| + | ![]() |
+ ![]() |
+ ![]() |
+ "{image} Beautiful female portrait, Robot with smooth White transparent carbon shell, rococo detailing, Natural lighting, Highly detailed, Cinematic, 4K." | +"Contour Guided Generation" | +