Giter Site home page Giter Site logo

pavelsyomin / crop-classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marccoru/elects

1.0 0.0 1.0 22.72 MB

Master's Thesis on Crop Classification with Remote Sensing

License: MIT License

Shell 0.01% Python 1.48% Jupyter Notebook 97.79% Dockerfile 0.01% TeX 0.73%

crop-classification's Introduction

Application of Machine Learning for Early Crop Classification Using Satellite Imagery

My Master's thesis on HSE MDS program.

Based on this paper:

Marc Rußwurm, Nicolas Courty, Remi Emonet, Sebastien Lefévre, Devis Tuia, and Romain Tavenard (2023). End-to-End Learned Early Classification of Time Series for In-Season Crop Type Mapping. ISPRS Journal of Photogrammetry and Remote Sensing. 196. 445-456. https://doi.org/10.1016/j.isprsjprs.2022.12.016

Dependencies

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Getting Started

Training, models comparison, inference, robustness check are in Crop Clasification notebook.

Slides

Thesis in PDF

CLI (may not work for some datasets)

Look at the code of train.py to see all the options. Russian dataset is private.

Monitor training visally (optional)

Start visdom server for visual training progress.

❯ visdom
Checking for scripts.
It's Alive!
INFO:root:Application Started
You can navigate to http://localhost:8097

Navigate to http://localhost:8097/ in the browser of your choice.

Start training loop

To start the training loop, run the following command.

❯ python train.py
Setting up a new session...
epoch 100: trainloss 1.70, testloss 1.97, accuracy 0.87, earliness 0.48. classification loss 7.43, earliness reward 3.48: 100%|███| 100/100 [06:34<00:00,  3.95s/it]

The BavarianCrops dataset is automatically downloaded. Additional options (e.g., --alpha, --epsilon, --batchsize) are available with python train.py --help.

Other examples

python train.py --dataroot /data/sustainbench --dataset ghana
python train.py --dataroot /data/sustainbench --dataset southsudan --epochs 500

Docker

It is also possible to install dependencies in a docker environment

docker build -t elects .

and run the training script

docker run elects python train.py

crop-classification's People

Contributors

pavelsyomin avatar marccoru avatar

Stargazers

 avatar

Forkers

mhmohassan

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.