Icon

Transfer learning for CNN Predictor for cats and dogs images - Deep Learning (freeze layer)

There has been no title set for this workflow's metadata.

Classifying Images of Cats and Dog with Transfer Learning - Training

This workflow reads images of cats and dogs, performs some simple preprocessing, and uses Transfer Learning (VGG16) to train the 3 top layers and evaluate a Convolutional Neural Network (CNN) that is able to distinguish cat images from dog images.

URL: Dataset Kaggle https://www.kaggle.com/c/dogs-vs-cats/data

Annotations and comments
  • Classifying Images of Cats and Dogs - Training This workflow reads images of cats and dogs, performs some image preprocessing, and uses Transfer Learning (VGG16) to train the 3 top layers and evaluate a Convolutional Neural Network (CNN) for image classification.
  • Define network architecture
  • Train, execute, and evalutate network
  • Read and preprocess images
  • IMPORTANT! To execute the workflow you need to download the training dataset from Kaggle and update the path in the List Files / Folders Node inside this metanode. The path should point to the unzipped folder including the images. https://www.kaggle.com/c/dogs-vs-cats/data
  • Filter superfluous columns
  • Read pretrained VGG16
  • Normalize between 0..1
  • Read images
  • Resize to 150x150
  • 3 neurons Softmax
  • 64 neurons ReLU
  • Drop Rate = 0.5
  • Flatten output to 8192 neurons
  • Only train 3 new layers
  • Apply the model on new data
  • Train the model for 5 epochs (Adam)
  • Select folder with with images
  • We only work with 4000 randomly selected images. You can adjust the number as desired.
  • First 12500 rows are cats, rest dogs.
  • Sort by path name.
  • Unify RowIDs
  • output >= 0.5 Cat output <0.5 Dog
  • Evaluate the model Accuracy (90%)

Nodes

Extensions

Links