Papers › Cuboids Revisited: Learning Robust 3D Shape Fitting to Single RGB Images

Cuboids Revisited: Learning Robust 3D Shape Fitting to Single RGB Images

5 May 2021CVPR 2021 1arXiv:2105.02047archive 2025-07-28

Florian Kluger, Hanno Ackermann, Eric Brachmann, Michael Ying Yang, Bodo Rosenhahn

Humans perceive and construct the surrounding world as an arrangement of simple parametric models. In particular, man-made environments commonly consist of volumetric primitives such as cuboids or cylinders. Inferring these primitives is an important step to attain high-level, abstract scene descriptions. Previous approaches directly estimate shape parameters from a 2D or 3D input, and are only able to reproduce simple objects, yet unable to accurately parse more complex 3D scenes. In contrast, we propose a robust estimator for primitive fitting, which can meaningfully abstract real-world environments using cuboids. A RANSAC estimator guided by a neural network fits these primitives to 3D features, such as a depth map. We condition the network on previously detected parts of the scene, thus parsing it one-by-one. To obtain 3D features from a single RGB image, we additionally optimise a feature extraction CNN in an end-to-end manner. However, naively minimising point-to-primitive distances leads to large or spurious cuboids occluding parts of the scene behind. We thus propose an occlusion-aware distance metric correctly handling opaque scenes. The proposed algorithm does not require labour-intensive labels, such as cuboid annotations, for training. Results on the challenging NYU Depth v2 dataset demonstrate that the proposed algorithm successfully abstracts cluttered real-world 3D scene layouts.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2105.02047")

Code

Syntology Ran 1 of 13 code samples harvested from 1 repository linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · violated contract.

By repository: official repository: 13 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

fkluger/cuboids_revisited officialmentioned in papermentioned on GitHubpytorchBSD-3-Clause report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 1 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
12unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from fkluger/cuboids_revisited. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

rgb2gray fkluger/cuboids_revisited/datasets/smh.py official repository ran · violated contract fingerprinted BSD-3-Clause (permissive) · eb7801586aa2560a · report
cuboid_mesh fkluger/cuboids_revisited/datasets/synthetic_cuboids.py official repository unverified BSD-3-Clause (permissive) · 34820b208495b44c · report
e_step fkluger/cuboids_revisited/util/em_algorithm.py official repository unverified BSD-3-Clause (permissive) · 40ed722d7c0a8379 · report
estimate_planes fkluger/cuboids_revisited/util/fitting.py official repository unverified BSD-3-Clause (permissive) · c90770b4d4fe58ba · report
fexp fkluger/cuboids_revisited/util/equal_distance_sampler_sq.py official repository unverified BSD-3-Clause (permissive) · f1547b350abc7741 · report
manual_jacobian_p fkluger/cuboids_revisited/networks/layers.py official repository unverified BSD-3-Clause (permissive) · 7c81a4c434f45a23 · report
manual_jacobian_x fkluger/cuboids_revisited/networks/layers.py official repository unverified BSD-3-Clause (permissive) · 2ae614a668daf19f · report
sample_spherical fkluger/cuboids_revisited/datasets/synthetic_cuboids.py official repository unverified BSD-3-Clause (permissive) · 6a85549fd5684f82 · report
sigmoid fkluger/cuboids_revisited/util/consistency.py official repository unverified BSD-3-Clause (permissive) · 78bb52ae71e528a9 · report
sigmoid_ fkluger/cuboids_revisited/util/consistency.py official repository unverified BSD-3-Clause (permissive) · 13e6282360f1c5bb · report
soft_inlier_fun_gen fkluger/cuboids_revisited/util/consistency.py official repository unverified BSD-3-Clause (permissive) · 00b04bc234d801ff · report
sq_surface fkluger/cuboids_revisited/util/equal_distance_sampler_sq.py official repository unverified BSD-3-Clause (permissive) · ebb6838ea65260c2 · report
twist_to_matrix fkluger/cuboids_revisited/networks/pose_net.py official repository unverified BSD-3-Clause (permissive) · 13a01a6a29372a67 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections