Giter VIP home page Giter VIP logo

airobest's Introduction

AIROBEST

Repository for AIROBEST project

Getting started

Make sure to install all the requirements, run: pip install -r requirements.txt

The following instruction assumes your current directory is $PATH_TO_AIROBEST_RPOJECT/source/cnn

Data preprocessing

  • Specify paths to hyperspectral data and forest data in spreprocess.sh script, for more options, run: python preprocess.py -h
  • Run sbash spreprocess.sh to submit preprocessing job on Taito
  • This process will generate the following files and save them under ./data directory:
    • hyper_image.pt: hyperspectral image saved as pytorch Tensor. We use this instead of spectral format to increase GPU utilization.
    • hyperspectral_src_l2norm_along_channel.pt: tensor contains the corresponding norm of each pixel from hyperspectral image, norms are computed along color channel.
    • hyperspectral_tgt_normalized.pt: tensor of target labels, labels for regression tasks has been normalized to [0, 1] scale.
    • metadata.pt: dictionary contains information about the input data, such as class values for each classification task

Training

If you want to see real-time visualization, you must start visdom server first.

How to keep visom server running while waiting for submitted batch job to start?

  • Log in to taito using local forwarding: ssh -L 8097:127.0.0.1:8097 [email protected]
  • Open tmux session by running: tmux
  • cd to project folder: cd $path_to_project_folder/source/cnn
  • Start visdom server: bash server.sh
  • Now one can detach the tmux session and end the ssh session without interrupting visom server
  • To attach again to tmux session, ssh to remote server and run tmux attach

Training configurations:

  • hyper_data_path: path to hyperspectral image saved in preprocessing stage.
  • src_norm_multiplier: path to file contains pixel norm (corresponding to hyperspectral_src_l2norm_along_channel.pt file in preprocessing stage)
  • tgt_path: path to target label

For other options, run: python train.py -h for detailed explanation.

Visualization can be seen by opening http://localhost:8097/ from web browser. You first need to login on Taito with local forwarding: ssh -L 8097:127.0.0.1:8097 [email protected]

Project structure

  • preprocess.py: processes and prepares the data for neural network training.
  • train.py: constructs and builds the CNN models which are defined in models/model.py
  • input folder: contains the implementations of data loader, utility functions, and focal loss function
  • inference.py: runs the inference on test data
  • tools folder: includes code for working with hyperspectral data

airobest's People

Contributors

anphu7492 avatar cthai721 avatar eehal avatar jormalaaksonen avatar mottus avatar nghson avatar

Stargazers

 avatar  avatar  avatar

Watchers

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