SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.04831 · 2023

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

arXiv · PDF · Open in the Atlas

Code that ran

13 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 4 violated it and 0 have no contract verdict; 8 failures of our instrument; 4 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2312.04831.json · badge: /api/ran/2312.04831.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
yikai-wang/asuka-misato canonical (classifier label)
classifier basis: census
13 ran · 4 no recorded run
FunctionStatusWhere it lives
add_border_and_mask Ran
ran; our contract draft was wrong, not the code
yikai-wang/asuka-misato/asuka-flux/demo_gradio.py
pointer only (licence: NONE) · get_code("e978907f8cb52268")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cal Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yikai-wang/asuka-misato/asuka-flux/eval/cal_ids.py
pointer only (licence: NONE) · get_code("4d09e9bc9c8e653f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_gradient_gt_mean Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yikai-wang/asuka-misato/asuka-flux/eval/cal_grad.py
pointer only (licence: NONE) · get_code("c5b6bb489aa439ac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

default Ran
ran, violated the contract we drafted
yikai-wang/asuka-misato/asuka-flux/ldm/modules/attention.py
pointer only (licence: NONE) · get_code("424012cb37b31172")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

exists Ran
ran, violated the contract we drafted
yikai-wang/asuka-misato/asuka-flux/ldm/modules/attention.py
pointer only (licence: NONE); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_res_dirs Ran
ran; our contract draft was wrong, not the code
yikai-wang/asuka-misato/asuka-flux/eval/cal_sum.py
pointer only (licence: NONE) · get_code("d81f4c3b50cd3c53")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_result_image Ran
ran, honoured the contract we drafted
yikai-wang/asuka-misato/asuka-flux/eval/cal_grad.py
pointer only (licence: NONE) · get_code("112f734db631ff3a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

isimage Ran
ran, violated the contract we drafted
yikai-wang/asuka-misato/asuka-flux/ldm/util.py
pointer only (licence: NONE) · get_code("b1368330cf0f5642")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ismap Ran
ran, violated the contract we drafted
yikai-wang/asuka-misato/asuka-flux/ldm/util.py
pointer only (licence: NONE) · get_code("d72762b700feee6f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_nograd_func Ran
ran; our contract draft was wrong, not the code
yikai-wang/asuka-misato/asuka-flux/ldm/modules/utils.py
pointer only (licence: NONE) · get_code("a76fc7fb6958f97c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_recursive_func Ran
ran; our contract draft was wrong, not the code
yikai-wang/asuka-misato/asuka-flux/ldm/modules/utils.py
pointer only (licence: NONE) · get_code("b62bec09ceeaca79")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yikai-wang/asuka-misato/asuka-flux/datas/misato_dataset.py
pointer only (licence: NONE) · get_code("f32aecfb3ca6c2af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

uniq Ran
ran; our contract draft was wrong, not the code
yikai-wang/asuka-misato/asuka-flux/ldm/modules/attention.py
pointer only (licence: NONE); the stored copy get_code serves, from JingWu321/MUNBa, is pointer only (licence: NONE) · get_code("9a299fe5ae09e407")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_ssim Not yet run
unverified (harvested, no recorded run)
yikai-wang/asuka-misato/asuka-flux/eval/cal_psnr_lpips_ssim.py
pointer only (licence: NONE) · get_code("8abb8e92c3b3495e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

log_txt_as_img Not yet run
unverified (harvested, no recorded run)
yikai-wang/asuka-misato/asuka-flux/ldm/util.py
pointer only (licence: NONE) · get_code("37e2b5e4925fedc7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

process_batch Not yet run
unverified (harvested, no recorded run)
yikai-wang/asuka-misato/asuka-flux/eval/cal_psnr_lpips_ssim.py
pointer only (licence: NONE) · get_code("5d289ebf7d9bcada")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

tensor2float Not yet run
unverified (harvested, no recorded run)
yikai-wang/asuka-misato/asuka-flux/ldm/modules/utils.py
pointer only (licence: NONE) · get_code("8e28f96374f1b285")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yikai-wang/asuka-misato when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 6 the same month, 9 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
exists 486 other papers
262 dated earlier, 16 the same month, 202 later, 4 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
default 207 other papers
100 dated earlier, 14 the same month, 91 later, 2 same year, order not determinable · 41 only as an assembly brick
1711.11585 (2017-11)
High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.08162 (2020-10)
SidechainNet: An All-Atom Protein Structure Dataset for Machine Learning
and 204 more not named here
uniq 115 other papers
45 dated earlier, 10 the same month, 58 later, 2 same year, order not determinable
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
and 112 more not named here
ismap 69 other papers
30 dated earlier, 5 the same month, 32 later, 2 same year, order not determinable
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
and 66 more not named here
isimage 61 other papers
27 dated earlier, 5 the same month, 27 later, 2 same year, order not determinable
2206.02779 (2022-06)
Blended Latent Diffusion
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
2210.12965 (2022-10)
High-Resolution Image Editing via Multi-Stage Blended Diffusion
and 58 more not named here
make_nograd_func 16 other papers
11 dated earlier, 3 later, 2 same year, order not determinable
1806.01260 (2018-06)
Digging Into Self-Supervised Monocular Depth Estimation
1912.06378 (2019-12)
Cascade Cost Volume for High-Resolution Multi-View Stereo and Stereo Matching
2007.10872 (2020-07)
Dense Hybrid Recurrent Multi-view Stereo Net with Dynamic Consistency Checking
and 13 more not named here
make_recursive_func 14 other papers
10 dated earlier, 2 later, 2 same year, order not determinable
1912.06378 (2019-12)
Cascade Cost Volume for High-Resolution Multi-View Stereo and Stereo Matching
2007.10872 (2020-07)
Dense Hybrid Recurrent Multi-view Stereo Net with Dynamic Consistency Checking
2104.00681 (2021-04)
NeuralRecon: Real-Time Coherent 3D Reconstruction from Monocular Video
and 11 more not named here
tensor2float 10 other papers
6 dated earlier, 2 later, 2 same year, order not determinable
1912.06378 (2019-12)
Cascade Cost Volume for High-Resolution Multi-View Stereo and Stereo Matching
2108.03824 (2021-08)
AA-RMVSNet: Adaptive Aggregation Recurrent Multi-view Stereo Network
2112.05126 (2021-12)
IterMVS: Iterative Probability Estimation for Efficient Multi-View Stereo
and 7 more not named here
log_txt_as_img 8 other papers
1 dated earlier, 3 the same month, 4 later
2305.02034 (2023-05)
SAMRS: Scaling-up Remote Sensing Segmentation Dataset with Segment Anything Model
2312.06573 (2023-12)
ControlNet-XS: Rethinking the Control of Text-to-Image Diffusion Models as Feedback-Control Systems
2312.06607 (2023-12)
DiAD: A Diffusion-based Framework for Multi-class Anomaly Detection
and 5 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2312.04831")
get_code_for_paper("2312.04831")
have("2312.04831")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2312.04831.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2312.04831.svg)](https://syntology.ai/paper/2312.04831)

Connect an agent — have() is free.