Home

Awesome

Deep Tutorials for PyTorch

This is a series of in-depth tutorials I'm writing for implementing cool deep learning models on your own with the amazing PyTorch library.

Basic knowledge of PyTorch and neural networks is assumed.

If you're new to PyTorch, first read Deep Learning with PyTorch: A 60 Minute Blitz and Learning PyTorch with Examples.


24 Apr 2023: I've just completed the Super-Resolution and Transformers tutorials.

09 Dec 2023: Interested in chess or transformers? Check out Chess Transformers.


In each tutorial, we will focus on a specific application or area of interest by implementing a model from a research paper.

ApplicationPaperTutorialAlso Learn AboutStatus
Image CaptioningShow, Attend, and Tella PyTorch Tutorial to Image Captioning• encoder-decoder architecture<br/><br/>• attention <br/><br/>• transfer learning <br/><br/>• beam search🟢<br/>complete
Sequence LabelingEmpower Sequence Labeling with Task-Aware Neural Language Modela PyTorch Tutorial to Sequence Labeling• language models<br/><br/>• character RNNs <br/><br/>• multi-task learning <br/><br/>• conditional random fields <br/><br/>• Viterbi decoding <br/><br/>• highway networks🟢<br/>complete
Object DetectionSSD: Single Shot MultiBox Detectora PyTorch Tutorial to Object Detection• single-shot detection<br/><br/>• multiscale feature maps <br/><br/>• priors <br/><br/>• multibox <br/><br/>• hard negative mining <br/><br/>• non-maximum suppression🟢<br/>complete
Text ClassificationHierarchical Attention Networks for Document Classificationa PyTorch Tutorial to Text Classification• hierarchical attention🟡<br/>code complete
Super-ResolutionPhoto-Realistic Single Image Super-Resolution Using a Generative Adversarial Networka PyTorch Tutorial to Super-ResolutionGANs — this is also a GAN tutorial <br/><br/>• residual connections <br/><br/>• sub-pixel convolution <br/><br/>• perceptual loss🟢<br/>complete
Machine TranslationAttention Is All You Needa PyTorch Tutorial to Transformerstransformers <br/><br/>• multi-head attention <br/><br/>• positional embeddings <br/><br/>• encoder-decoder architecture <br/><br/>• byte pair encoding <br/><br/>• beam search🟢<br/>complete
Semantic SegmentationSegFormer: Simple and Efficient Design for Semantic Segmentation with Transformersa PyTorch Tutorial to Semantic SegmentationN/A🔴<br/>planned