Giter Club home page Giter Club logo

em-gm's Introduction

Code for reproducing experiment results of our paper

Requirements:

  1. Python 3.6.5
  2. Pytorch 0.4.1
  3. torchvision 0.2.1
  4. tqdm 4.26.0
  5. numpy, scipy

Model Evaluation is Done on Datasets:

Algorithm evaluation in our experiment section is done with dataset MNIST and FashionMNIST.

Classification Task Code is at Classification Repos

Usage Instruction:

  • Train model with:
$ python train.py <hparams> 

If hparams.Mixture.naive = True in configuration file , then GenMM is going to be trained. If hparams.naive is setting False, LatMM is going to be trained.

  • Training example:
python train.py hparams/LatMM/fashion-mnist5.json fashion-mnist directory_to_dataset

For generating samples and latent space interpolation, the directory path to a trained model (either GenMM or LatMM) should be specificed for Infer.pre_trained in configuration file . To generate samples or do latent space interpolation, run:

python infer_mix.py <hparams> <dataset_root> <mode>

For option , it can either be Generating or Interpolation.

Model implementation and evaluation:

For generator implementation in our GenMM and LatMM, the gnerators are implemented as flow-based models. The specific glow structure among flow models is used. The glow structure in glow-pytorch as pytorch implemention of paper "Glow: Generative Flow with Invertible 1ร—1 Convolutions" is adopted.

For implementation of our model/algorithm evaluation regarding different metrics, we use the generative model evaluation framework

em-gm's People

Contributors

firsthandscientist avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dataronio dofolk

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.