Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to Use ResNet or VGGNet for image Classification

I am new to Deep Learning and was trying to implement ResNet and VGGNet architecture on my own dataset of binary classification between roads and grass.

When i use the pretrained ResNet or VGG model they dont classify the images as road and grass

I want to learn how to manually set the output classes
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Your problem falls into one of the transfer learning approaches, which is using pre-trained model (e.g., ResNet and VGGNet) as a feature extractor.

This is because your dataset and the dataset used to train the pre-trained models are different. They were learned from the ImageNet dataset aimed to classify images into 1000 object categories. This means that you can’t apply every part of the pre-trained model.

The CNN pre-trained model can be split into 2 main parts:

  1. feature extractor: groups of ConV and Pooling layer
  2. classifier: fully connected NN

In your case, you can use only their feature extractor part by freezing or fine-tuning them, and you require to add your own classifier to fit with your classification task.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading