C-Flow: Conditional Generative Flow Models for Images and 3D Point Clouds

Albert Pumarola, Stefan Popov, Francesc Moreno-Noguer, Vittorio Ferrari

Abstract

Flow-based generative models have highly desirable properties like exact log-likelihood evaluation and exact latent-variable inference, however they are still in their infancy and have not received as much attention as alternative generative models. In this paper, we introduce C-Flow, a novel conditioning scheme that brings normalizing flows to an entirely new scenario with great possibilities for multimodal data modeling. C-Flow is based on a parallel sequence of invertible mappings in which a source flow guides the target flow at every step, enabling fine-grained control over the generation process. We also devise a new strategy to model unordered 3D point clouds that, in combination with the conditioning scheme, makes it possible to address 3D reconstruction from a single image and its inverse problem of rendering an image given a point cloud. We demonstrate our conditioning method to be very adaptable, being also applicable to image manipulation, style transfer and multi-modal image-to-image mapping in a diversity of domains, including RGB images, segmentation maps and edge masks.

Introduction

Normalizing flows are a powerful class of generative models that learn an invertible mapping between data and a simple latent distribution, such as a Gaussian. Unlike Generative Adversarial Networks (GANs), they allow for exact probability density estimation, and unlike Variational Autoencoders (VAEs), they offer exact latent-variable inference. Despite these advantages, flows have historically faced challenges in two areas: complex conditioning and the handling of unordered data.

Existing flow models often struggle to make one flow effectively "guide" another for tasks like image-to-image translation or 3D reconstruction. Furthermore, flows typically rely on structured grids (like pixels), making it difficult to apply them to unordered 3D point clouds without losing spatial relationships. C-Flow addresses these limitations by introducing a "source-guides-target" architecture and a novel representation for 3D point clouds within a reversible framework.

Methodology

The core innovation of C-Flow is a parallel sequence of invertible mappings. Instead of providing conditioning information only at the initial stage, C-Flow utilizes two parallel flow branches: a Source flow and a Target flow.

The C-Flow architecture featuring parallel source and target flow branches.

At every step of the transformation, the source flow informs the target flow through conditional coupling layers, ensuring fine-grained control over the generation process. To handle unordered point clouds, the authors project 3D points onto a Hilbert space-filling curve. This reorders the points into a 1D sequence that preserves spatial proximity, effectively allowing the model to treat the point cloud as a structured grid. Additionally, the framework incorporates invertible global features to capture overall 3D structure and is trained with a cycle-consistency loss using Symmetric Chamfer Distance to penalize shape discrepancies.

Experiments and Results

The authors evaluated C-Flow across diverse benchmarks, including ShapeNet for 3D tasks, Cityscapes for semantic mapping, and various image-to-image translation datasets like CMP Facades and Maps & Shoes.

Qualitative results for 3D reconstruction and rendering tasks on ShapeNet.

In 3D reconstruction tasks on ShapeNet, C-Flow achieved a Chamfer Distance of 0.26, performing on par with specialized non-flow architectures. A key advantage of the model's bijectivity is that the exact same weights can be used for both 3D reconstruction (Image → 3D) and its inverse, rendering (3D → Image). In image-to-image tasks, C-Flow significantly outperformed standard Glow models in both Bits Per Dimension (BPD) and Inception Score (IS), demonstrating the superiority of the parallel conditioning scheme over simple concatenation.

Discussion and Conclusion

C-Flow proves that normalizing flows can compete with specialized 3D architectures when combined with spatial sorting techniques. The model's ability to model the full conditional distribution enables one-to-many generation, allowing for multiple plausible outputs from a single input. While the model currently faces resolution constraints (64x64) and high computational costs due to its parallel nature, it represents a significant step forward in bringing the benefits of flow-based models to multimodal and 3D data domains. Future work may address scaling to higher resolutions and refining the spatial sorting methods to reduce potential artifacts in complex shapes.

Summary updated

BibTeX
@inproceedings{pumarola2020c,
  author = {Albert Pumarola and Stefan Popov and Francesc Moreno-Noguer and Vittorio Ferrari},
  title = {{C-Flow: Conditional Generative Flow Models for Images and 3D Point Clouds}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=9aksbvU7Qy1},
}
Figure