GithubHelp home page GithubHelp logo

morsenet's Introduction

cwdecode

A neural network research project.

This repository contains experimental code. The goal of this project is to investigate the possibility of using recurrent neural networks and connectionist temporal classification (CTC) for decoding morse code messages from raw audio data.

Currently two of the Python scripts are useful:

generate_wav_samples.py

It is both a command-line tool for debugging and a module for generating data for training/validation.

For command line usage, issue:

$ ./generate_wav_samples.py --help"

tensorflow_lstm_ctc_train.py

Builds and trains a simple neural network with LSTM unit(s) using CTC as the loss function. The input is chunked raw audio. The model checkpoints and training / evaluation events are saved in a directory called "model_train".

Usage:

$ ./tensorflow_lstm_ctc_train.py

Training progress can be observed with:

$ tensorboard --log-dir=model_train

If you're particularly happy with one of the checkpoints, copy it manually into a directory called "model_use". To copy a checkpoint, you have to copy a meta, an index, and a data file. The checkpoint number and the type can be read in the files' names. A file called "checkpoint" is also needed. See the one in "model_training". The structure should be self-evident.

tensorflow_lstm_ctc_decode.py

Restores the latest checkpoint from the directory "model_use", and decodes a wav file given it's name as it's sole argument.

$ ./tensorflow_lstm_ctc_decode.py test.wav

The decoded text will appear under a pile of TF INFO messages.

morsenet's People

Contributors

netom avatar

Watchers

James Cloos 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.