Deep Learning

Test and deploy containerized PyTorch models to Heroku

You will learn how to containerize the Flask API and deploy it to Heroku as a Docker container. You will also learn how to set up a simple CI/CD pipeline to automatically test and deploy the containerized application with every change to your model.

Testing a PyTorch machine learning model with pytest and CircleCI

In this tutorial, you will learn how to use PyTorch's torchvision library to build an image classification model and expose the functionality as a REST API using Flask.

Using Weighted Random Sampler in PyTorch

Sometimes there are scenarios where you have way lesser number of samples for some of the classes where as other classes have lots of samples. In such a scenario, you don’t want a training batch to be contain samples just from a few of the classes with lots of samples.

Handling corrupted data in Pytorch Dataloader

Recently, while working on a video dataset, I noticed that some of the videos contained a few corrupted frames. While running the training, my dataloader used to return an incorrect shaped tensor since it was not able to read the corrupted frame.

Tabular Synthetic Data Generation using CTGAN

In this post we will talk about generating synthetic data from tabular data using Generative adversarial networks(GANs). We will be using the default implementation of CTGAN [1] model. Introduction In the last post on GANs we saw how to generate synthetic data on Synthea dataset.

Covid-19 Diagnosis using Radiography Images

In this notebook, we will try to classify images from the Covid-19 Radiography Dataset[1] using a pre-trained ResNet-18 network. We will be using the PyTorch library for building our network.

Literature Survey: Human Action Recognition

Over the last couple of months, I have been going through a lot of literature about human action recognition using computer vision. In this post, I will share a brief survey of Human Action Recognition.

Generating Tabular Synthetic Data Using GANs

In this post, we will see how to generate tabular synthetic data using Generative adversarial networks(GANs). The goal is to generate synthetic data that is similar to the actual data in terms of statistics and demographics.

Implementing YOLOV2 from scratch using Tensorflow 2.0

In this notebook I am going to re-implement YOLOV2 as described in the paper YOLO9000: Better, Faster, Stronger. The goal is to replicate the model as described in the paper and train it on the VOC 2012 dataset.

Using Custom Building Blocks in TensorFlow 2.0

Custom Data Generator, Layer, Loss function and Learning Rate Scheduler In this post, I will demonstrate how you can use custom building blocks for your deep learning model. Specifically, we will see how to use custom data generators, custom Keras layer, custom loss function, and a custom learning rate scheduler.