Wenyu Liu, Xinggang Wang, Xiaoxin Chen, Ziyang Xu, Xiaohu Ruan, Kangsheng Duan, Xiaolei Shen, Zhifeng Ding
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Image inpainting is a fundamental research area between image editing and image generation. Recent state-of-the-art (SOTA) methods have explored novel attention mechanisms, lightweight architectures, and context-aware modeling, demonstrating impressive performance. However, they often struggle with complex structure (e.g., texture, shape, spatial relations) and semantics (e.g., color consistency, object restoration, and logical correctness), leading to artifacts and inappropriate generation. To address this challenge, we design a simple yet effective inpainting paradigm called latent categories guidance, and further propose a diffusion-based model named PixelHacker. Specifically, we first construct a large dataset containing 14 million image-mask pairs by annotating foreground and background (potential 116 and 21 categories, respectively). Then, we encode potential foreground and background representations separately through two fixed-size embeddings, and intermittently inject these features into the denoising process via linear attention. Finally, by pre-training on our dataset and fine-tuning on open-source benchmarks, we obtain PixelHacker. Extensive experiments show that PixelHacker comprehensively outperforms the SOTA on a wide range of datasets (Places2, CelebA-HQ, and FFHQ) and exhibits remarkable consistency in both structure and semantics. Project page at https://hustvl.github.io/PixelHacker.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2504.20438")
get_code_for_paper("2504.20438")
have("2504.20438")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2504.20438.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2504.20438)
Connect an agent — have() is free.