hyperstyle  by yuval-alaluf

Research paper implementation for StyleGAN inversion via hypernetworks

created 3 years ago
1,026 stars

Top 37.2% on sourcepulse

GitHubView on GitHub
Project Summary

HyperStyle addresses the trade-off between reconstruction fidelity and semantic editability in StyleGAN latent space inversion for real images. It offers a hypernetwork-based approach for near real-time inference, enabling accurate image representations in editable latent regions, benefiting researchers and practitioners in image editing and manipulation.

How It Works

HyperStyle employs a hypernetwork to learn weight modulations for a pre-trained StyleGAN generator, conditioned on a target image. This approach avoids the lengthy per-image fine-tuning of the generator itself, instead learning efficient weight adjustments. By carefully designing the hypernetwork, the parameter count is kept manageable while achieving reconstructions comparable to optimization-based methods, with the speed of encoder-based approaches.

Quick Start & Requirements

Highlighted Details

  • Achieves reconstruction quality comparable to optimization techniques with encoder-based inference speeds.
  • Enables editing of out-of-domain images not seen during training.
  • Supports editing via StyleCLIP, InterFaceGAN, and GANSpace.
  • Facilitates domain adaptation by applying learned weight offsets to fine-tuned generators.

Maintenance & Community

The project is the official implementation for a CVPR 2022 paper. It builds upon and credits several other open-source projects, including StyleGAN2, e4e, and StyleCLIP.

Licensing & Compatibility

The repository utilizes code and models with various licenses, including MIT, Apache 2.0, BSD 2-Clause, and an "Nvidia Source Code License-NC" for CUDA files within the StyleGAN2 ops directory. Compatibility for commercial use or closed-source linking should be carefully reviewed based on these individual licenses.

Limitations & Caveats

The "Nvidia Source Code License-NC" for StyleGAN2 CUDA ops may impose restrictions on commercial use. CPU inference is not inherently supported and may require modifications.

Health Check
Last commit

2 years ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
7 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.