Coder Social home page Coder Social logo

proceduralia / tgan-pytorch Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 4.0 8 KB

A PyTorch implementation of Temporal Generative Adversarial Nets with Singular Value Clipping

License: MIT License

Python 100.00%
pytorch generative-adversarial-network generative-model deep-learning video-generator python

tgan-pytorch's Introduction

tgan-pytorch

A PyTorch implementation of Temporal Generative Adversarial Nets with Singular Value Clipping.

Implementation details

Although in the original implementation Wasserstein GANs with weight clipping and singular value clipping were used, this version uses the training procedure highlighted in Improved Training of Wasserstein GANs. The model is trained on MovingMNIST.

Requirements

PyTorch
torchvision
PyYAML

Configuration

The configuration options are saved in config.yml. Modify its content accordingly to your needs, for example setting use_cuda to False.

Usage

Download the MovingMNIST dataset in the data/ directory using:

wget http://www.cs.toronto.edu/~nitish/unsupervised_video/mnist_test_seq.npy

To start the training:

python train.py

Savings will be contained in the checkpoints/ directory, while images representing the generated videos are stored in samples/.

Citation of original authors

I am not one of the authors of the original work nor affiliated with them. To reference their work please use:

@inproceedings{TGAN2017,
    author = {Saito, Masaki and Matsumoto, Eiichi and Saito, Shunta},
    title = {Temporal Generative Adversarial Nets with Singular Value Clipping},
    booktitle = {ICCV},
    year = {2017},
}

tgan-pytorch's People

Contributors

proceduralia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tgan-pytorch's Issues

Can't get reasonable results

Thanks for sharing the code.

I run your code without modification, but the results are really bad, as the attached image shows.

What's your results when running this code? Can it produce reasonable results?

image

question about interpolates

the interpolation should be made in latent variable z not the raw image.

interpolates = alpha * real_data + ((1 - alpha) * fake_data)

Temporal Discriminator problem

Hi, May i ask why did you do a permutation x = x.permute(0,2,1,3,4) on the input tensor of size (8,3,16,64,64)? It resulted in a mismatch in tensor size when I tried to run it.

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.