Giter Club home page Giter Club logo

deeplearning-models's Introduction

Deep Learning Models

A collection of various deep learning architectures, models, and tips for TensorFlow and PyTorch in Jupyter Notebooks.

Traditional Machine Learning

  • Perceptron PyTorch TensorFlow

  • Logistic Regression PyTorch TensorFlow

  • Softmax Regression (Multinomial Logistic Regression) PyTorch TensorFlow

  • Softmax Regression with MLxtend's plot_decision_regions on Iris PyTorch

Multilayer Perceptrons

  • Multilayer Perceptron PyTorch Lightning PyTorch TensorFlow

  • Multilayer Perceptron with Dropout PyTorch Lightning PyTorch TensorFlow

  • Multilayer Perceptron with Batch Normalization PyTorch Lightning PyTorch TensorFlow

  • Multilayer Perceptron with Backpropagation from Scratch PyTorch TensorFlow

Convolutional Neural Networks

Basic

  • Convolutional Neural Network PyTorch Lightning PyTorch TensorFlow

  • Convolutional Neural Network with He Initialization PyTorch Lightning PyTorch

Concepts

  • Replacing Fully-Connnected by Equivalent Convolutional Layers PyTorch

AlexNet

  • AlexNet on CIFAR-10 PyTorch

DenseNet

  • DenseNet-121 Digit Classifier Trained on MNIST PyTorch

  • DenseNet-121 Image Classifier Trained on CIFAR-10 PyTorch

Fully Convolutional

  • Fully Convolutional Neural Network PyTorch

LeNet

  • LeNet-5 on MNIST PyTorch

  • LeNet-5 on CIFAR-10 PyTorch

  • LeNet-5 on QuickDraw PyTorch

MobileNet

  • MobileNet-v2 on Cifar-10 PyTorch

  • MobileNet-v3 small on Cifar-10 PyTorch

  • MobileNet-v3 large on Cifar-10 PyTorch

Network in Network

  • Network in Network CIFAR-10 Classifier PyTorch

VGG

  • Convolutional Neural Network VGG-16 Trained on CIFAR-10 PyTorch TensorFlow

  • VGG-16 Gender Classifier Trained on CelebA PyTorch

  • VGG-16 Dogs vs Cats Classifier PyTorch

  • Convolutional Neural Network VGG-19 PyTorch

ResNet

  • ResNet and Residual Blocks PyTorch

  • ResNet-18 Digit Classifier Trained on MNIST PyTorch

  • ResNet-18 Gender Classifier Trained on CelebA PyTorch

  • ResNet-34 Digit Classifier Trained on MNIST PyTorch

  • ResNet-34 Object Classifier Trained on QuickDraw PyTorch

  • ResNet-34 Gender Classifier Trained on CelebA PyTorch

  • ResNet-50 Digit Classifier Trained on MNIST PyTorch

  • ResNet-50 Gender Classifier Trained on CelebA PyTorch

  • ResNet-101 Gender Classifier Trained on CelebA PyTorch

  • ResNet-101 Trained on CIFAR-10 PyTorch

  • ResNet-152 Gender Classifier Trained on CelebA PyTorch


Normalization Layers

  • BatchNorm before and after Activation for Network-in-Network CIFAR-10 Classifier PyTorch

  • Filter Response Normalization for Network-in-Network CIFAR-10 Classifier PyTorch

Metric Learning

  • Siamese Network with Multilayer Perceptrons TensorFlow

Autoencoders

Fully-connected Autoencoders

  • Autoencoder (MNIST) PyTorch TensorFlow

  • Autoencoder (MNIST) + Scikit-Learn Random Forest Classifier PyTorch TensorFlow

Convolutional Autoencoders

  • Convolutional Autoencoder with Deconvolutions / Transposed Convolutions PyTorch TensorFlow

  • Convolutional Autoencoder with Deconvolutions and Continuous Jaccard Distance PyTorch

  • Convolutional Autoencoder with Deconvolutions (without pooling operations) PyTorch

  • Convolutional Autoencoder with Nearest-neighbor Interpolation PyTorch TensorFlow

  • Convolutional Autoencoder with Nearest-neighbor Interpolation -- Trained on CelebA PyTorch

  • Convolutional Autoencoder with Nearest-neighbor Interpolation -- Trained on Quickdraw PyTorch

Variational Autoencoders

  • Variational Autoencoder PyTorch

  • Convolutional Variational Autoencoder PyTorch

Conditional Variational Autoencoders

  • Conditional Variational Autoencoder (with labels in reconstruction loss) PyTorch

  • Conditional Variational Autoencoder (without labels in reconstruction loss) PyTorch

  • Convolutional Conditional Variational Autoencoder (with labels in reconstruction loss) PyTorch

  • Convolutional Conditional Variational Autoencoder (without labels in reconstruction loss) PyTorch

Generative Adversarial Networks (GANs)

  • Fully Connected GAN on MNIST PyTorch TensorFlow

  • Fully Connected Wasserstein GAN on MNIST PyTorch

  • Convolutional GAN on MNIST PyTorch TensorFlow

  • Convolutional GAN on MNIST with Label Smoothing PyTorch TensorFlow

  • Convolutional Wasserstein GAN on MNIST PyTorch

  • "Deep Convolutional GAN" (DCGAN) on Cats and Dogs Images PyTorch

  • "Deep Convolutional GAN" (DCGAN) on CelebA Face Images PyTorch

