Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.
/ char_rnn_tf Public archive

Character based RNN to write text.

Notifications You must be signed in to change notification settings

altaml/char_rnn_tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Character based RNN

This is one of my first attempts at an RNN. It was inspired by Andrej Kapathy's blog post.

Sources

I used this project to teach myself how to use Tensorflow and LSTM's in general. Because of this, I went through a lot of online tutorials which, in turn inspired parts of my code. Below is an incomplete list of the sources that I used in developing this project.

Requirements and Running

Requires python3, tensorflow. It will run better if you have a gpu and use tensorflow-gpu.

To train the network, edit the main file my_rnn.py to set:

train = True

restart = True

This tells the network not to load a checkpoint and re-generate the vocabulary file.

Run using: $ python3 my_rnn.py

The model must be trained first so that there is a checkpoint to load.

TODO:

  • Add command line flags for sampling, temperature etc.
  • More code comments
  • Test on CPU only machine

About

Character based RNN to write text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages