Noureddine RAMDI / 3D-RE-GEN: reconstructing editable 3D indoor scenes from a single photo with multi-model AI orchestration

Created Sat, 23 May 2026 20:41:14 +0000 Modified Sat, 23 May 2026 20:41:27 +0000

cgtuebingen/3D-RE-GEN

3D-RE-GEN tackles a challenging problem: turning a single photograph of an indoor scene into a fully editable, textured 3D model with consistent geometry, materials, and lighting. This isn’t just about rough 3D shapes but about reconstructing spatially plausible scenes that can be manipulated and rendered with fidelity. The project stands out by orchestrating several state-of-the-art AI models into a cohesive pipeline that decomposes the input image, infills occluded parts, and produces 3D assets with physically plausible relationships.

what 3d-re-gen does: from single image to production-ready 3d scenes

At its core, 3D-RE-GEN is a Python-based research framework developed by the University of Tübingen, designed to reconstruct complete 3D indoor scenes from a single RGB photograph. Unlike many 3D reconstruction methods that require multiple views or depth sensors, this repo attempts the ambitious task of extracting detailed 3D information from just one image.

The pipeline consists of several distinct stages:

  • Instance segmentation: Using the Segment Anything Model (SAM), the input photograph is decomposed into individual object masks and background regions. This step isolates objects as separate instances, which is crucial for downstream 3D reconstruction.

  • Context-aware inpainting: To handle occlusions where objects overlap or parts of the scene are hidden, a generative inpainting model fills in the missing regions behind the visible objects. This gives a more complete representation of each object and the scene context.

  • 2D-to-3D asset generation: Each segmented and inpainted element is converted into a textured 3D asset using models like Hunyuan3D-2.0. This step creates meshes with textures based on the original and inpainted images.

  • Constrained optimization: A final optimization enforces physical plausibility across the scene by adjusting geometry, materials, and lighting. This ensures consistent spatial relationships, realistic materials, and coherent illumination among all reconstructed components.

The architecture is modular and extensible, written in Python, coordinating multiple AI models including SAM for segmentation, Hunyuan3D-2.0 for 3D asset creation, and VGGT for geometric reasoning. The codebase orchestrates these models through clean interfaces, allowing researchers or practitioners to swap components or fine-tune parameters.

3D-RE-GEN is released under the MIT license, with caveats around third-party pretrained models. Its aim is to enable production-ready workflows where spatial correctness and material fidelity matter, rather than just proof-of-concept outputs.

technical strengths and design tradeoffs: multi-model orchestration with physical consistency

What sets 3D-RE-GEN apart is how it integrates multiple cutting-edge AI models into a coherent pipeline that respects physical constraints and produces editable 3D scenes rather than just 3D point clouds or rough meshes.

  • Modular orchestration: The repo clearly separates concerns by dedicating different models to segmentation, inpainting, 3D generation, and geometric reasoning. This means researchers can improve or replace individual stages without disrupting the entire pipeline.

  • Physical plausibility through constrained optimization: Many 3D reconstruction projects stop after mesh generation. 3D-RE-GEN goes further by applying constrained optimization to refine geometry, materials, and lighting. This step reduces artifacts and enforces spatial coherence, which is critical for downstream use in rendering or simulation.

  • Use of state-of-the-art pretrained models: By building on publicly available models like SAM and Hunyuan3D-2.0, the project leverages the latest advances in segmentation and 3D asset generation. However, this also means the overall quality depends heavily on these external models and their limitations.

  • Tradeoffs: The pipeline is computationally heavy, requiring GPU resources for inference across multiple models. It’s research-oriented and not optimized for real-time or low-resource scenarios. Also, relying on multiple third-party models increases the complexity of setup and potential version mismatches.

  • Code quality: The Python code is modular and well-structured, focusing on clarity and maintainability. The use of separate directories for segmentation, inpainting, and optimization scripts reflects sensible project organization. However, the complexity of integrating several large models can be daunting for newcomers.

Overall, this repo is a solid example of how to combine best-in-class AI components into a functional 3D reconstruction pipeline that respects real-world physics and scene coherence.

quick start

To get started with 3D-RE-GEN, the repo provides a quick start snippet in its README, which I reproduce here verbatim:

# Getting Started

See INSTALLATION.md for setup instructions.

Quick start:
git clone --recursive https://github.com/cgtuebingen/3D-RE-GEN.git
cd 3D-RE-GEN
cd segmentor && wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth && cd ..
mamba run -p ./venv_py310 python run.py -p 1 2 3 4 5 6 7 8 9

This snippet shows the installation involves cloning with recursive submodules, downloading SAM model weights manually, and running the main pipeline with a Python environment managed by mamba. The run.py script appears to process specified scene indices or tasks.

The presence of INSTALLATION.md suggests more detailed setup steps are documented there, and the use of mamba run -p indicates a preference for isolated Python environments.

verdict

3D-RE-GEN is a compelling research framework for anyone working on 3D scene reconstruction from minimal input data. Its strength lies in orchestrating multiple advanced AI models into a pipeline that produces spatially consistent, editable 3D indoor scenes from a single image.

That said, it’s a resource-intensive setup relying on several heavyweight pretrained models and nontrivial installation steps. It’s not a plug-and-play tool but a research-grade codebase for practitioners interested in pushing 3D reconstruction quality and physical plausibility.

If you’re exploring novel 3D reconstruction methods, developing pipelines involving segmentation, inpainting, and 3D asset generation, or need a foundation for creating editable 3D scenes from photos, this repo is worth a close look. Just be prepared for a somewhat steep setup and runtime cost.

For practical applications, consider the tradeoff between accuracy and resource requirements. The constrained optimization step is a notable feature that elevates output quality but also adds complexity.

Overall, 3D-RE-GEN offers a solid foundation for research and prototyping in single-image 3D indoor scene reconstruction with a strong focus on physical and visual consistency.


→ GitHub Repo: cgtuebingen/3D-RE-GEN ⭐ 520 · Python