AB
AiBoss
project

MimicBrush - An open-source AI image editing and fusion framework from Alibaba and others.

MimicBrush is an AI image editing and fusion framework developed by researchers from Alibaba, the University of Hong Kong, and Ant Group. It allows users to specify the areas to be edited on a source image through simple operations and provides a framework that includes...

What is MimicBrush?

MimicBrush is an AI image editing and fusion framework developed by researchers from Alibaba, the University of Hong Kong, and Ant Group. It allows users to easily specify the areas to be edited on a source image and provides a reference image with the desired effect for further editing. MimicBrush automatically recognizes and mimics visual elements in the reference image, applying them to the corresponding areas of the source image. It supports image editing operations such as object replacement, style conversion, and texture adjustment. This technology is particularly suitable for scenarios such as product customization, character design, and special effects production, greatly simplifying the complex processes of traditional image editing and improving editing efficiency and flexibility.

Features of MimicBrush

  • Reference image imitationUsers define specific areas they wish to edit on the source image and provide a reference image containing the desired style or object. MimicBrush then analyzes and mimics specific visual features from the reference image, seamlessly applying these features to the designated area of the source image to achieve consistency in style or content.
  • Automatic region recognitionMimicBrush utilizes advanced image recognition technology to automatically detect and define the editing area. Users no longer need to manually draw masks or make tedious selections, simplifying the preparation work before editing.
  • One-click editing applicationUsers can start the editing process with just one click. MimicBrush will automatically perform the entire editing process from region recognition to feature imitation, making editing fast and user-friendly, without requiring multiple steps.
  • Diverse editing effectsIt supports object replacement, such as replacing one object with another; it can perform style transformation, such as changing the pattern or color of clothing. It can also adjust textures, such as applying the texture of one material to the surface of another object.
  • Real-time feedbackDuring the editing process, MimicBrush offers a real-time preview function. Users can see the editing effects in real time, make timely adjustments and optimizations, and ensure that the editing results better meet the user's expectations and needs.
  • Flexibility and adaptabilityMimicBrush can adapt to different image content, including complex scenes and diverse styles, and offers a variety of editing options, allowing users to personalize it according to their preferences.

MimicBrush official website entrance

MimicBrush Technical Principles

  • Self-monitored learningMimicBrush is trained in a self-supervised manner, leveraging the natural consistency and visual variations between video frames. During training, the system randomly selects two frames from the video, one as the source image and the other as the reference image, learning how to use information from the reference image to complete the masked portion of the source image.
  • Double-diffused UNets structureMimicBrush employs two UNet networks: an "imitative U-Net" and a "reference U-Net." These two networks process the source and reference images respectively, and interact with each other by sharing keys and values in a shared attention layer, helping the system locate the portion of the reference image that corresponds to the editing area in the source image.
  • Attention mechanismIn MimicBrush, the attention keys and values extracted from the reference U-Net are injected into the mimic U-Net. This mechanism helps the mimic U-Net to more accurately generate the masking region, ensuring that the generated region blends harmoniously with the background and other elements of the source image.
  • Data AugmentationTo increase the variability between the source and reference images, MimicBrush employs strong data augmentation techniques during training, including color jitter, rotation, scaling, and flipping, to improve the model's generalization ability to images under different poses, lighting, and viewpoints.
  • Masking strategyMimicBrush employs an intelligent masking strategy that uses SIFT feature matching to identify key regions in the source image and increases the likelihood of these regions being masked, thereby enabling the model to learn how to find and mimic more meaningful visual elements from the reference image.
  • Deep modelsMimicBrush also utilizes a depth model to predict the depth map of the source image as an optional condition for shape control. This allows MimicBrush to preserve the shape of the source object in texture transfer tasks while applying only the texture or pattern of the reference image to the source object.
  • Evaluation benchmarkTo comprehensively evaluate the performance of MimicBrush, researchers constructed a high-quality benchmark that includes partial compositing and texture transfer tasks, covering a variety of practical application scenarios such as fashion and product design.

Application scenarios of MimicBrush

  • Product DesignDesigners can use MimicBrush to quickly modify product designs, such as changing the product's color, texture, or shape to match design concepts or meet specific needs.
  • Fashion and ClothingIn the fashion industry, MimicBrush can be used to change the pattern, color, or style of clothing, helping designers and marketers quickly preview different design options.
  • Beauty and portrait editingIndividual users can use MimicBrush to beautify portraits, such as changing hairstyles, makeup, or skin tone, without needing professional image editing skills.
  • Advertising and marketing materialsMarketers can quickly adjust advertising images to suit different markets or promotional activities, such as changing product displays or background elements.
  • Social media content creationSocial media users can use MimicBrush to enhance or personalize their photos and videos, making their content more eye-catching.
  • e-commerceOnline retailers can use MimicBrush to customize product images, showcasing different options or variations, and providing customers with a richer visual experience.