Code Monkey home page Code Monkey logo

stylegan2-tensorflow-2.0's Introduction

StyleGAN2 Tensorflow 2.0

Unofficial implementation of StyleGAN 2 using TensorFlow 2.0.

Original paper: Analyzing and Improving the Image Quality of StyleGAN

Arxiv: https://arxiv.org/abs/1912.04958

This implementation includes all improvements from StyleGAN to StyleGAN2, including:

Modulated/Demodulated Convolution, Skip block Generator, ResNet Discriminator, No Growth,

Lazy Regularization, Path Length Regularization, and can include larger networks (by adjusting the cha variable).

Image Samples

Trained on Landscapes for 3.48 million images (290k steps, batch size 12, channel coefficient 24): To clarify, 3.48 million images were shown to the Discriminator, but the dataset consists of only ~14k images. Thus, of those 3.48 million images, most are repeats of already seen images.

Teaser image

Mixing Styles:

Teaser image

Before Running

Please ensure you have created the following folders:

  1. /Models/
  2. /Results/
  3. /data/

Additionally, please ensure that your folder with images is in /data/ and changed at the top of stylegan.py.

For pretrained models, download the pretrained models from here

Then, adjust the main code at the bottom to use model.load(model_num), where model_num = the number from the downloaded model.

stylegan2-tensorflow-2.0's People

Contributors

manicman1999 avatar timweri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.