Code Monkey home page Code Monkey logo

handwriting-generation-using-recurrent-neural-networks's Introduction

Handwriting-Generation-Using-Recurrent-Neural-Networks

This is an implementation of handwriting generation with use of recurrent neural networks (LSTM & GRU) using torch and python. The work is based on Alex Graves paper published in 2013.

Installation

Clone the GitHub repository and install the dependencies.

  • Install

    • Anaconda (for creating and activating a separate environment)
    • pytest==3.2.1
    • numpy=1.13.3
    • matplotlib
    • tqdm==4.17.1
    • colorama==0.3.9
    • scikit-learn==0.19.1
    • pytorch==0.2.0 -c soumith
  • Clone the repo and go to the directory

$ git clone https://github.com/AizazSharif/Handwriting-Generation-Using-Recurrent-Neural-Networks.git
$ cd Handwriting-Generation-Using-Recurrent-Neural-Networks

Training

The pretrained model is saved in models/ directory. Once you get the concept of Conditional and Unconditional Handwriting Generation you can train your own model by changing the setting in configurations.py.

For training the model use :

python main.py --train_conditional
python main.py --train_unconditional

Validation

Validation can be simply done by running:

python main.py --validate_conditional --conditional_model_path /Handwriting-Generation-Project/models/conditional.pt
python main.py --validate_unconditional --unconditional_model_path /Handwriting-Generation-Project/models/unconditional.pt

Credit

This project is a part of Deep Learning related task and all credit goes to Lyrebird for introducing me to this incredible work.

handwriting-generation-using-recurrent-neural-networks's People

Contributors

aizazsharif avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

adityac8

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.