Skip to content

Mini-Project-1-Hybrid-Image/Mini-Project-3---Scene-Recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-Project-3---Scene-Recognition

Introduction

In this project , we are building a scene recognition model.Scene recognition is one of
the classical computer vision problems in which the model tries to classify images of
different scenes.
Using three different approaches to solve this problem which are :
1. Tiny image with KNN classifier.
2. Bag of words with KNN classifier.
3. Bag of words with one vs.all linear SVM.

Results

  ● After tuning parameters that's what we got :
  1) Pixel per cell =8 ,cells per block =2
  2) K Means with following parameters :
  MiniBatchKMeans(n_clusters=vocab_size, random_state=0,
  max_iter=300,batch_size=1500).fit(All_features).cluster_centers_
  3) Linear SVC with c=1.0 (a lot of regularization values between .1
  :5000 )
  4) K=1 is the best one worked for us after trying k=1,2,3
  5) Vocab size =200 best one out of 8 different sizes as below

Performance

1.Tiny images with knn 
  Accuracy :23.867%
  Comment : that is no surprising as we lost most of the information when resizing each image to small size 

confusion_matrix

2.Bag of words with 1nn
  Accuracy :  53.733%
  Comment : Much better than tiny image which not surprising as with bag of words we now have more sophisticated and representative representation 

confusion_matrix

3.Bag of words with Multiclass LinearSVM 
   Accuracy :66.867% ~67%
   Comment : Linear svm gives best accuracy between them all 

confusion_matrix

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages