Giter Site home page Giter Site logo

cgiar-wheat-growth-stage-challenge's Introduction

CGIAR-Wheat-Growth-Stage-Challenge

Competition Link

The goal of this competition is to predict the wheat growth stage using images. There are 7 growth stages (from 1 to 7). There are 2 types of labels : Expert labels (reliable) and Normal labels (less reliable). The Test set was annotated by experts. So, to train my model, I only used Expert labeled data.

Methodology

Model/Architecture

  • I used EfficientNetB3 as a backbone.
  • I added a fully connected layer on top of it (512, 256, 1) with a dropout of 0.3.
  • I treated the problem as a regression problem. The chosen loss function is MSE.
  • The chosen optimizer is ADAM with default parameters.
  • Image size = (512, 120)
  • I used cosine annealing as a learning rate scheduler.

Data augmentation

  • RandomBrightnessContrast
  • MotionBlur/MedianBlur/GaussianBlur
  • Horizontal/Vertical Flip
  • ShiftScaleRotate

Training/Inference

I splitted the dataset into 5-Folds stratified with respect to 'Growth Stage'. For each split, a model was trained. For inference, we make a prediction using each one of the 5 models and then, we average them.

Packages

  • Pytorch Lightning 0.9.1rc3

Setup

  • Download Images.zip and Train.csv from the link above and extract Images.zip in a folder named 'Images'.
  • Run 'train_folds.py' to train the models.
  • Run 'submission_folds.py BEST_FOLD1_PATH BEST_FOLD2_PATH BEST_FOLD3_PATH BEST_FOLD4_PATH BEST_FOLD5_PATH' to create the submission file.
  • Submit.

Result

Private Leaderboard Score : 0.44 (RMSE)

cgiar-wheat-growth-stage-challenge's People

Contributors

hichemak 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.