Transfer Learning using Keras

Inception-V3 Google Research

What is Transfer Learning?

signup for my newsletter

Why Transfer Learning?

My Experiences:

"DON'T TRY TO BE AN HERO" ~Andrej Karapathy

How Transfer Learning helps ?

Inception V3 Google Research

Simple implementation using Keras:

1. New dataset is small and similar to original dataset:

for layer in model.layers:
layer.trainable = False
#Now we will be training only the classifiers (FC layers)

2. New dataset is large and similar to the original dataset

for layer in model.layers:
layer.trainable = True
#The default is already set to True. I have mentioned it here to make things clear.
for layer in model.layers[:5]:
layer.trainable = False.
# Here I am freezing the first 5 layers

3. New dataset is small but very different from the original dataset

4. New dataset is large and very different from the original dataset.

References

Senior Data Scientist @FractalAI