Skip to main content
QUICK REVIEW

[Paper Review] Adjustable Real-time Style Transfer

Mohammad Babaeizadeh, Golnaz Ghiasi|arXiv (Cornell University)|Nov 21, 2018
Generative Adversarial Networks and Image SynthesisComputer Science8 references13 citations
TL;DR

This paper proposes a real-time, adjustable style transfer method that allows users to modify stylized outputs after training by tuning loss-weight parameters in inference, achieving diverse, user-controlled results without retraining. The approach uses a learnable adapter network to dynamically adjust feature loss contributions, enabling manual or randomized control over stylization intensity and style distribution while preserving content and style fidelity.

ABSTRACT

Artistic style transfer is the problem of synthesizing an image with content similar to a given image and style similar to another. Although recent feed-forward neural networks can generate stylized images in real-time, these models produce a single stylization given a pair of style/content images, and the user doesn't have control over the synthesized output. Moreover, the style transfer depends on the hyper-parameters of the model with varying "optimum" for different input images. Therefore, if the stylized output is not appealing to the user, she/he has to try multiple models or retrain one with different hyper-parameters to get a favorite stylization. In this paper, we address these issues by proposing a novel method which allows adjustment of crucial hyper-parameters, after the training and in real-time, through a set of manually adjustable parameters. These parameters enable the user to modify the synthesized outputs from the same pair of style/content images, in search of a favorite stylized image. Our quantitative and qualitative experiments indicate how adjusting these parameters is comparable to retraining the model with different hyper-parameters. We also demonstrate how these parameters can be randomized to generate results which are diverse but still very similar in style and content.

Motivation & Objective

  • Address the lack of user control in real-time style transfer models, which produce a single fixed stylization per content/style pair.
  • Overcome the impracticality of retraining models with different hyper-parameters to achieve preferred stylizations.
  • Enable real-time adjustment of loss contributions during inference to explore diverse stylizations from the same input pair.
  • Provide a mechanism for generating diverse yet stylistically consistent outputs through randomized parameter tuning.
  • Decouple hyper-parameter sensitivity from model retraining by allowing runtime control of loss weighting.

Proposed method

  • Introduce an auxiliary network $\Lambda$ that takes adjustable parameters $\boldsymbol{\alpha}_c$ and $\boldsymbol{\alpha}_s$ as input to predict normalization parameters $\gamma_{\boldsymbol{\alpha}}$ and $\beta_{\boldsymbol{\alpha}}$ for the main stylization network $T$.
  • Modify the style and content loss computation by multiplying layer-wise losses with the corresponding $\boldsymbol{\alpha}$ parameters, enabling dynamic control of loss contributions.
  • Train the stylization network $T$ and adapter network $\Lambda$ jointly by minimizing a weighted sum of content and style losses, where weights are modulated by $\boldsymbol{\alpha}$.
  • Enable real-time inference with user-adjustable $\boldsymbol{\alpha}$ values to explore different stylizations without retraining.
  • Enhance diversity by randomizing $\boldsymbol{\alpha}$ parameters at inference time, producing varied outputs from the same content/style pair.
  • Improve spatial variation in stylization by adding small-magnitude noise to the content image via a learned mask, further increasing output diversity.

Experimental results

Research questions

  • RQ1Can users achieve diverse, high-quality stylizations from a single content/style pair without retraining the model?
  • RQ2Can runtime adjustment of loss weights in a trained network produce stylizations comparable to those from retraining with different hyper-parameters?
  • RQ3How can the model generate diverse yet stylistically consistent outputs through parameter randomization?
  • RQ4Does adding noise to the content image enhance spatial variation in stylized outputs when combined with parameter randomization?
  • RQ5Can the proposed method be extended to multi-style transfer or other vision tasks with similar loss-based architectures?

Key findings

  • The proposed method enables real-time adjustment of stylized outputs via user-defined parameters $\boldsymbol{\alpha}_c$ and $\boldsymbol{\alpha}_s$, producing results comparable to retraining with different hyper-parameters.
  • Randomizing $\boldsymbol{\alpha}$ parameters at inference time generates diverse stylizations that remain consistent in content and style, as demonstrated in qualitative comparisons.
  • Adding noise to the content image via a learned mask increases spatial variation in stylized outputs, enhancing diversity without losing style fidelity.
  • The method outperforms baselines that add noise to style parameters, which either fail to preserve style or lose diversity when noise is introduced at training time.
  • Qualitative comparisons show that the proposed method generates more varied stylizations than StyleNet [32], with differences in overall stylization level rather than just minor details.
  • The approach is generalizable and can be extended to multi-style transfer, other loss functions, and potentially other deep learning tasks requiring dynamic hyper-parameter control.

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.