arXiv:2409.11010cs.CV2024-09ECCV被引 7

用多模态信息生成人脸,还能快速编辑真实照片。

MM2Latent: Text-to-facial image generation and editing in GANs with multimodal assistance

  • 融合文本、掩码等多模态输入,映射到风格空间实现可控生成
  • 推理无需调参或手动操作,速度比现有方法快
  • 支持真实图像编辑,适合需要高效可控生成的场景

人脸生成是图像生成领域的热门方向,如掩码到人脸、文本到人脸生成。然而,单模态方法在生成控制上存在不足。通过融合不同模态的优势与互补性可提升可控性:文本擅长控制属性,掩码擅长控制空间位置。现有主流多模态生成方法受限于大量超参数、推理阶段需人工干预、训练与推理计算开销大,或无法编辑真实图像。本文提出实用框架MM2Latent,以StyleGAN2为生成器,FaRL编码文本,训练自编码器处理掩码、草图和3DMM等空间模态。设计映射网络将多模态输入统一映射至StyleGAN的w潜空间。所提方法消除推理阶段的超参数与人工操作,保证快速推理,并支持真实图像编辑。大量实验表明,该方法在多模态生成上优于近期基于GAN与扩散模型的方法;在多模态编辑中同样有效,且速度更快。代码已公开于https://github.com/Open-Debin/MM2Latent。

原文摘要 · Abstract (English)

Generating human portraits is a hot topic in the image generation area, e.g. mask-to-face generation and text-to-face generation. However, these unimodal generation methods lack controllability in image generation. Controllability can be enhanced by exploring the advantages and complementarities of various modalities. For instance, we can utilize the advantages of text in controlling diverse attributes and masks in controlling spatial locations. Current state-of-the-art methods in multimodal generation face limitations due to their reliance on extensive hyperparameters, manual operations during the inference stage, substantial computational demands during training and inference, or inability to edit real images. In this paper, we propose a practical framework - MM2Latent - for multimodal image generation and editing. We use StyleGAN2 as our image generator, FaRL for text encoding, and train an autoencoders for spatial modalities like mask, sketch and 3DMM. We propose a strategy that involves training a mapping network to map the multimodal input into the w latent space of StyleGAN. The proposed framework 1) eliminates hyperparameters and manual operations in the inference stage, 2) ensures fast inference speeds, and 3) enables the editing of real images. Extensive experiments demonstrate that our method exhibits superior performance in multimodal image generation, surpassing recent GAN- and diffusion-based methods. Also, it proves effective in multimodal image editing and is faster than GAN- and diffusion-based methods. We make the code publicly available at: https://github.com/Open-Debin/MM2Latent

人脸生成多模态图像编辑GAN

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。