Giter Club home page Giter Club logo

tinyturbo's Introduction

tinyturbo

This repository includes:

  • A PyTorch implementation of Turbo encoding and decoding.
  • TINYTURBO - A neural Turbo decoder. Code for our paper "TinyTurbo: Efficient Turbo decoders on Edge"

All Python libraries required can be installed using:

pip install -r requirements.txt

Training Neural Turbo decoder

Models are saved (with frequency specified by args.save_every) at Results/args.id/models/weights_{step_number}.pt

python main.py --batch_size 5000 --block_len 40 --target gt --loss_type BCE --init_type ones --num_steps 5000 --tinyturbo_iters 3 --turbo_iters 6 --train_snr -1 --lr 0.0008 --noise_type awgn --gpu 0 --id *string_of_your_choice* 

Training Neural Turbo decoder from saved model checkpoint

python main.py --batch_size 1000 --block_len 40 --target gt --loss_type BCE --init_type ones --num_steps 5000 --tinyturbo_iters 3 --turbo_iters 6 --train_snr -1 --lr 0.0008 --noise_type awgn --gpu 0 --id *string_of_your_choice* --load_model_train *path to .pt file to initialize from*

Testing Neural Turbo decoder

Tests the final model checkpoint at Results/args.id/models/weights.pt

python main.py --test_size 10000 --test_batch_size 10000 --block_len 40 --tinyturbo_iters 3 --turbo_iters 6 --noise_type awgn --gpu -1 --id *id of trained model* --test

Testing Neural Turbo decoder at step_number

Tests the final model checkpoint at Results/args.id/models/weights_{step_number}.pt

python main.py --test_batch_size 10000 --block_len 40 --tinyturbo_iters 3 --turbo_iters 6 --noise_type awgn --gpu -1 --id *id of trained model* --test --load_model_step *step_number*

Description of functions

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.