# ali-vilab/MimicBrush

Official implementations for paper: Zero-shot Image Editing with Reference Imitation

Repository: https://github.com/ali-vilab/MimicBrush
Canonical: https://ross.abutalabs.com/products/mimicbrush
Homepage: https://xavierchen34.github.io/MimicBrush-Page/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: aigc, customization, image-composition, image-editing, texture-transfer
Last push: 2024-06-15T16:17:10+00:00

## Health v2 (maintenance only)
Score: 24/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 58
- inputs: {"age_days": 817, "days_push": 809, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1311, forks 90 (observed 2026-08-28T04:04:19.984594+00:00)

## What it is
MimicBrush is the official implementation of a zero-shot image editing method that lets users mask a region in a source image and provide a reference image showing the desired appearance, with the model automatically capturing semantic correspondence between them. It is built on a diffusion prior (two U-Nets over Stable Diffusion 1.5) and ships with inference code and a Gradio demo.

## Use cases
- edit part of an image using a reference photo
- transfer texture from one image to another
- replace a masked region guided by an example image
- zero-shot image editing without text prompts
- run a local gradio demo for reference-based inpainting

## When to choose
- you want reference-image-guided editing of masked regions without writing prompts
- you need texture transfer or post-processing refinement backed by a diffusion model
- you want to reproduce or build on the MimicBrush research paper

## When to avoid
- you need simple text-prompt-only image editing
- you lack a GPU or cannot download large model checkpoints
- you need a production-ready, actively maintained product rather than research code

## Facets
- artifact type: application
- maturity: active
- function: image-processing, machine-learning, deep-learning
- domain: artificial-intelligence, image-processing, computer-vision
- platform: python
- tags: diffusion-model, stable-diffusion, image-editing, reference-imitation, inpainting, gradio-demo, research-paper, linux, gpu

## Member repositories
- ali-vilab/MimicBrush (main) score 24

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:19.984594+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:49:49.339792+00:00, confidence not recorded.
  - readme: https://github.com/ali-vilab/MimicBrush (fetched 2026-08-28T04:04:19.984594+00:00, sha 06f7f2f8a723)
  - homepage: https://xavierchen34.github.io/MimicBrush-Page/ (fetched 2026-08-29T12:07:45.451573+00:00, sha d7628a2dc18c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
