Anycost GANs for Interactive Image Synthesis and Editing
Authors:
- Ji LinJLJi Lin
- Song HanSHSong Han
- 1 June 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 14981-14991
Abstract
Generative adversarial networks (GANs) have enabled photorealistic image synthesis and editing. However, due to the high computational cost of large-scale generators (e.g., StyleGAN2), it usually takes seconds to see the results of a single edit on edge devices, prohibiting interactive user experience. In this paper, inspired by quick preview features in modern rendering software, we propose Anycost GAN for interactive natural image editing. We train the Anycost GAN to support elastic resolutions and channels for faster image generation at versatile speeds. Running subsets of the full generator produce outputs that are perceptually similar to the full generator, making them a good proxy for quick preview. By using sampling-based multi-resolution training, adaptive-channel training, and a generator-conditioned discriminator, the anycost generator can be evaluated at various configurations while achieving better image quality compared to separately trained models. Furthermore, we develop new encoder training and latent code optimization techniques to encourage consistency between the different sub-generators during image projection. Anycost GAN can be executed at various cost budgets (up to 10× computation reduction) and adapt to a wide range of hardware and la tency requirements. When deployed on desktop CPUs and edge devices, our model can provide perceptually similar previews at 6-12× speedup, enabling interactive image editing. The ${\color{RubineRed}{code}}$ and ${\color{RubineRed}{demo}}$ are publicly available.
Keywords
All Related Versions
This publication has 41 references indexed in Scilit:
- Xception: Deep Learning with Depthwise Separable Convolutions2017
- Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network2017
- Image-to-Image Translation with Conditional Adversarial Networks2017
- Generative Visual Manipulation on the Natural Image Manifold2016
- Context Encoders: Feature Learning by Inpainting2016
- Deep Residual Learning for Image Recognition2016
- On the limited memory BFGS method for large scale optimizationMathematical Programming, 1989
- A progressive refinement approach to fast radiosity image generationACM SIGGRAPH Computer Graphics, 1988
- The rendering equationACM SIGGRAPH Computer Graphics, 1986
- Modeling the interaction of light between diffuse surfacesACM SIGGRAPH Computer Graphics, 1984