Papers › Towards Enhanced Image Inpainting: Mitigating Unwanted Object Insertion and Preserving...

Towards Enhanced Image Inpainting: Mitigating Unwanted Object Insertion and Preserving Color Consistency

8 Dec 2023CVPR 2025 1arXiv:2312.04831archive 2025-07-28

Yikai Wang, Chenjie Cao, Junqiu Yu, Ke Fan, xiangyang xue, Yanwei Fu

Recent advances in image inpainting increasingly use generative models to handle large irregular masks. However, these models can create unrealistic inpainted images due to two main issues: (1) Unwanted object insertion: Even with unmasked areas as context, generative models may still generate arbitrary objects in the masked region that don't align with the rest of the image. (2) Color inconsistency: Inpainted regions often have color shifts that causes a smeared appearance, reducing image quality. Retraining the generative model could help solve these issues, but it's costly since state-of-the-art latent-based diffusion and rectified flow models require a three-stage training process: training a VAE, training a generative U-Net or transformer, and fine-tuning for inpainting. Instead, this paper proposes a post-processing approach, dubbed as ASUKA (Aligned Stable inpainting with UnKnown Areas prior), to improve inpainting models. To address unwanted object insertion, we leverage a Masked Auto-Encoder (MAE) for reconstruction-based priors. This mitigates object hallucination while maintaining the model's generation capabilities. To address color inconsistency, we propose a specialized VAE decoder that treats latent-to-image decoding as a local harmonization task, significantly reducing color shifts for color-consistent inpainting. We validate ASUKA on SD 1.5 and FLUX inpainting variants with Places2 and MISATO, our proposed diverse collection of datasets. Results show that ASUKA mitigates object hallucination and improves color consistency over standard diffusion and rectified flow models and other inpainting methods.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2312.04831")

Code

Syntology Ran 13 of 17 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · violated contract; 1 ran · our draft was wrong; 10 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yikai-wang/asuka-misato officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 13 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · violated contract
1ran · our draft was wrong
10ran
4unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yikai-wang/asuka-misato. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_border_and_mask yikai-wang/asuka-misato/asuka-flux/demo_gradio.py official repository ran no licence file found · pointer only · e978907f8cb52268 · report
cal yikai-wang/asuka-misato/asuka-flux/eval/cal_ids.py official repository ran no licence file found · pointer only · 4d09e9bc9c8e653f · report
calculate_gradient_gt_mean yikai-wang/asuka-misato/asuka-flux/eval/cal_grad.py official repository ran no licence file found · pointer only · c5b6bb489aa439ac · report
default yikai-wang/asuka-misato/asuka-flux/ldm/modules/attention.py official repository ran · violated contract no licence file found · pointer only · 424012cb37b31172 · report
exists yikai-wang/asuka-misato/asuka-flux/ldm/modules/attention.py official repository ran · violated contract no licence file found · pointer only · aa5486a3650902d8 · report
find_res_dirs yikai-wang/asuka-misato/asuka-flux/eval/cal_sum.py official repository ran fingerprinted no licence file found · pointer only · d81f4c3b50cd3c53 · report
get_result_image yikai-wang/asuka-misato/asuka-flux/eval/cal_grad.py official repository ran no licence file found · pointer only · 112f734db631ff3a · report
isimage yikai-wang/asuka-misato/asuka-flux/ldm/util.py official repository ran no licence file found · pointer only · b1368330cf0f5642 · report
ismap yikai-wang/asuka-misato/asuka-flux/ldm/util.py official repository ran no licence file found · pointer only · d72762b700feee6f · report
make_nograd_func yikai-wang/asuka-misato/asuka-flux/ldm/modules/utils.py official repository ran no licence file found · pointer only · a76fc7fb6958f97c · report
make_recursive_func yikai-wang/asuka-misato/asuka-flux/ldm/modules/utils.py official repository ran no licence file found · pointer only · b62bec09ceeaca79 · report
prepare_data yikai-wang/asuka-misato/asuka-flux/datas/misato_dataset.py official repository ran no licence file found · pointer only · f32aecfb3ca6c2af · report
uniq yikai-wang/asuka-misato/asuka-flux/ldm/modules/attention.py official repository ran · our draft was wrong no licence file found · pointer only · 9a299fe5ae09e407 · report
calculate_ssim yikai-wang/asuka-misato/asuka-flux/eval/cal_psnr_lpips_ssim.py official repository unverified no licence file found · pointer only · 8abb8e92c3b3495e · report
log_txt_as_img yikai-wang/asuka-misato/asuka-flux/ldm/util.py official repository unverified no licence file found · pointer only · 37e2b5e4925fedc7 · report
process_batch yikai-wang/asuka-misato/asuka-flux/eval/cal_psnr_lpips_ssim.py official repository unverified no licence file found · pointer only · 5d289ebf7d9bcada · report
tensor2float yikai-wang/asuka-misato/asuka-flux/ldm/modules/utils.py official repository unverified no licence file found · pointer only · 8e28f96374f1b285 · report

Tasks

DecoderHallucinationImage InpaintingObjectObject Hallucination

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Inpainting Places2 ASUKA FID 1.230 #1 of 14 Archive leaderboard report
Image Inpainting Places2 ASUKA LPIPS 0.183 #1 of 14 Archive leaderboard report
Image Inpainting Places2 ASUKA P-IDS 28.70 #1 of 14 Archive leaderboard report
Image Inpainting Places2 ASUKA U-IDS 41.30 #1 of 14 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

DiffusionInpainting

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections