Skip to content

Su-Li-Fuwa/2021Spring-CV-Project

Repository files navigation

Real Image Editing on User-Specified Semantics by GAN Inversion model

Python 3.6 PyTorch 1.2.0 streamlit 0.82.0

image Figure: Example which is showing the satisfying real image editing achieved by our application.

This is a shared repository for 2021 Spring Computer Vision course project, which implements a compact application to do real image editing. Our application takes advantage of pre-trained GANs and corresponding inversion models. Taking only one pair of images as input, it can find user-defined semantic directions efficiently and with high accuracy, compared with previous approaches. These directions can then be applied on inverted latent codes and editing certain semantics of real images. See final report there.

The application is implemented mainly on StyleGAN2 and FFHQ, the inversion model we use is the in-domain inversion model.

Let's play!

To play with our application, just clone this repository to your machine and run the following bash:

streamlit run interface.py

The application will download the pre-trained GAN and inversion model automatically, then one can edit their own real images on either pre-determined or user-specified semantics.

image Figure: The main interface of our application, which is implemented by streamlit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •