Giter Club home page Giter Club logo

stylegan-data-augmentation's Introduction

StyleGAN2_Pytorch

This project is a reimplementation from official NV_Lab stylegan2(link) & this repo.

Data Preprocessing

I only use the first 130K images(NG: 42610, OK: 87390) from _train_map.txt for training GAN. In data preprocessing stage, I resize images to 160x160 then center crop to 128x128 and normalize the pixel value into [-1, 1] along the spatial dimension.

Model

Stylgan2(Condtional GAN architecture). I use embedding table to lookup label and concat it with latent vector in mapping network of StyleGAN2. In Discriminator, I use label information to only output prediction for that class.

Training

The training behavior is quite like the official Stylegan2. I traing this model for 300K iteration with initial learning rate 0.002, batch size 16, Non-saturating loss with path length regularization for Generator, logistic loss and r1 regularization for Discriminator, and Style mixing regularization. For training configuration file, please refer to StyleGAN2_Pytorch/experiments/itri-noaug.yml

FID

The best FIDs in this training are 87.5 and 48.7 for NG and OK, respectively. For FID in whole training, please refer to fid.txt

stylegan-data-augmentation's People

Contributors

jimmya-1995 avatar

Watchers

James Cloos avatar  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.