SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.03740 · September 2026

Fill My Mirror: Geometry-Constrained Mirror Inpainting

Ohad Fried, Yacov Hel-Or, Shimon Vainer, Ofek Basson

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 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, 1 violated it and 0 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2609.03740.json · badge: /api/ran/2609.03740.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
OfekBasson/Fill-My-Mirror canonical (classifier label)
classifier basis: census
4 ran · 2 no recorded run
FunctionStatusWhere it lives
calculate_shift Ran
ran, violated the contract we drafted
OfekBasson/Fill-My-Mirror/fill_my_mirror/dual_mask_inpainting/pipeline_flux1.py
pointer only (licence: MIT); the stored copy get_code serves, from instantX-research/Regional-Prompting-FLUX, is pointer only (licence: NONE) · get_code("b9e2ae097bff0674")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from instantX-research/Regional-Prompting-FLUX, and GitHub detected no licence in that repository 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.

check_and_fix_aspect_ratio Ran
ran, honoured the contract we drafted
OfekBasson/Fill-My-Mirror/fill_my_mirror/utils.py
code served (permissive licence) · get_code("60cb249b0fc51278")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import warnings
from PIL import Image
import io
import numpy as np

# Create a small test image in memory
# Create a 100x200 pixel image (width=200, height=100)
img_array = np.random.randint(0, 256, (100, 200, 3), dtype=np.uint8)
img = Image.fromarray(img_array)

# Save to a temporary in-memory file path
# We need to use a real file for PIL.Image.open(), so create a temporary file
import tempfile
import os

temp_dir = tempfile.gettempdir()
image_path = os.path.join(temp_dir, "test_image_aspect_ratio.png")
img.save(image_path)

# Image is 200x100 (width x height), so aspect ratio is 200/100 = 2.0
# If we request height=100, width=200, aspect ratio is 200/100 = 2.0 (matches)
# If we request height=100, width=150, aspect ratio is 150/100 = 1.5 (doesn't match, should be corrected)

ARGS = {
    "image_path": image_path,
    "height": 100,
    "width": 150,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fit_plane_svd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
OfekBasson/Fill-My-Mirror/fill_my_mirror/plane.py
code served (permissive licence) · get_code("3b2bda503b0eb33b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Plane. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from dataclasses import dataclass

@dataclass
class Plane:
    point: np.ndarray
    normal: np.ndarray

# Create a valid points array with shape (N, 3)
# Use more than 3 points to have meaningful plane fitting
points = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0],
    [13.0, 14.0, 15.0]
], dtype=np.float64)

ARGS = {
    'points': points,
    'seed': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Plane — a Plane output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Plane output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
orient_plane_toward_camera Ran
ran; our contract draft was wrong, not the code
OfekBasson/Fill-My-Mirror/fill_my_mirror/plane.py
code served (permissive licence) · get_code("c1c28024d74977bf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Plane. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from dataclasses import dataclass

@dataclass
class Plane:
    point: np.ndarray
    normal: np.ndarray

# Create a plane with a point and normal vector
plane_point = np.array([1.0, 2.0, 3.0], dtype=np.float32)
plane_normal = np.array([0.0, 0.0, 1.0], dtype=np.float32)
plane = Plane(point=plane_point, normal=plane_normal)

# Create a camera center
camera_center = np.array([0.0, 0.0, 5.0], dtype=np.float32)

ARGS = {
    "plane": plane,
    "camera_center": camera_center,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Plane — a Plane output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Plane output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_inpainting_pipeline Not yet run
unverified (harvested, no recorded run)
OfekBasson/Fill-My-Mirror/fill_my_mirror/dual_mask_inpainting/core.py
code served (permissive licence) · get_code("7ead1e08b9f66e0a")
How it ran

no invocation recorded.

retrieve_timesteps Not yet run
unverified (harvested, no recorded run)
OfekBasson/Fill-My-Mirror/fill_my_mirror/dual_mask_inpainting/pipeline_flux1.py
code served (permissive licence) · get_code("39dfd0bc34e28e1f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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
calculate_shift 7 other papers
5 dated earlier, 2 undated
2411.02395 (2024-11)
Training-free Regional Prompting for Diffusion Transformers
2507.15249 (2025-07)
FreeCus: Free Lunch Subject-driven Customization in Diffusion Transformers
2512.16740 (2025-12)
Task-Oriented Data Synthesis and Control-Rectify Sampling for Remote Sensing Semantic Segmentation
and 4 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-23.

Repositories linked to this paper

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

Abstract

Mirrors are common in real-world images, yet producing geometrically consistent reflections with generative models remains challenging. Unlike most objects, mirror appearance depends on scene geometry and viewpoint, making it hard to synthesize using learned appearance priors alone. We address this in the mirror inpainting setting, where the scene is fixed and only the mirror region is generated. Our key insight is that much mirror content is geometrically constrained by the visible scene and need not be hallucinated. We estimate scene geometry and project visible content into the mirror to recover reflection regions determined by geometry. A generative model then completes the mirror region via a two-mask diffusion strategy balancing geometric constraints with the model's learned priors, reducing projection artifacts and improving reflection consistency. The method is training-free and applicable to complex real-world scenes. We evaluate on MirrorBench-V2 (synthetic) and real images. Using standard and geometry-aware metrics, we show that explicitly using scene geometry improves consistency.

For agents

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

get_harvested_code_for_paper("2609.03740")
get_code_for_paper("2609.03740")
have("2609.03740")

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

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

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

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

Connect an agent — have() is free.