Abstract
We investigate how to generate multimodal image outputs, such as RGB, depth, and surface normals, with a single generative model. The challenge is to produce outputs that are realistic, and also consistent with each other. Our solution builds on the StyleGAN3 architecture, with a shared backbone and modality-specific branches in the last layers of the synthesis network, and we propose per-modality fidelity discriminators and a cross-modality consistency discriminator. In experiments on the Stanford2D3D dataset, we demonstrate realistic and consistent generation of RGB, depth, and normal images. We also show a training recipe to easily extend our pretrained model on a new domain, even with a few pairwise data. We further evaluate the use of synthetically generated RGB and depth pairs for training or fine-tuning depth estimators. Code will be available at https://github.com/jessemelpolio/MultimodalGAN.
Introduction
In computer vision, generating realistic RGB images is a well-studied problem. However, generating "multimodal" outputs—where an RGB image is accompanied by its corresponding depth map and surface normals—is significantly harder due to the requirement of consistency. For instance, if a generative model creates a chair in an RGB image, the depth map must show that chair at the correct distance, and the surface normals must reflect its orientation.
Previous approaches often relied on complex, hand-tuned loss functions or pre-trained "teacher" models to enforce these relationships. This paper introduces MultimodalGAN, a unified framework based on StyleGAN3 that generates perfectly aligned RGB, depth, and surface normal images from a single latent code using a purely adversarial approach.
Methods
MultimodalGAN builds on the robust StyleGAN3 architecture with three key innovations designed to ensure both individual modality quality and cross-modality alignment:
- Shared Backbone with Modality-Specific Branches: The generator uses a shared "backbone" for the first eight layers (L1-L8) to represent the underlying scene structure and viewpoint. It then splits into separate branches (layers L9-L14) to refine the specific details of RGB, depth, and surface normals. This "Goldilocks" branching point at Layer 9 was found to be optimal for balancing shared scene structure with modality-specific textures.
- Dual-Type Discriminators: To ensure quality, the framework employs two types of discriminators: Fidelity Discriminators ($D_F$), one for each modality to ensure individual images look realistic, and a Consistency Discriminator ($D_C$), which evaluates the concatenated tuple of all modalities to ensure they are logically consistent with one another.
- Purely Adversarial Training: Unlike prior work that uses specialized geometric losses, MultimodalGAN relies entirely on adversarial losses. This makes the framework "modality-agnostic" and easier to scale to new types of data without laborious weight tuning.
Results and Key Insights
The model was primarily trained and evaluated on the Stanford2D3D dataset, which contains over 70,000 pairwise sets of RGB, depth, and surface normal images from diverse indoor environments.
Performance and Consistency
MultimodalGAN significantly outperformed existing methods like RGBD-GAN and DepthGAN. It achieved a much lower Scale Invariant Depth Error (SIE) of 0.192 (compared to 0.339 for RGBD-GAN), indicating much more accurate geometry. The dedicated Consistency Discriminator proved capable of learning complex geometric relationships simply by trying to distinguish between real multimodal tuples and generated ones, removing the need for explicit mathematical constraints.
GANs as Data Engines
A key application of this framework is its use as a "data engine." By generating thousands of synthetic RGB-depth pairs, the authors could train a standard depth estimator (LeReS) that performed nearly as well as one trained on much larger sets of real-world data. Furthermore, the model allows for smooth latent interpolation; as the RGB scene morphs, the depth and normal maps morph in perfect synchronization.
Conclusion and Future Work
MultimodalGAN demonstrates a simple yet effective way to generate consistent multimodal scene representations. While currently focused on indoor environments and dense image-to-image modalities, future work could expand this to discrete modalities like semantic segmentation masks or adapt the principles of shared backbones and consistency discriminators to newer generative architectures like diffusion models.
Summary updated