Generative adversarial networks (GANs) have achieved remarkable progress in recent years, but the continuously growing scale of models makes them challenging to deploy widely in practical applications. In particular, for real-time generation tasks, different devices require generators of different sizes due to varying computing power. In this paper, we introduce slimmable GANs (SlimGANs), which can flexibly switch the width of the generator to accommodate various quality-efficiency trade-offs at runtime. Specifically, we leverage multiple discriminators that share partial parameters to train the slimmable generator. To facilitate the \textit{consistency} between generators of different widths, we present a stepwise inplace distillation technique that encourages narrow generators to learn from wide ones. As for class-conditional generation, we propose a sliceable conditional batch normalization that incorporates the label information into different widths. Our methods are validated, both quantitatively and qualitatively, by extensive experiments and a detailed ablation study.
翻译:近年来,创世对抗网络(GANs)取得了显著进展,但不断增长的模型规模使其难以在实际应用中广泛部署。特别是,对于实时发电任务,不同装置需要不同尺寸的发电机,因为不同的计算能力不同。在本文中,我们引入了微薄的GANs(SlimGANs),可以灵活地转换发电机的宽度,以适应在运行时各种质量效率的权衡。具体地说,我们利用多个共享部分参数的区别器来训练微薄的发电机。为了便利不同宽度发电机之间的脱轨,我们提出了一个鼓励窄式发电机从宽度中学习的一步步式蒸馏技术。就类生产而言,我们提出了将标签信息纳入不同宽度的可切分批标准化方案。我们的方法通过广泛的实验和详细的消融研究在数量和质量上得到验证。