Giter Site home page Giter Site logo

ngthanhtin / deforestation_segmentation Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 407 KB

Deforestation Segmentation

Home Page: https://datameka.com/competition/632c46a4-9c05-4911-a8c2-08226d2fb4e4?tabIndex=7

Python 99.60% Shell 0.40%
deforestation ensemble segmentation tta unet nfnet forestnet

deforestation_segmentation's Introduction

Indonesia Deforestation Segmentation

0
Top 1 solution for Indonesia Deforestation Segmentation Challenge. (0.379 Dice Score on LB)
1 2

Additional Data link

In this work, I use a public dataset and add it into the provided dataset. You can download the data here: ForestNet dataset
The additional data contain the mask as forest_loss_region.pkl files, so I processed to png files in eda2.py. After running this python code, you will get the png mask-image files as well as the csv file containing the annontation of them.

Pretrained Weights

You can find the pretrained model here: link

Model Used in the Challenge

I used UNetPlusPlus with NFNet backbone, and I used visible and infrared images as the inputs.

How to Run

For training:

python training.py

For validation:

python inference.py

Technique

[x] UNetPlusPlus (and other models you can find in my code)
[x] TTA (geometric and pixel level TTAs)
[x] Ensemble (In the scope of this competition, I did not use ensemble but I have included the ensemble code in my code)
[x] Models using auxilary information (latitude, longtitude, year)
[x] Use SegFormer to finetune
[x] Cutmix
[x] Mixup without hesitation
[x] KFold training

Further Improvement

[] Heavy TTA. (zoom-in, rotation more)
[x] Postprocess (Morphology, Connected Components)
[] Use SAM to finetune the model

Reference

Challenge website
ForestNet

Author

Thanh-Tin Nguyen

deforestation_segmentation's People

Stargazers

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