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 tasks, different devices require models of different sizes due to varying computing power. In this paper, we introduce slimmable GANs (SlimGANs), which can flexibly switch the width (channels of layers) of the generator to accommodate various quality-efficiency trade-offs at runtime. Specifically, we leverage multiple partial parameter-shared discriminators 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),它可以灵活地转换发电机的宽度(多层通道),以适应在运行时的各种质量效率权衡。具体地说,我们利用多个部分共享参数的导师来培训微薄的生成器。为不同宽度的生成器提供便利,我们提出了一个鼓励窄度发电机从宽度中学习的一步步式蒸馏技术。关于等级条件生成器,我们提出了将标签信息纳入不同宽度的切分批标准化方案。我们的方法通过广泛的实验和详细的模拟研究在数量和质量上得到验证。