Scene Aware Person Image Generation through Global Contextual Conditioning

Prasun Roy, Subhankar Ghosh, Saumik Bhattacharya, Umapada Pal, Michael Blumenstein

Introduction

Traditional research in person image generation has largely focused on the task of pose transfer—re-rendering a person from a source image into a new, predefined pose. However, these models often operate in a vacuum, lacking the spatial reasoning required to integrate a person into a complex, multi-person environment. When inserting a person into a real-world scene, a model must determine not just the pose, but also the appropriate location and scale to ensure the individual blends naturally with the existing crowd. This paper introduces a three-stage pipeline designed for "scene-aware" person generation, leveraging global contextual conditioning to achieve realistic placement and appearance.

The Challenge of Global Context

To move beyond simple pose transfer, a generative system must address the challenge of Global Contextual Conditioning. Realistic integration requires the model to account for three primary factors:

  1. Spatial Location: Identifying a plausible empty space within the scene where a person could stand.
  2. Scale: Adjusting the person's size based on their distance from the camera and their height relative to other subjects.
  3. Pose Relevancy: Ensuring the generated pose is contextually consistent with the activities and orientations of others in the scene.

Methodology: A Three-Stage Pipeline

The authors propose a modular approach that separates the determination of "where" and "how" a person should appear from the final rendering of "who" they are.

Stage 1: Context-Preserving Pose Approximation

To capture the "global context," the scene is represented as an 18-channel "many-hot" heatmap. Each channel corresponds to a specific body keypoint (e.g., eyes, shoulders, knees) for every person already present in the image. A Wasserstein GAN (WGAN) is conditioned on this geometric scaffolding to predict a crude skeletal structure for a new person. This stage ensures the new pose respects the perspective and density of the existing crowd.

Stage 2: Pose Refinement (RefineNet)

While GANs are effective at capturing global structure, they often introduce noise at the pixel level, which can lead to distorted facial features. To mitigate this, the authors implement RefineNet—a shallow, fully-connected linear network. This component regresses and corrects the facial keypoints of the crude skeleton from Stage 1, providing the structural precision necessary for high-quality face generation.

Stage 3: Multi-scale Attention Guided Pose Transfer

The final stage involves rendering the person. The refined skeleton and a source image of the target individual are processed by a specialized GAN. This model utilizes multi-scale attention links to preserve both coarse features (such as clothing silhouette) and fine-grained details (such as textures and facial identity) during the transfer process.

Experimental Evaluation

The pipeline was trained and evaluated using two primary datasets: MHP-v1 (Multi-Human Parsing), which provides contextually correlated multi-person images, and DeepFashion, a standard benchmark for pose transfer.

The proposed model demonstrated significant improvements over state-of-the-art (SOTA) methods, including PG$^2$, PATN, and VUnet.

  • Structural Accuracy: The model achieved a PCKh score of 0.98, surpassing PATN's 0.96, indicating superior alignment of body parts.
  • Perceptual Realism: In terms of Learned Perceptual Image Patch Similarity (LPIPS), the model recorded scores of 0.200 (VGG) and 0.111 (SqzNet). These are substantially lower (better) than previous SOTA results (0.299 and 0.170, respectively), suggesting the generated images are more visually convincing to human observers.

Insights and Limitations

A key takeaway from this research is the effectiveness of the "many-hot" heatmap. This simple geometric representation provides sufficient information for the model to infer perspective and scene density without the need for complex scene graphs. Furthermore, the separation of pose approximation from identity rendering (disentanglement) allows for greater flexibility; a pose can be generated for a specific scene first, and then "dressed" with any target person's identity.

However, the system faces challenges in overpopulated scenes. In highly dense environments, the Stage 1 WGAN occasionally struggles to identify valid empty spaces, leading to awkward overlaps or unrealistic placements. Future research will focus on improving spatial reasoning and explicit occlusion handling to better navigate these complex scenarios.

Summary updated

BibTeX
@inproceedings{roy2022scene,
  author = {Prasun Roy and Subhankar Ghosh and Saumik Bhattacharya and Umapada Pal and Michael Blumenstein},
  title = {{Scene Aware Person Image Generation through Global Contextual Conditioning}},
  booktitle = {ICPR},
  year = {2022},
  doi = {10.1109/icpr56361.2022.9956682},
}
Figure