Skip to content

v-vskv-v/GAN_EBM

Repository files navigation

Improving GAN Inference with EBM Model

This repository contains code for Final Project of ML Course in Skoltech with experiment results:

  • moons/roll: experiment plots for GAN and proposed model;
  • mnist/cifar10: generated images by GAN and proposed model at each 1000 step;
  • Presentation_GAN_EBM.pdf: project presentation;
  • Report_GAN_EBM.pdf: project report;
  • Project_GAN_EBM.ipynb: notebook with code and experiment results;

To run this code and reproduce results you need install these packages and libraries, you should use python3.8. Please, set up a virtual environment and run pip install -r requirements.txt.

Below you can find the best results in experiments.

Moons

An experiment with vanilla GAN, comparison between true distribution and generator distribution. GAN

An experiment with proposed model, comparison between true distribution and 1500 steps of MCMC applied to generator output with step size 2. GAN_EBM

Swiss roll

An experiment with vanilla GAN, comparison between true distribution and generator distribution. GAN

An experiment with proposed model, comparison between true distribution and 1500 steps of MCMC applied to generator output with step size 3. GAN_EBM

MNIST

Comparison between generated images by vanilla GAN generator and 500 steps of MCMC applied to generator output with step size 2.

Images by GAN generator.

GAN GAN GAN GAN

Images by proposed generative model.

GAN_EBM GAN_EBM GAN_EBM GAN_EBM

CIFAR10

Comparison between generated images by vanilla GAN generator and 1500 steps of MCMC applied to generator output with step size 2.

For vanilla GAN model we dealed with zero discriminant loss problem -- for every iteration we see this noisy image.

GAN

For proposed generative model we see movements in learned modes with different patterns in generated images.

GAN_EBM GAN_EBM GAN_EBM GAN_EBM

About

Improving GAN Inference with EBM Model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •