SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2104.07986 · 2021

Learning to Reconstruct 3D Non-Cuboid Room Layout from a Single RGB Image

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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 0 have no contract verdict; 8 failures of our instrument; 1 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/2104.07986.json · badge: /api/ran/2104.07986.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
CYang0515/NonCuboidRoom canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
CommonRegion Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CYang0515/NonCuboidRoom/models/reconstruction.py
code served (permissive licence) · get_code("5d8af9848f03842d")
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 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 numpy as np

# Construct minimal valid arguments for CommonRegion function

# walls: numpy array with shape (num_walls, 6) containing [x, y, x, y, score, cls]
# We need at least 2 walls for the loop to execute
walls = np.array([
    [10.0, 20.0, 50.0, 80.0, 0.9, 1.0],  # wall 0: x1=10, y1=20, x2=50, y2=80
    [100.0, 30.0, 140.0, 90.0, 0.85, 1.0],  # wall 1: x1=100, y1=30, x2=140, y2=90
], dtype=np.float32)

# pwalls: numpy array with shape (num_walls, 3+) containing plane parameters
# The function uses param[i][:3] which should be normal vector components
pwalls = np.array([
    [0.1, 0.2, 0.3, 0.0],  # plane 0: normal vector (0.1, 0.2, 0.3)
    [0.15, 0.25, 0.35, 0.0],  # plane 1: normal vector (0.15, 0.25, 0.35)
], dtype=np.float32)

# width: image width, used in min() operations
width = 640

# ratio: ratio parameter for band calculation (default 0.25)
ratio = 0.25

# band: band parameter for bounding the region (default 10)
band = 10

# threshold: threshold for distance check (default 10)
threshold = 10

ARGS = {
    "walls": walls,
    "pwalls": pwalls,
    "width": width,
    "ratio": ratio,
    "band": band,
    "threshold": threshold,
}
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 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
FilterLine Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CYang0515/NonCuboidRoom/models/reconstruction.py
code served (permissive licence) · get_code("39724bf3a56d1251")
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 2, dtype family float, shape (4, 2) 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 numpy as np

# Construct arguments for FilterLine function
# The function filters lines based on common bounds

# common: list of pairs defining x-coordinate bounds
# Each element is [x0, x1] representing left and right x coordinates
common = np.array([
    [10, 50],
    [100, 150]
], dtype=np.float32)

# lines: array of line parameters
# Each row represents [slope, intercept] for a line (y = slope*x + intercept)
lines = np.array([
    [0.5, 10.0],
    [1.0, 20.0],
    [0.2, 5.0],
    [2.0, 30.0]
], dtype=np.float32)

# height: image height parameter
height = 512

ARGS = {
    'common': common,
    'lines': lines,
    'height': height
}
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 ndarray, ndim 2, dtype family float, shape (4, 2) — shape (4, 2) 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
CYang0515/NonCuboidRoom/models/hrnet.py
pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
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 lixiaotong97/DSU, 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.