Graph Neural Networks (GNNs)

  • Most Basic Graph Neural Network with Gaussian Filter on MNIST PyTorch

  • Basic Graph Neural Network with Edge Prediction on MNIST PyTorch

  • Basic Graph Neural Network with Spectral Graph Convolution on MNIST PyTorch

Recurrent Neural Networks (RNNs)

Many-to-one: Sentiment Analysis / Classification

  • A simple single-layer RNN (IMDB) PyTorch

  • A simple single-layer RNN with packed sequences to ignore padding characters (IMDB) PyTorch

  • RNN with LSTM cells (IMDB) PyTorch

  • RNN with LSTM cells (IMDB) and pre-trained GloVe word vectors PyTorch

  • RNN with LSTM cells and Own Dataset in CSV Format (IMDB) PyTorch

  • RNN with GRU cells (IMDB) PyTorch

  • Multilayer bi-directional RNN (IMDB) PyTorch

  • Bidirectional Multi-layer RNN with LSTM with Own Dataset in CSV Format (AG News) PyTorch

Many-to-Many / Sequence-to-Sequence

  • A simple character RNN to generate new text (Charles Dickens) PyTorch

Ordinal Regression

  • Ordinal Regression CNN -- CORAL w. ResNet34 on AFAD-Lite PyTorch

  • Ordinal Regression CNN -- Niu et al. 2016 w. ResNet34 on AFAD-Lite PyTorch

  • Ordinal Regression CNN -- Beckham and Pal 2016 w. ResNet34 on AFAD-Lite PyTorch

Tips and Tricks

  • Cyclical Learning Rate PyTorch

  • Annealing with Increasing the Batch Size (w. CIFAR-10 & AlexNet) PyTorch

  • Gradient Clipping (w. MLP on MNIST) PyTorch

Transfer Learning

  • Transfer Learning Example (VGG16 pre-trained on ImageNet for Cifar-10) PyTorch

Visualization and Interpretation

  • Vanilla Loss Gradient (wrt Inputs) Visualization (Based on a VGG16 Convolutional Neural Network for Kaggle's Cats and Dogs Images) PyTorch

  • Guided Backpropagation (Based on a VGG16 Convolutional Neural Network for Kaggle's Cats and Dogs Images) PyTorch

PyTorch Workflows and Mechanics

PyTorch Lightning Examples

  • MLP in Lightning with TensorBoard -- continue training the last model PyTorch

  • MLP in Lightning with TensorBoard -- checkpointing best model PyTorch

Custom Datasets

  • Custom Data Loader Example for PNG Files PyTorch

  • Using PyTorch Dataset Loading Utilities for Custom Datasets -- CSV files converted to HDF5 PyTorch

  • Using PyTorch Dataset Loading Utilities for Custom Datasets -- Face Images from CelebA PyTorch

  • Using PyTorch Dataset Loading Utilities for Custom Datasets -- Drawings from Quickdraw PyTorch

  • Using PyTorch Dataset Loading Utilities for Custom Datasets -- Drawings from the Street View House Number (SVHN) Dataset PyTorch

  • Using PyTorch Dataset Loading Utilities for Custom Datasets -- Asian Face Dataset (AFAD) PyTorch

  • Using PyTorch Dataset Loading Utilities for Custom Datasets -- Dating Historical Color Images PyTorch

  • Using PyTorch Dataset Loading Utilities for Custom Datasets -- Fashion MNIST PyTorch

Training and Preprocessing

  • Generating Validation Set Splits PyTorch

  • Dataloading with Pinned Memory PyTorch

  • Standardizing Images PyTorch

  • Image Transformation Examples PyTorch

  • Char-RNN with Own Text File PyTorch

  • Sentiment Classification RNN with Own CSV File PyTorch

Improving Memory Efficiency

  • Gradient Checkpointing Demo (Network-in-Network trained on CIFAR-10) PyTorch

Parallel Computing

  • Using Multiple GPUs with DataParallel -- VGG-16 Gender Classifier on CelebA PyTorch

  • Distribute a Model Across Multiple GPUs with Pipeline Parallelism (VGG-16 Example) PyTorch

Other

  • PyTorch with and without Deterministic Behavior -- Runtime Benchmark PyTorch

  • Sequential API and hooks PyTorch

  • Weight Sharing Within a Layer PyTorch

  • Plotting Live Training Performance in Jupyter Notebooks with just Matplotlib PyTorch

Autograd

  • Getting Gradients of an Intermediate Variable in PyTorch PyTorch

TensorFlow Workflows and Mechanics

Custom Datasets

  • Chunking an Image Dataset for Minibatch Training using NumPy NPZ Archives TensorFlow

  • Storing an Image Dataset for Minibatch Training using HDF5 TensorFlow

  • Using Input Pipelines to Read Data from TFRecords Files TensorFlow

  • Using Queue Runners to Feed Images Directly from Disk TensorFlow

  • Using TensorFlow's Dataset API TensorFlow

Training and Preprocessing

  • Saving and Loading Trained Models -- from TensorFlow Checkpoint Files and NumPy NPZ Archives TensorFlow

deeplearning-models's People

Contributors

adilzouitine avatar alexzhou1995 avatar imatiach-msft avatar javierlorenzod avatar niklaskeerl avatar optixlab avatar rasbt avatar vijayabhaskar96 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.