Giter Site home page Giter Site logo

hydra-nwpu's Introduction

Hydra: an Ensemble of Convolutional Neural Networks for Geospatial Land Classification

This repository releases the code for the experimental evaluation of the Hydra framework using the NWPU-RESISC45 dataset. If you are looking for code and models for the functional Map of the World (fMoW) challenge, please go to the following repository: https://github.com/maups/hydra-fmow/

Authors

  • Rodrigo Minetto - Universidade Tecnológica Federal do Paraná (UTFPR)
  • Mauricio Pamplona Segundo - Universidade Federal da Bahia (UFBA)
  • Sudeep Sarkar - University of South Florida (USF)

This research was conducted while the authors were at the Computer Vision and Pattern Recognition Group, USF.

NWPU-RESISC45 description

The NWPU-RESISC45 dataset has 45 classes, with 700 images per class, each one with resolution of 256×256 pixels, totaling 31,500 images. Classes may represent different things, such as land use (e.g. basketball court, baseball diamond and tennis court), objects (e.g. airplane and ship) and vegetation (e.g. desert, forest and wetland). This dataset does not provide satellite metadata.

Hydra description

Hydra is a framework that creates ensembles of Convolutional Neural Networks (CNN) for land use classification in satellite images. The idea behind Hydra is to create an initial CNN that is coarsely optimized but provides a good starting pointing for further optimization, which will serve as the Hydra's body. Then, the obtained weights are fine tuned multiple times to form an ensemble of CNNs that represent the Hydra's heads. The Hydra framework tackles one of the most common problem in multiclass classification, which is the existence of several local minima that prioritize some classes over others and the eventual absence of a global minimum within the classifier search space. The ensemble ends up expanding this space by combining multiple classifiers that converged to local minima and reaches a better global approximation. To stimulate convergence to different end points, we exploit different strategies, such as using online data augmentation, variations in the size of the region of interest, and different image formats when available. The classifiers employed in our Hydra framework are variations of the fMoW baseline code.

Requirements

  • Keras with TensorFlow backend

Instructions

Download the NWPU-RESISC45 dataset and uncompress it. To run our framework, execute the following sequence of commands:

$ git clone https://github.com/maups/hydra-nwpu
$ cd hydra-nwpu
$ ./random_split_10.sh /path_to/NWPU-RESISC45/
$ python runBaseline.py --prepare True
$ python runBaseline.py --train True --num_gpus 4 --num_epochs 16 --batch_size 64
$ python runBaseline.py --test True --num_gpus 4

If you want to use 20% of the images for training, use the random_split_20.sh script instead and uncomment the line 48 of the file params.py.

hydra-nwpu's People

Contributors

maups avatar

Watchers

James Cloos 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.