Code Monkey home page Code Monkey logo

image-classification-transfer-learning's Introduction

Image-Classification-Transfer-Learning

Building ResNet152V2 Model for Image Classification with Small Dataset (95% accuracy)

Number of classes: 20 (Classes 0-19)

Classes = owl | galaxy | lightning | wine-bottle | t-shirt | waterfall | sword | school-bus | calculator | sheet-music | airplanes | lightbulb | skyscraper | mountain-bike | fireworks | computer-monitor | bear | grand-piano | kangaroo | laptop ]


Dataset Structure
Two folders:
Training: 1554 images
Test: 500 images

Images per class:

school-bus : 73
laptop : 100
t-shirt : 100
grand-piano : 70
waterfall : 70
galaxy : 56
mountain-bike : 57
sword : 77
wine-bottle : 76
owl : 95
fireworks : 75
calculator : 75
sheet-music : 59
lightbulb : 67
bear : 77
computer-monitor : 100
airplanes : 100
skyscraper : 70
lightning : 100
kangaroo : 57   

visualization of training data

image classification with transfer learning

Result

The accuracy of the training reached 99.5% in 50 epoch.
The accuracy of the test reached 95% that i submitted to kaggle.

result resnet152

CSV file for kaggle submission

predicted_class_indices=np.argmax(pred,axis=1)
labels = train_gen.class_indices
labels = dict((v,k) for k,v in labels.items())
predictions = [k for k in predicted_class_indices]

filenames=test_gen.filenames
FN=[]
for i in filenames:
  f = i[5:]
  FN.append(f)
 
results=pd.DataFrame({"Id":FN,
                      "Category":predictions})
results.to_csv("submission.csv",index=False)

image-classification-transfer-learning's People

Contributors

miladfa7 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.