apolmig / Notebooks

Machine learning notebooks in different subjects optimized to run in google collaboratory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notebooks

Training pix2pix Colab

This notebook shows a simple pipeline for training pix2pix on a simple dataset.

One Place Colab

This notebook shows how to train, test then deploy models in the browser directly from one notebook. We use a simple XOR example to prove this simple concept.

TPU vs GPU Colab

Google recently allowed training on TPUs for free on colab. This notebook explains how to enable TPU training. Also, it reports some benchmarks using mnist dataset by comparing TPU and GPU performance.

Keras Custom Data Generator Colab

This notebook shows to create a custom data genertor in keras.

Eager Execution and Gradient Colab

As we know that TenosrFlow works with static graphs. So, first you have to create the graph then execute it later. This makes debugging a bit complicated. With Eager Execution you can now evalute operations directly without creating a session.

Eager Execution Enabled Colab

In this notebook I explain different concepts in eager execution. I go over variables, ops, gradients, custom gradients, callbacks, metrics and creating models with tf.keras and saving/restoring them.

Sketcher Colab

Create a simple app to recognize 100 drawings from the quickdraw dataset. A simple CNN model is created and served to deoploy in the browser to create a sketch recognizer app.

QuickDraw10 Colab

In this notebook we provide QuickDraw10 as an alternative for MNIST. A script is provided to download and load a preprocessed dataset for 10 classes with training and testing split. Also, a simple CNN model is implemented for training and testing.

Autoencoders Colab

Autoencoders consists of two structures: the encoder and the decoder. The encoder network downsamples the data into lower dimensions and the decoder network reconstructs the original data from the lower dimension representation. The lower dimension representation is usually called latent space representation.

Weight Transfer Colab

In this tutorial we explain how to transfer weights from a static graph model built with TensorFlow to a dynamic graph built with Keras. We will first train a model using Tensorflow then we will create the same model in keras and transfer the trained weights between the two models.

BigGan Colab

Create some cool gifs by interpolation in the latent space of the BigGan model. The model is imported from tensorflow hub.

BigGanEx Colab

In this notebook I give a basic introduction to bigGans. I also, how to interpolate between z-vector values. Moreover, I show the results of multiple experiments I made in the latent space of BigGans.

Mask R-CNN Colab

In this notebook a pretrained Mask R-CNN model is used to predict the bounding box and the segmentation mask of objects. I used this notebook to create the dataset for training the pix2pix model.

QuickDraw Strokes Colab

A notebook exploring the drawing data of quickdraw. I also illustrate how to make a cool animation of the drawing process in colab.

U-Net Colab

The U-Net model is a simple fully convolutional neural network that is used for binary segmentation i.e foreground and background pixel-wise classification. In this notebook we use it to segment cats and dogs from arbitrary images.

Localizer Colab

A simple CNN with a regression branch to predict bounding box parameters. The model is trained on a dataset of dogs and cats with bounding box annotations around the head of the pets.

About

Machine learning notebooks in different subjects optimized to run in google collaboratory

License:MIT License


Languages

Language:Jupyter Notebook 100.0%