draw_label Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CYang0515/NonCuboidRoom/models/visualize.py
code served (permissive licence) · get_code("212cea62cab3f299")
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 int, shape (32, 48, 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 numpy as np
import PIL.Image

# Create a simple label array (H, W) with integer labels
height, width = 32, 48
label = np.random.randint(0, 5, size=(height, width), dtype=np.int32)
label[0:5, 0:5] = -1  # Add some -1 labels for testing

# Create a simple RGB image (H, W, 3)
img = np.random.randint(0, 256, size=(height, width, 3), dtype=np.uint8)

# Label names
label_names = ['background', 'class1', 'class2', 'class3', 'class4']

# Create a custom colormap (5 labels, RGB values normalized to [0, 1])
colormap = np.array([
    [0.0, 0.0, 0.0],
    [1.0, 0.0, 0.0],
    [0.0, 1.0, 0.0],
    [0.0, 0.0, 1.0],
    [1.0, 1.0, 0.0],
], dtype=np.float32)

ARGS = {
    'label': label,
    'img': img,
    'label_names': label_names,
    'colormap': colormap,
    'legend': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, matplotlib, numpy — 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 int, shape (32, 48, 3) — shape (32, 48, 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
gaussian2D Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CYang0515/NonCuboidRoom/models/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from CrazyShout/INSTINCT, is pointer only (licence: NOASSERTION) · get_code("86282b7f90be63f2")
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 CrazyShout/INSTINCT, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

gaussian_radius Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CYang0515/NonCuboidRoom/models/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from henglan/cgstvg, is pointer only (licence: NONE) · get_code("f2a33236566ea043")
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 henglan/cgstvg, 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.

get_optimizer Ran
ran; our contract draft was wrong, not the code
CYang0515/NonCuboidRoom/models/utils.py
code served (permissive licence) · get_code("94a25a34a2e041e3")
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 Adam. 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
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal nn.Module with parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = SimpleModel()
parameters = model.parameters()

# Create a config object with the required attributes
class Config:
    def __init__(self, method='adam', lr=0.001, weight_decay=1e-5):
        self.method = method
        self.lr = lr
        self.weight_decay = weight_decay

cfg = Config(method='adam', lr=0.001, weight_decay=1e-5)

ARGS = {
    'parameters': parameters,
    'cfg': cfg
}
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 Adam — a Adam output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Adam 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
label2rgb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CYang0515/NonCuboidRoom/models/visualize.py
code served (permissive licence) · get_code("13d17f150b39fc60")
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 int, shape (2, 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 numpy as np
import PIL.Image

# Create a small label array (2D image with labels)
lbl = np.array([
    [0, 1, 2, 3],
    [1, 2, 3, 0]
], dtype=np.int32)

# Create a small RGB image (2x4x3)
img = np.random.randint(0, 256, size=(2, 4, 3), dtype=np.uint8)

# Create a custom colormap (5 labels with RGB values normalized to 0-1)
colormap = np.array([
    [1.0, 0.0, 0.0],
    [0.0, 1.0, 0.0],
    [0.0, 0.0, 1.0],
    [1.0, 1.0, 0.0],
    [1.0, 0.0, 1.0]
], dtype=np.float32)

ARGS = {
    'lbl': lbl,
    'img': img,
    'n_labels': 5,
    'alpha': 0.5,
    'thresh_suppress': 0,
    'colormap': colormap
}
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 ndarray, ndim 3, dtype family int, shape (2, 4, 3) — shape (2, 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
label_colormap Ran
ran, honoured the contract we drafted
CYang0515/NonCuboidRoom/models/visualize.py
code served (permissive licence) · get_code("e4bff03f6d7ddfa6")
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 2, dtype family float, shape (256, 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 numpy as np

ARGS = {
    'N': 256
}
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 ndarray, ndim 2, dtype family float, shape (256, 3) — shape (256, 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
PreProcess Not yet run
unverified (harvested, no recorded run)
CYang0515/NonCuboidRoom/models/reconstruction.py
code served (permissive licence) · get_code("8bea904dd585860b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 3 later) and 7 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
conv3x3 686 other papers
285 dated earlier, 19 the same month, 376 later, 6 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
gaussian2D 9 other papers
2 dated earlier, 7 later
1904.07850 (2019-04)
Objects as Points
2001.04608 (2020-01)
Actions as Moving Points
2105.05003 (2021-05)
CondLaneNet: a Top-to-down Lane Detection Framework Based on Conditional Convolution
and 6 more not named here
gaussian_radius 4 other papers
2 dated earlier, 2 later
1909.00700 (2019-09)
Training-Time-Friendly Network for Real-Time Object Detection
2001.04608 (2020-01)
Actions as Moving Points
2112.08647 (2021-12)
QAHOI: Query-Based Anchors for Human-Object Interaction Detection
and 1 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

Single-image room layout reconstruction aims to reconstruct the enclosed 3D structure of a room from a single image. Most previous work relies on the cuboid-shape prior. This paper considers a more general indoor assumption, i.e., the room layout consists of a single ceiling, a single floor, and several vertical walls. To this end, we first employ Convolutional Neural Networks to detect planes and vertical lines between adjacent walls. Meanwhile, estimating the 3D parameters for each plane. Then, a simple yet effective geometric reasoning method is adopted to achieve room layout reconstruction. Furthermore, we optimize the 3D plane parameters to reconstruct a geometrically consistent room layout between planes and lines. The experimental results on public datasets validate the effectiveness and efficiency of our method.

For agents

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

get_harvested_code_for_paper("2104.07986")
get_code_for_paper("2104.07986")
have("2104.07986")

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

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

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

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

Connect an agent — have() is free.