SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.10546 · 2021

Trash or Treasure? An Interactive Dual-Stream Strategy for Single Image Reflection Separation

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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, 0 violated it and 3 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2110.10546.json · badge: /api/ran/2110.10546.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
mingcv/ytmt-strategy canonical (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_gradient Ran
ran; our contract draft was wrong, not the code
mingcv/ytmt-strategy/models/losses.py
code served (permissive licence) · get_code("91bda7c651d2e3f7")
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) and returned tuple. 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 torch

torch.manual_seed(0)

# The function compute_gradient takes an image tensor and computes gradients
# along spatial dimensions. It expects a tensor with shape (..., height, width)
# and performs finite differences along the last two dimensions.

# Create a small image tensor with shape (batch=2, channels=3, height=4, width=5)
img = torch.randn(2, 3, 4, 5)

ARGS = {
    "img": img
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
get_norm_layer Ran
ran; our contract draft was wrong, not the code
mingcv/ytmt-strategy/models/networks.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from JiaxiaoWang/EvReflection, is pointer only (licence: NONE) · get_code("f783b6ca16b40935")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from JiaxiaoWang/EvReflection, 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.

l1_norm Ran
ran on a synthesized input
mingcv/ytmt-strategy/models/losses.py
code served (permissive licence) · get_code("2b5e0c6ca822c2df")
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 Tensor, ndim 0, dtype family float, 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 torch

torch.manual_seed(0)

# The function l1_norm takes a tensor x and computes the mean of absolute values
# We need to provide a small tensor for x

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, 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
l1_norm_dim Ran
ran on a synthesized input
mingcv/ytmt-strategy/models/losses.py
code served (permissive licence) · get_code("7e61feb5a42b61ca")
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 Tensor, ndim 2, dtype family float, shape (2, 3) 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 torch

torch.manual_seed(0)

# x: tensor to compute L1 norm over
# dim: dimension along which to compute mean of absolute values
x = torch.randn(2, 4, 3)  # batch=2, dim1=4, dim2=3
dim = 1

ARGS = {
    "x": x,
    "dim": dim,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
receptive_field Ran
ran, honoured the contract we drafted
mingcv/ytmt-strategy/models/networks.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from JiaxiaoWang/EvReflection, is pointer only (licence: NONE) · get_code("805fb9818f986a0d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from JiaxiaoWang/EvReflection, 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.

tensor2im Ran
ran; our contract draft was wrong, not the code
mingcv/ytmt-strategy/models/opt_ytmt_model_sirs.py
code served (permissive licence) · get_code("fde6f58552ebe4f1")
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 ndarray, ndim 3, dtype family float, shape (4, 3, 3) 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 torch
import numpy as np

torch.manual_seed(0)

# Create a small image tensor with shape (batch=1, channels=1, height=4, width=3)
# The function expects a tensor with batch dimension
image_tensor = torch.rand(1, 1, 4, 3, requires_grad=False)

ARGS = {
    "image_tensor": image_tensor,
    "imtype": np.uint8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (4, 3, 3) — shape (4, 3, 3) 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
tensor2im Ran
ran on a synthesized input
mingcv/ytmt-strategy/models/ytmt_model_intrinsic_decomp.py
code served (permissive licence) · get_code("c4a91c5d16ce72c3")
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 ndarray, ndim 3, dtype family float, shape (4, 5, 3) 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 torch
import numpy as np

torch.manual_seed(0)

# Create a small batch of image tensors
# Shape: (batch_size, channels, height, width) = (2, 3, 4, 5)
image_tensor = torch.rand(2, 3, 4, 5, requires_grad=False)

ARGS = {
    "image_tensor": image_tensor,
    "imtype": np.uint8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (4, 5, 3) — shape (4, 5, 3) 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
define_D Not yet run
unverified (harvested, no recorded run)
mingcv/ytmt-strategy/models/networks.py
code served (permissive licence) · get_code("3c2906d11efdb30d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 5 later) and 3 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
get_norm_layer 8 other papers
6 dated earlier, 2 later
1804.03999 (2018-04)
Attention U-Net: Learning Where to Look for the Pancreas
1903.08682 (2019-03)
Im2Pencil: Controllable Pencil Illustration from Photographs
1904.00637 (2019-04)
Single Image Reflection Removal Exploiting Misaligned Training Data and Network Enhancements
and 5 more not named here
compute_gradient 2 other papers
1 dated earlier, 1 later
1904.00637 (2019-04)
Single Image Reflection Removal Exploiting Misaligned Training Data and Network Enhancements
2111.15557 (2021-11)
Low-light Image Enhancement via Breaking Down the Darkness
define_D 2 other papers
1 dated earlier, 1 later
1904.00637 (2019-04)
Single Image Reflection Removal Exploiting Misaligned Training Data and Network Enhancements
2308.10027 (2023-08)
Single Image Reflection Separation via Component Synergy
receptive_field 2 other papers
1 dated earlier, 1 later
1904.00637 (2019-04)
Single Image Reflection Removal Exploiting Misaligned Training Data and Network Enhancements
2608.06184 (2026-08)
EvReflection: Event-Driven Micro-Dynamics for Reflection Removal
tensor2im 2 other papers
1 dated earlier, 1 later
1904.00637 (2019-04)
Single Image Reflection Removal Exploiting Misaligned Training Data and Network Enhancements
2308.10027 (2023-08)
Single Image Reflection Separation via Component Synergy

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

Single image reflection separation (SIRS), as a representative blind source separation task, aims to recover two layers, $\textit{i.e.}$, transmission and reflection, from one mixed observation, which is challenging due to the highly ill-posed nature. Existing deep learning based solutions typically restore the target layers individually, or with some concerns at the end of the output, barely taking into account the interaction across the two streams/branches. In order to utilize information more efficiently, this work presents a general yet simple interactive strategy, namely $\textit{your trash is my treasure}$ (YTMT), for constructing dual-stream decomposition networks. To be specific, we explicitly enforce the two streams to communicate with each other block-wisely. Inspired by the additive property between the two components, the interactive path can be easily built via transferring, instead of discarding, deactivated information by the ReLU rectifier from one stream to the other. Both ablation studies and experimental results on widely-used SIRS datasets are conducted to demonstrate the efficacy of YTMT, and reveal its superiority over other state-of-the-art alternatives. The implementation is quite simple and our code is publicly available at $\href{https://github.com/mingcv/YTMT-Strategy}{\textit{https://github.com/mingcv/YTMT-Strategy}}$.

For agents

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

get_harvested_code_for_paper("2110.10546")
get_code_for_paper("2110.10546")
have("2110.10546")

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

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

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

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

Connect an agent — have() is free.