GithubHelp home page GithubHelp logo

gmoncrieff / hyper-iap Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 89.35 MB

Classification of alien invasive plants from hyperspectral data from point localities

License: Apache License 2.0

Python 76.57% Shell 0.13% Roff 23.30%
deep-learning hyperspectral-image-classification machine-learning pytorch remote-sensing

hyper-iap's Introduction


Detection of invasive plants using hyperspectral imagery

build codecov

Description

This package is intended for running deep learning classifiers on hyperspectral data for mapping invasive alien plants. Models are pretrained using self-supervision and/or noisy land cover label data and then fine-tuned using point labels.

Currently this package is under heavy development

Development roadmap

Current and planned data sources, models and module features are indicated below

Data sources

  • Sentinel 2
  • Hyperspectral

Models

Module features

  • Logging with W&B
  • Hyperparameter tuning with W&B sweeps

Getting started

First, install dependencies

# clone project   
git clone https://github.com/GMoncrieff/hyper-iap

# install project   
cd hyper-iap  
pip install -r requirements.txt

Next, train classifiers using the command line.

python train.py --model_class=vit.simpleVIT   

For a full list of command line options run

python train.py --help

Imports

You can also import individual modules and incorporate them into python workflows

from lightning import Trainer, seed_everything
from hyperiap.models.vit import simpleVIT
from hyperiap.datasets.xarray_module import XarrayDataModule
from hyperiap.litmodels.litclassifier import LitClassifier

xmod = XarrayDataModule()
model = LitClassifier(simpleVIT(data_config=xmod.config()))
trainer = Trainer(limit_train_batches=5, limit_val_batches=3, max_epochs=2)
trainer.fit(model, datamodule=xmod)
trainer.validate(datamodule=xmod)

Acknowledgements

The module builds on contributions and implementations from :

The land cover labels used from pre-training from

hyper-iap's People

Contributors

gmoncrieff avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fzuwq

hyper-iap's Issues

implement xarray data module for point data

Data module that allows point data to be read from xarray. Data from neighboring pixels must already be stacked into each pixel in the extraction and data prep process as neighbor data will not be available for each point at this stage

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.