SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1805.09817 · 2018

Stereo Magnification: Learning View Synthesis using Multiplane Images

arXiv · PDF · Open in the Atlas

Code that ran

5 of 12 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; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 7 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/1805.09817.json · badge: /api/ran/1805.09817.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
google/stereo-magnification canonical (classifier label)
classifier basis: census
5 ran · 7 no recorded run
FunctionStatusWhere it lives
build_matrix Ran
ran on a synthesized input
google/stereo-magnification/stereomag/utils.py
code served (permissive licence) · get_code("9ec0dff0d5e3cb37")
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 EagerTensor, ndim 3, dtype family float, shape (4, 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 tensorflow as tf
import numpy as np

# Create a [n, m] matrix of tensors, each with shape [...]
# Let's use n=2, m=3 for the matrix dimensions
# and give each element a shape of [4] (a 1D tensor with 4 elements)

n = 2
m = 3
element_shape = [4]

# Build the [n, m] matrix of tensors
elements = []
for i in range(n):
    row = []
    for j in range(m):
        # Create a small tensor with shape [4]
        tensor = tf.constant(np.random.randn(*element_shape).astype(np.float32))
        row.append(tensor)
    elements.append(row)

ARGS = {
    "elements": elements
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family float, shape (4, 2, 3) — shape (4, 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
collect_examples Ran
ran on a synthesized input
google/stereo-magnification/evaluate.py
code served (permissive licence) · get_code("92bb3fcae3f2f59d")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 os
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create the directory structure that collect_examples expects
result_root = temp_dir
model_names = ["model_a", "model_b", "model_c"]
data_split = "test_split"

# Set up directories and create example files
for model_name in model_names:
    model_dir = os.path.join(result_root, model_name, data_split)
    os.makedirs(model_dir, exist_ok=True)
    
    # Create example files that exist for all models
    for example_id in ["example_1", "example_2", "example_3"]:
        open(os.path.join(model_dir, example_id), 'w').close()

ARGS = {
    "result_root": result_root,
    "model_names": model_names,
    "data_split": data_split,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
divide_safe Ran
ran on a synthesized input
google/stereo-magnification/geometry/homography.py
code served (permissive licence) · get_code("704246dd3eaaf360")
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 EagerTensor, ndim 2, dtype family float, shape (2, 4) 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 tensorflow as tf

# Create small tensors for numerator and denominator
num = tf.constant([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], dtype=tf.float32)
den = tf.constant([[2.0, 0.0, 2.0, 4.0], [1.0, 2.0, 0.0, 2.0]], dtype=tf.float32)

ARGS = {
    "num": num,
    "den": den,
    "name": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
meshgrid_abs Ran
ran on a synthesized input
google/stereo-magnification/geometry/projector.py
code served (permissive licence) · get_code("895cfb00cc5b5e57")
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 EagerTensor, ndim 4, dtype family float, shape (2, 3, 4, 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 tensorflow as tf

ARGS = {
    'batch': 2,
    'height': 4,
    'width': 3,
    'is_homogeneous': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 3, 4, 3) — shape (2, 3, 4, 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
transform_points Ran
ran on a synthesized input
google/stereo-magnification/geometry/homography.py
code served (permissive licence) · get_code("4aec7449c0cf31ce")
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 EagerTensor, ndim 4, dtype family float, shape (2, 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 tensorflow as tf
import numpy as np

# Set seed for reproducibility
tf.random.set_seed(0)

# Create small test tensors
batch_size = 2
height = 4
width = 3
num_coords = 3

# points: [..., H, W, 3] - pixel (u, v, 1) coordinates
points = tf.constant(
    np.random.randn(batch_size, height, width, num_coords).astype(np.float32)
)

# homography: [..., 3, 3] - transformation matrix
homography = tf.constant(
    np.random.randn(batch_size, num_coords, num_coords).astype(np.float32)
)

ARGS = {
    "points": points,
    "homography": homography,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 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
bilinear_wrapper Not yet run
unverified (harvested, no recorded run)
google/stereo-magnification/geometry/sampling.py
code served (permissive licence) · get_code("c4d7d07550a5fe82")
How it ran

no invocation recorded.

evaluate_one Not yet run
unverified (harvested, no recorded run)
google/stereo-magnification/evaluate.py
code served (permissive licence) · get_code("48832df2ac8ef7ff")
How it ran

no invocation recorded.

inv_homography Not yet run
unverified (harvested, no recorded run)
google/stereo-magnification/geometry/homography.py
code served (permissive licence) · get_code("bb72544f3c304333")
How it ran

no invocation recorded.

load_image Not yet run
unverified (harvested, no recorded run)
google/stereo-magnification/evaluate.py
code served (permissive licence) · get_code("bb124e60d84aa001")
How it ran

no invocation recorded.

load_image_data Not yet run
unverified (harvested, no recorded run)
google/stereo-magnification/stereomag/datasets.py
code served (permissive licence) · get_code("18032b49580d8b4b")
How it ran

no invocation recorded.

pixel2cam Not yet run
unverified (harvested, no recorded run)
google/stereo-magnification/geometry/projector.py
code served (permissive licence) · get_code("883ac80de85205ef")
How it ran

no invocation recorded.

read_file_lines Not yet run
unverified (harvested, no recorded run)
google/stereo-magnification/stereomag/datasets.py
code served (permissive licence) · get_code("d6f2e5064e206f0a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 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 11 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
pixel2cam 1 other paper
1 dated earlier
1803.02276 (2018-03)
GeoNet: Unsupervised Learning of Dense Depth, Optical Flow and Camera Pose

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

The view synthesis problem--generating novel views of a scene from known imagery--has garnered recent attention due in part to compelling applications in virtual and augmented reality. In this paper, we explore an intriguing scenario for view synthesis: extrapolating views from imagery captured by narrow-baseline stereo cameras, including VR cameras and now-widespread dual-lens camera phones. We call this problem stereo magnification, and propose a learning framework that leverages a new layered representation that we call multiplane images (MPIs). Our method also uses a massive new data source for learning view extrapolation: online videos on YouTube. Using data mined from such videos, we train a deep network that predicts an MPI from an input stereo image pair. This inferred MPI can then be used to synthesize a range of novel views of the scene, including views that extrapolate significantly beyond the input baseline. We show that our method compares favorably with several recent view synthesis methods, and demonstrate applications in magnifying narrow-baseline stereo images.

For agents

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

get_harvested_code_for_paper("1805.09817")
get_code_for_paper("1805.09817")
have("1805.09817")

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

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

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

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

Connect an agent — have() is free.