Giter VIP home page Giter VIP logo

ml-hackathon-techkriti-2021's Introduction

ML-Hackathon-Techkriti-2021

Techkriti is an annual techfest conducted by IIT Kanpur. As a part of the fest, competitions are conducted is various themes like Enterprenurial , Technology , Miscellaneous. This year (March 14th, 2021) ML Hackathon is conducted as a part of Technology division.

I got first position (Team Name : Aine) in ML Hackathon and this repo gives details of my approach to problem statement.

Check results here

Visit official website

Problem Statement

Classify the images into following 6 categories

  • buildings
  • forest
  • glacier
  • mountain
  • sea
  • street

More details here

Dataset

Dataset is uploaded in Kaggle

Data Distribution

image

  • Total images in training data : 14034
  • Total Images in Validation data : 3000
  • Total images in test data : 7301

Preprocessing Data

  • Height, Width = 150, 150
  • Augmentations are added to images using tf.keras.preprocessing.image.ImageDataGenerator
    • random rotation
    • horizontal flip
    • width shift range
    • shear range
    • zoom range

Training

  • Metric : Accuracy
  • GPU used : NVIDIA TESLA P100
  • Framework : TensorFlow
  • Pretrained models present in tf.keras.applications are used.
  • Metric : Categorical Accuracy
  • Loss : Categorical CrossEntropy
  • Optimizer : Adam
  • Callbacks : Model checkpoint , Reduce RON Plateau , Early Stopping

Results

    pretrained = tf.keras.applications.DenseNet201(include_top=False,
                                                      weights='imagenet',
                                                      pooling="avg",
                                                      input_shape=[HEIGHT,WIDTH, 3])
    
    x = pretrained.output
    x = tf.keras.layers.Dropout(0.3) (x)
    x = tf.keras.layers.Dense(128) (x)
    x = tf.keras.layers.LeakyReLU(alpha=0.2) (x)
    x = tf.keras.layers.GaussianDropout(0.4) (x)
    outputs = tf.keras.layers.Dense(NUM_CLASSES,activation="softmax", dtype='float32')(x)
        
    model = tf.keras.Model(pretrained.input, outputs)

Submission

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.