Giter VIP home page Giter VIP logo

kaggle-pneumothorax's Introduction

Top 4% solution (50/1475) by AlexeyK, Wayfarer, and Kudaibergen R

The goal of the competition was to develop a model to classify (and if present, segment) pneumothorax (colapsed lungs) from a set of chest radiographic images.

The model is an ensemble of 5 folds of (1) Unet++ with EfficientNetB4 encoder on 512x512 images (in Keras) and (2) Unet with ResNet34 encoder on 1024x1024 images (Pytorch).

(1) Keras model was progressively trained from 256x256 to 512x512 size (due to limitations of Kaggle kernels upscaling to 1024x1024 was not feasible)

  • 256x256, trained from zero for 70 epochs, batch_size=16 (no grad. accum.), init_lr=1e-3
  • 512x512, initialize by 256x256 model weights, trained for 16 epochs (to fit in 9hrs training time on Kaggle kernel), batch_size=4, grad_accum=4, , init_lr=1e-3
  • 512x512, initialize by previous 512x512 model weights, trained for 16 epochs, batch_size=4, grad_accum=4, init_lr=1e-4
  • 512x512, initialize by previous 512x512 model weights, trained for 16 epochs, batch_size=4, grad_accum=4, init_lr=3e-5

(2) Pytorch model was progressively trained from the 512x512 image size to the 1024x1024 image size.

  • 512x512, trained from the "imagenet" weights
    num_epochs = 50
    accumulation_steps = 2
    batch_size = 16
    learning_rate = 5e-4
    optimizer = Adam()
    scheduler = ReduceLROnPlateau(optimizer, mode="min", patience=3, verbose=True)
    loss = FocalLoss() + DiceLoss()
    
  • 1024x1024, trained from the 512x512 weights
    num_epochs = 50
    accumulation_steps = 3
    batch_size = 10
    learning_rate = 5e-4
    optimizer = Adam()
    scheduler = ReduceLROnPlateau(optimizer, mode="min", patience=3, verbose=True)
    loss = FocalLoss() + DiceLoss()
    

kaggle-pneumothorax's People

Contributors

akuritsyn avatar jovenwayfarer avatar

Stargazers

Mohammed Rizin avatar  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.