GithubHelp home page GithubHelp logo

multimodalgraphemes's Introduction

Multimodal Learning for Handwritten Grapheme Classification

Description: This repository is a project that constituted a late submission to the BengaliAI Handwritten Grapheme Classification Challenge on Kaggle.


Competition description

Task formulation

You’re given the image of a handwritten Bengali grapheme and are challenged to separately classify three constituent elements in the image: grapheme root, vowel diacritics, and consonant diacritics.

Approach

What worked

  • Model: ResNet34 with three heads
  • Head configuration: Mish -> Conv2D -> BatchNorm -> Pooling layer -> Linear
  • Train with Cutmix (alpha=1) and Mixup (alpha=4) augmentations for more than 100 epochs, as these augmentations require a big number of epochs to converge.
  • Pooling layer: 0.5 * (AveragePooling + MaxPooling)
  • Dataset: 5-fold of uncropped images generated via stratified split using multilabel stratification from iterative_stratification.
  • Weights: 7-grapheme, 1-consonant, 2-vowel
  • AdamW and OneCycleWithWarmUp

What didn't work

  • SEResNext
  • RAdam and Over9000 optimizer
  • 3 different models instead of a single model with 3 heads
  • Postprocessing

References

I've gotten references for several tried techniques from multiple notebooks, but the main inspirations for the overall attempt:

multimodalgraphemes's People

Contributors

serteal avatar

Watchers

 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.