Giter Site home page Giter Site logo

ganwriting's Introduction

GANwriting

An implementation of this paper, originally done for the Weights & Biases paper reproducibility challenge (we didn't have the time or compute to complete it within the deadline). So we decided to make a web app out of it, which is in the works.

Trained for 5000 epochs on the IAM500 dataset resulted in the following images: epoch-5000

Each row in the image consists of 5 different words in the handwriting of a different author.

Limitations

  • Sadly due to the fact that the IAM500 dataset consists of only English words with no special characters or numbers at all, the authors created a tokenization system that only uses those characters. The same model with a different tokenization system and a different dataset might be able to have a wider range of useable characters.

  • They also decided to use a small MLP model for the text encoder due to the above reason. This also means that each word can only be of max length 10, any word shorter than that has to be padded and longer ones have to be split.

  • For the word recognizer model the authors used an LSTM based seq2seq model which might not be powerful enough for a larger character set and longer words.

We might able to covercome the first limitation by using byte pair encoding allowing us to encode utf-8 characters.

For the second and third, replacing the text encoder in the generator and the word recognizer with transformer based models might give better results for a bit higher compute costs.

References

GANwriting: Content-Conditioned Generation of Styled Handwritten Word Images by Lei Kang, Pau Riba, Yaxing Wang, Marçal Rusiñol, Alicia Fornés, and Mauricio Villegas.

ganwriting's People

Contributors

bijmuj avatar ak224 avatar shahgauravraj avatar toobie-2b avatar

Watchers

 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.