Skip to main content
QUICK REVIEW

[Paper Review] Decorating Your Own Bedroom: Locally Controlling Image Generation with Generative Adversarial Networks

Chen Zhang, Yinghao Xu|arXiv (Cornell University)|May 18, 2021
Generative Adversarial Networks and Image SynthesisComputer Science29 references6 citations
TL;DR

This paper proposes LoGAN, a method for local image editing in pre-trained StyleGAN2 models by manipulating intermediate feature maps using content and style modulation operators, along with a priority mask. It enables precise, flexible editing such as object removal, insertion, rotation, and full-room re-decoration without retraining, achieving photorealistic results in bedroom synthesis tasks.

ABSTRACT

Generative Adversarial Networks (GANs) have made great success in synthesizing high-quality images. However, how to steer the generation process of a well-trained GAN model and customize the output image is much less explored. It has been recently found that modulating the input latent code used in GANs can reasonably alter some variation factors in the output image, but such manipulation usually presents to change the entire image as a whole. In this work, we propose an effective approach, termed as LoGAN, to support local editing of the output image. Concretely, we introduce two operators, i.e., content modulation and style modulation, together with a priority mask to facilitate the precise control of the intermediate generative features. Taking bedroom synthesis as an instance, we are able to seamlessly remove, insert, shift, and rotate the individual objects inside a room. Furthermore, our method can completely clear out a room and then refurnish it with customized furniture and styles. Experimental results show the great potentials of steering the image generation of pre-trained GANs for versatile image editing.

Motivation & Objective

  • To address the challenge of local, fine-grained control in image generation using pre-trained GANs, which typically support only global edits.
  • To enable flexible, user-directed editing of specific objects within a scene—such as removing, inserting, rotating, or repositioning them—without retraining the model.
  • To develop a method that supports complete room re-decoration: clearing all objects and refurnishing with new furniture and styles.
  • To preserve photorealism and spatial consistency during local edits by leveraging intermediate feature maps and spatial reasoning via a priority mask.

Proposed method

  • Introduces two modulation operators: content modulation to control object identity and position, and style modulation to alter appearance, both applied to intermediate feature maps.
  • Employs a priority mask to resolve spatial conflicts between overlapping objects during insertion, ensuring correct layering and visual coherence.
  • Uses a layout parsing pipeline based on semantic segmentation and geometric heuristics to infer room structure (walls, floor, ceiling) and object positions from input images.
  • Performs editing at specific layers of the StyleGAN2 generator: object removal at layer 4 for better blending, and object insertion at layer 7 for optimal shape and texture preservation.
  • Applies clustering on downsampled object masks to identify object poses and enables rotation by interpolating between learned latent code clusters.
  • Uses layer-wise synthesis to progressively compose scenes by inserting objects at designated positions and layers, followed by style transfer using sampled latent codes.

Experimental results

Research questions

  • RQ1Can intermediate feature maps in a pre-trained GAN be effectively used to enable local, fine-grained image editing without retraining?
  • RQ2How can spatial relationships between multiple objects be preserved during local editing, especially during insertion and repositioning?
  • RQ3What is the optimal layer for editing operations such as object removal and insertion to balance blending quality and structural fidelity?
  • RQ4Can the same pre-trained GAN model be used to completely clear a room and re-decorate it with new furniture and styles?
  • RQ5To what extent can object rotation and style transfer be achieved through latent code manipulation in the feature space?

Key findings

  • Object removal at the 4th layer of the generator yields the most natural blending with the background due to larger receptive fields, outperforming later layers in visual consistency.
  • Object insertion at the 7th layer produces superior results in preserving object shape and texture compared to earlier layers, where features are blurred due to over-smoothing.
  • The priority mask effectively resolves spatial conflicts during multi-object insertion, maintaining correct layering and visual plausibility in complex scenes.
  • Clustering of downsampled object masks enables accurate detection of object orientation and facilitates smooth rotation by interpolating between cluster centers.
  • The method successfully generates photorealistic empty bedrooms that match the original layout and background texture, validating the effectiveness of the layout parsing pipeline.
  • Re-stylization using sampled latent codes produces diverse, visually consistent results, demonstrating the method’s flexibility in style transfer across decorated scenes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.