Giter Club home page Giter Club logo

transfer-learning's Introduction

What is Transfer Learning?

13elx7-dtqwyqs0izn9fng

The ability of a system to recognize and apply knowledge and skills learned in previous tasks to novel tasks (or new domains).

c8wh47frr3658meccaupra

Keras Pre-trained Models

Keras - High-level neural networks API, written in Python. Modular, minimalistic and easy to use. Runs on top of Theano, Tensorflow, CNTK.

Keras applications (Model Zoo) contains following pre-trained models:

Xception VGG16 VGG19 ResNet50 InceptionV3

Why to use pre-trained models ?

It is relatively rare to have a dataset of sufficient size. Instead, it is common to use pretrained ConvNet which was trained on a very large dataset (e.g. ImageNet, which contains 1.2 million images with 1000 categories), and then use the ConvNet either as an: Initialization or A fixed feature extractor for the task of interest. And training of model from scratch requires more time then training the dense layers of pre-trained models.

Steps for using pre-trained models:-

1. Feature extractor :

Remove the Fully Connected (Bottleneck layer) from pre-trained VGG16 model. Run images from Dataset through this truncated network to produce image vectors. Use these vectors to train another classifier to predict the labels in training set. Prediction is made with second classifier against image vector. f6a9qsd1qlkcoe-05hid_w

2. Fine Tuning :

We train the model partially. Remove the Fully Connected (Bottleneck layer) from pre-trained VGG16 model. Make weights of all convolution blocks non-trainable(frozen)except the last few convolutional layers. Attach our own classifier to the bottom. Train the resulting classifier with very low learning rate. Computationally more expensive but still cheaper than training network from scratch. More robust model. f6a9qsd1qlkcoe-05hid_w

Results

Input

iyg5vdsptusn4bydauzthq

Output

bottleneck_last_layer_viz

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.