Stereoscopic Neural Style Transfer

Dongdong Chen, Lu Yuan, Jing Liao, Nenghai Yu, Gang Hua

Abstract

This paper introduces the first neural style transfer (NST) framework specifically designed for stereoscopic (3D) images and videos. By introducing a novel bidirectional disparity consistency loss and a specialized dual-network architecture, the authors ensure that stylized textures align perfectly between left and right views. This approach eliminates the "3D fatigue" caused by inconsistent textures in traditional 3D stylization, preserving the illusion of depth and visual comfort.

The Challenge of Stereoscopic Stylization

Standard Neural Style Transfer (NST) algorithms excel at applying artistic styles to single images. However, they fail when applied to stereoscopic content, such as 3D movies or VR environments. If the left and right views of a stereo pair are stylized independently, the resulting textures—such as brushstrokes or patterns—will not align spatially.

When a viewer observes these inconsistent images through 3D glasses or a headset, the brain struggles to reconcile the differing textures into a single 3D scene. This leads to "3D fatigue" (eye strain and discomfort) and breaks the immersion. The core challenge is to maintain the artistic style while strictly preserving the geometric relationship, or disparity, between the two views.

Methodology

The proposed framework utilizes a feed-forward network that integrates two primary components into a "feature-level middle domain":

  1. StyleNet: A sub-network based on standard auto-encoder architectures designed for fast, high-quality artistic stylization.
  2. DispOccNet: A novel sub-network that simultaneously estimates bidirectional disparity (pixel shifts between views) and occlusion masks (identifying regions visible to only one eye). This is the first end-to-end network to handle both tasks concurrently.

Feature-Level Middle Domain Integration

Rather than stylizing images and attempting post-hoc corrections, the network warps extracted features from both views into a symmetric "middle domain." In this shared space, overlapping regions are stylized consistently. These features are then warped back to the original left/right views and passed through a decoder to produce the final images. This feature-level composition makes the system more robust to minor errors in disparity estimation, preventing ghosting artifacts.

Loss Functions

The network is trained using a combination of three loss functions:

  • Content & Style Loss: Standard metrics ensuring the output retains the original scene structure and adopts the target style.
  • Disparity Consistency Loss: A new term that penalizes differences between the stylized left view and the warped version of the stylized right view in non-occluded areas.
  • Temporal Consistency: For video, a temporal network uses optical flow to ensure stylization remains consistent across frames, preventing distracting flickering.

Key Results and Insights

Figure 3: Comparison of stereoscopic stylization methods. (a) Input stereo pair and style image. (b-d) Comparison showing how the proposed method (green) maintains texture consistency across views compared to baselines (red), which exhibit spatial misalignment. Source, p. 2

Figure 3: Comparison of stereoscopic stylization methods. (a) Input stereo pair and style image. (b-d) Comparison showing how the proposed method (green) maintains texture consistency across views compared to baselines (red), which exhibit spatial misalignment.
  • Quantitative Performance: The DispOccNet achieved a lower Endpoint Error (EPE) on the MPI Sintel dataset (4.16) compared to the original DispNet (4.48), while maintaining high processing speeds.
  • Qualitative Preference: In user studies, the proposed method was preferred 94.8% of the time over independent stylization baselines.
  • Efficiency: The system processes a 640x480 stereo pair in approximately 0.07 seconds on a Titan X GPU, making it viable for near real-time VR/AR applications.
  • Symmetry and Bidirectional Learning: The authors found that processing both views symmetrically in a middle domain avoids the "seams" or artifacts common in sequential processing. Furthermore, training the network to look at both left-to-right and right-to-left shifts simultaneously improves disparity map accuracy.

Limitations and Future Work

The quality of the final stylization remains dependent on the accuracy of the disparity estimation. In scenes with extremely complex geometry or transparency, errors in the disparity map can still lead to local inconsistencies. Future research may explore a more unified "all-in-one" network that predicts disparity, optical flow, and stylization simultaneously, and extend these techniques to 360-degree stereoscopic content.

Summary updated

BibTeX
@inproceedings{chen2018stereoscopic,
  author = {Dongdong Chen and Lu Yuan and Jing Liao and Nenghai Yu and Gang Hua},
  title = {{Stereoscopic Neural Style Transfer}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00696},
}
Figure