Skip to content

Transfer learning experiments with Resnet, Inception-V3 and VGG. Part of Udacity nanodegree program.

Notifications You must be signed in to change notification settings

lfiaschi/udacity-transfer-learning-lab

Repository files navigation

Transfer Learning Lab with VGG, Inception and ResNet

Udacity - Self-Driving Car NanoDegree

In this lab, I used Keras to explore feature extraction with the VGG, Inception and ResNet architectures. The models used were trained for days or weeks on the ImageNet dataset. Thus, the weights encapsulate higher-level features learned from training on thousands of classes.

Bottleneck features were precomputed bottleneck features for each (network, dataset) pair. Dataset are:

  • cifar dataset
  • german traffic sign

Because the base network weights are frozen during feature extraction, the output for an image will always be the same. Thus, once the image has already been passed once through the network we can cache and reuse the output.

The files are encoded as such:

  • {network}_{dataset}_bottleneck_features_train.p
  • {network}_{dataset}_bottleneck_features_validation.p

network can be one of 'vgg', 'inception', or 'resnet' dataset can be on of 'cifar10' or 'traffic'

These can be downloaded from the following links:

  • [vgg]
  • [resnet]
  • [inception]

The file main.py contains my implementation of training and testing on the bottleneck features. The file Baseline CIFAR.ipynb contains a baseline on the CIFAR dataset using Lenet implented in Keras

About

Transfer learning experiments with Resnet, Inception-V3 and VGG. Part of Udacity nanodegree program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published