OCONet: Image Extrapolation by Object Completion

Richard Strong Bowen, Huiwen Chang, Charles Herrmann, Piotr Teterwak, Ce Liu, Ramin Zabih

Abstract

Image extrapolation, or outpainting, remains a significant challenge in computer vision due to the lack of surrounding context. Traditional generative models often struggle with salient objects, resulting in anatomically incorrect or blurry reconstructions. We present OCONet (Object COmpletion Networks), a framework that explicitly models foreground objects to achieve structurally sound image extensions. By utilizing Signed Distance Fields (SDF) for shape prediction and a class-conditioned network for texture synthesis, OCONet decouples the completion of complex foreground subjects from background extrapolation. Experimental results on the Open Images and COCO datasets demonstrate that OCONet significantly outperforms existing state-of-the-art methods in both visual coherence and Fréchet Inception Distance (FID).

Introduction

Image extrapolation involves extending an image beyond its original boundaries. Unlike inpainting, which benefits from surrounding pixel information, extrapolation relies on a single known border. Existing methods, such as Boundless or Wide-Context, often perform well on textural backgrounds like grass or sky but fail when a salient object—such as a car or an animal—is partially cropped. These models typically attempt to synthesize the entire scene simultaneously, leading to "mushy" or structurally impossible foreground extensions. OCONet addresses this by treating object completion as a specialized sub-task within the extrapolation pipeline.

Methodology

OCONet employs a "divide and conquer" strategy to handle the complexities of natural scenes. The pipeline consists of several key stages:

  1. Interest Mask Generation: The system identifies partially visible objects using an off-the-shelf instance segmentation model (e.g., ShapeMask).
  2. Object Completion: A class-conditioned encoder-decoder network, utilizing gated convolutions and skip connections, takes the cropped image and mask as input to predict the missing parts of the object.
  3. SDF for Shape Prediction: Instead of binary masks, the model predicts a Signed Distance Field (SDF). This continuous representation avoids the blurring associated with binary classification under uncertainty and yields sharper, more realistic boundaries.
  4. Background Extrapolation: A separate model extends the background, with the foreground object zeroed out to prevent "haloing" artifacts.
  5. Compositing: The completed object is layered onto the extrapolated background using the predicted mask derived from the SDF.
The OCONet pipeline decouples foreground object completion from background extrapolation, utilizing SDFs for shape and class-conditioning for texture.

Key Insights

The use of Signed Distance Fields (SDFs) is a core technical innovation. Binary masks often struggle to represent the "average" of multiple plausible shapes, resulting in blurry edges. In contrast, the median of plausible SDFs remains a valid distance field, ensuring sharp object boundaries. Furthermore, class-conditioning allows the network to leverage structural priors—such as the presence of wheels on a car or legs on a horse—which general-purpose models often overlook.

Results and Evaluation

OCONet was evaluated against Boundless and SSSD (Self-Supervised Scene De-Occlusion) using the Fréchet Inception Distance (FID) and qualitative assessment.

  • Quantitative Results: OCONet achieved an FID of 20.82, a substantial improvement over Boundless (30.67) and SSSD (32.02).
  • Qualitative Results: OCONet successfully reconstructs complex features like car wheels, animal legs, and train carriages, where baseline methods produce unrecognizable blobs or simple pixel smears.
Qualitative comparison of OCONet against baseline methods (Boundless, SSSD, Wide-Context) and Ground Truth (GT). OCONet produces significantly more coherent object structures.

Conclusion

OCONet demonstrates that explicit object modeling is crucial for high-quality image extrapolation. While the model occasionally struggles with extremely thin structures or high-frequency textures in high-uncertainty regions, it represents a significant step forward in generating anatomically and structurally sound image extensions. Future work will focus on handling complex scenes with multiple overlapping objects and improving texture consistency.

Summary updated

BibTeX
@inproceedings{bowen2021oconet,
  author = {Richard Strong Bowen and Huiwen Chang and Charles Herrmann and Piotr Teterwak and Ce Liu and Ramin Zabih},
  title = {{OCONet: Image Extrapolation by Object Completion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00234},
}
Figure