Shape Atlas
English
Back to paper index

3D generation research index

MaGRITTe

MaGRITTe: Manipulative and Generative 3D Realization from Image, Topview and Text

Takayuki Hara, Tatsuya Harada ·

One-minute overview

MaGRITTe turns a partial image, a top-view layout and text into a 360-degree RGB-D panorama. It then fits a scene-specific neural radiance field that can render from translated and rotated viewpoints.

Research problem and inputs and outputs

Inputs
A partial image with its observer position, direction and field of view, a floor plan or terrain map, and a text prompt. The authors also test subsets of these conditions.
Outputs
A generated equirectangular RGB image, refined depth, and a scene-specific NeRF for free-viewpoint rendering.

Original paper figure

Figure 2 · arXiv:2404.00345v2

A partial photo and a top-view layout become aligned panoramic image, coarse depth and semantic inputs. A text-conditioned generator completes the color panorama, depth estimation refines the geometry, and the RGB-D is used to fit a radiance field.

Credit · Takayuki Hara et al.

The authors’ Figure 2 shows projection to ERP coordinates, 360-degree RGB generation, depth refinement, and fitting a NeRF to the resulting RGB-D.

Method step by step

  1. Author report

    The input photo is projected to an ERP patch using its viewing pose. A floor plan supplies distances to room boundaries and object class masks, while a terrain height map supplies coarse distances to terrain.

    Put the image and layout in equirectangular coordinates
  2. Author report

    ControlNet receives the combined image, coarse-depth and semantic encodings, with the text condition. The pretrained Stable Diffusion components stay fixed during the RGB training described in the method.

    Complete the color panorama through a conditional diffusion network
  3. Author report

    The end-to-end U-Net takes RGB plus coarse depth and predicts refined depth. The alternative predicts monocular depth on tangent projections with LeRes, then aligns those predictions by scale and offset and integrates them against the coarse depth.

    Refine depth with one of two panorama methods
  4. Author report

    The generated RGB-D panorama serves as the initial observation for NeRF fitting. The cited fitting method inpaints regions that were occluded from the single starting observation.

    Fit a NeRF with occlusion completion

Key design choices

  • Author report

    The indoor layout encodes room dimensions and object boxes with height and category. The outdoor layout is a terrain-height grid. Projecting each to coarse depth shares a representation without requiring the same source layout format.

    Keep layout controls comparable across domains
  • Author report

    The authors use circular padding to handle the horizontal wrap-around of ERP images. The RGB stage starts with Stable Diffusion 2.1, while the end-to-end depth model is trained separately.

    Avoid boundary seams in panorama convolutions

How to read the experiments

  • Datasets and protocol

    Author report

    The paper uses modified Structured3D indoors and synthetic SceneDreamer terrain panoramas outdoors, with 2,048 and 2,052 test samples, respectively. Matterport3D and outdoor SUN360 provide auxiliary real training images without equivalent authored layout labels.

    Structured3D and SceneDreamer supply layout-conditioned evaluations
  • Baselines

    Author report

    The authors implement a PanoDiff comparison by removing the layout encoder while using the same model setup and initial pretrained components. The depth study compares 360MonoDepth, LeRes on the ERP panorama, LeRes on multiple tangent views, and coarse depth.

    Compare PanoDiff RGB and three depth alternatives
  • Metrics

    Author report

    Whole-image and partial-region PSNR assess different parts of RGB generation. FID compares image distributions and CLIP score compares the prompt and image. Semantic box precision, recall and IoU assess indoor layout control, and scale-and-offset-aligned depth is measured by RMSE and AbsRel.

    Separate image completion, layout matching and depth error
  • Results

    Author report

    On Structured3D, MaGRITTe and PanoDiff score 12.56 versus 11.59 whole PSNR, 35.39 versus 36.00 partial PSNR, and 18.87 versus 21.23 FID. On SceneDreamer the corresponding values are 13.29 versus 12.91, 34.81 versus 37.19 and 29.05 versus 30.94. The outdoor CLIP score slightly favors MaGRITTe, 29.93 versus 29.86.

    Whole-panorama RGB improves while source-region PSNR falls
  • Author report

    For condition box matching after semantic segmentation, MaGRITTe has precision 0.424, recall 0.273 and IoU 0.227. PanoDiff scores 0.245, 0.170 and 0.124. The same procedure applied to ground-truth panoramas yields 0.482, 0.349 and 0.284.

    Indoor layout bounding-box IoU rises to 0.227
  • Trade-offs

    Author report

    Structured3D favors the end-to-end model at RMSE 6.649 and AbsRel 0.0056, versus 7.432 and 0.0119 with depth integration. SceneDreamer favors integration at 15.20 and 0.0185, versus 15.29 and 0.0196 end to end. The protocol aligns depth to reference scale and offset and excludes pixels at infinity.

    Different depth refinements work best in different domains

Limitations and use boundaries

Fixed version and section references

Read fixed-version paper · arXiv:2404.00345v2 · Source reviewed

Experiments were reported by the authors. The editorial analysis cites their evidence.