WeditGAN: Few-Shot Image Generation via Latent Space Relocation

Yuxuan Duan, Li Niu, Yan Hong, Liqing Zhang
5/11/2023
cs.CV

Official code: Ldhlwh/WeditGAN (6 stars, last commit 2024-12-19).

Abstract

In few-shot image generation, directly training GAN models on just a handful of images faces the risk of overfitting. A popular solution is to transfer the models pretrained on large source domains to small target ones. In this work, we introduce WeditGAN, which realizes model transfer by editing the intermediate latent codes $w$ in StyleGANs with learned constant offsets ($Δw$), discovering and constructing target latent spaces via simply relocating the distribution of source latent spaces. The established one-to-one mapping between latent spaces can naturally prevents mode collapse and overfitting. Besides, we also propose variants of WeditGAN to further enhance the relocation process by regularizing the direction or finetuning the intensity of $Δw$. Experiments on a collection of widely used source/target datasets manifest the capability of WeditGAN in generating realistic and diverse images, which is simple yet highly effective in the research area of few-shot image generation. Codes are available at https://github.com/Ldhlwh/WeditGAN.

View on arXivView PDF

Code Implementations(1)

Ldhlwh/WeditGANOfficial100%

[AAAI 2024] Official implementation of "WeditGAN: Few-Shot Image Generation via Latent Space Relocation".

60C++, CudaJan 14, 20241 years ago

Similar Papers

Cite this paper

@article{duan2023weditgan,
  title  = {WeditGAN: Few-Shot Image Generation via Latent Space Relocation},
  author = {Yuxuan Duan and Li Niu and Yan Hong and Liqing Zhang},
  year   = {2023},
  eprint = {2305.06671},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.06671v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.06671.svg)](https://codeofpaper.com/paper/2305.06671)

Discussion