Giter VIP home page Giter VIP logo

multimodal-cylic-gan's Introduction

Multimodal Cyclic StackGAN

Text To Image Synthesis using stacked Generative Adversarial Networks.

Code is messy. Please proceed with caution

Requirements- torchvision
pytorch(python 3.x)
PIL
torchfile

Download these files- Glove- http://nlp.stanford.edu/data/glove.6B.zip
MSCOCO Validation images-http://images.cocodataset.org/zips/val2014.zip
MSCOCO Train/Val Captions-http://images.cocodataset.org/annotations/annotations_trainval2014.zip

We experimented with a novel architecture-
The idea behind this architecture is that the captioning model provides additional feedback to the GAN. A captioning model maps low dimensional data (text) to high dimensional data (images), which is generally easier than the reverse. We exploit this by providing a cyclic feedback mechanism across different modalities. Specifically, the caption when mapped back from the image space should have the same feature representation.
The results were not satisfactory (Our report). We suspect that the cosine embedding loss might not be right choice, instead an L2-loss should suffice. In addition, we enforce the captioning model bias on the generative model. A better approach would be to train the captioning model simultaneously with the GAN. This would allow for a common manifold to be learnt shared across both the generative and captioning model.

TODO

  • Replace GAN loss with Wasserstein gradient penalty
  • Train on Flowers dataset
  • Force input caption and output caption to be in same space of images. Share weights between input caption encoder and caption predicition.
  • Train captioning model as well

I'm currently tied up with other projects. However, I do aim to bring this to fruition sometime soon.

multimodal-cylic-gan's People

Contributors

krishnatoshniwal avatar lmorishe avatar satyenrajpal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.