项目作者: ArmandoDomi

项目描述 :
Celebrity classification with transfer learning using inceptionV3
高级语言: Python
项目地址: git://github.com/ArmandoDomi/Celebrity-Classification.git
创建时间: 2020-02-14T18:59:04Z
项目社区:https://github.com/ArmandoDomi/Celebrity-Classification

开源协议:MIT License

下载


Celebrity-Classification

Celebrity classification using Convolutional Neural Networks

Dataset

Used dataset from VGGFace2, you can find it here



I choosed 5 classes from the dataset with id 51-55

The dataset of 5 classes contains 1808 images totaly



The data was split in the following way:

1. 80% of data for training

2. 10% of data for testing

3. 10% of data for validation

Transfer Learning

We don’t train an entire Convolutional Network from scratch. We freeze some of the ConvNet layers and only fine-tune some higher-level portion of the network.

So we freeze all layers from InceptionV3 except the last 63 layer
Image of Transfer Learning

InceptionV3

This is the architecture of inceptionv3. I added two more layers. One GlobalAveragePooling and one Dense layer with 1024 neurons.
Image of inceptionv3 network

Training

Firstly we have freezed all the layers of the network except the classifier and we trained the model for 50 epochs.Then we have unfreezed the last 63 layers of the network and trained the network for 50 epochs.



The accuracy of the model during the training


Image of accuracy


The loss of the model during the training


Image of accuracy

Results

The accuracy of the model at test set is: 0.982















































Classification Report
precision recall f1-score support
Adam_Gilchrist 1.00 0.94 0.97 32
Adam_Housley 0.95 1.00 0.98 21
Adam_Irigoyen 1.00 1.00 1.00 38
Adam_Johnson 1.00 0.98 0.99 43
Adam_Lallana 0.96 1.00 0.98 45