Git Product home page Git Product logo

demo_dffn_for_tgrs2018's Introduction

Demo_DFFN

The code implementation of our paper "Hyperspectral Image Classification With Deep Feature Fusion Network", IEEE Trans. Geosci. Remote Sens, 2018.

If you use this code, please kindly cite our paper:

@article{song2018hyperspectral,

title={Hyperspectral image classification with deep feature fusion network},

author={Song, Weiwei and Li, Shutao and Fang, Leyuan and Lu, Ting},

journal={IEEE Transactions on Geoscience and Remote Sensing},

volume={56},

number={6},

pages={3173--3184},

year={2018},

publisher={IEEE}

}

This code is tested on the Ubuntu 16.04 system and caffe framework. Before running this code, you should correctly install ubuntu system and caffe framework. For caffe installation, you can refer to this guildeline "http://caffe.berkeleyvision.org/installation.html". Here, we assume the installation location of caffe is : ./Demo_DFFN/caffe-master. In addition, you should also download the corresponding hyperspectral data sets and put them into folder "./Demo_DFFN/datasets/".

After correctly installing ubuntu and caffe, you can run this code by the following procedures. For the convenience, we take the Indian Pines image as a example. For the University of Pavia and Salinas images, please make some changes referring to codes.

(1) Opening the matlab and changing the current path to the unzipped path, running the "generating_data.m" to generate the training and test samples, which are saved in the ./samples/indian_pines. Noteworthily, the format of samples is the hdf5 which is efficent for the caffe input. Here, we have generated these samples for you;

(2) Opening the terminal and changing the current path to the unzipped path, then running this script: "sh train_DFFN.sh >& info/train_indian_pines.log". This script executes the training of DFFN and generate the corresponding training log file;

(3) After training, running the following script to test network in the terminal same as (2): "sh test_DFFN.sh >& info/test_indian_pines.log". This script executes the test of DFFN and generate the corresponding test log file;

(4) running the "extract_prob.m" in matlab. This script is used to extract probability from the "test_indian_pines.log";

(5) running the "calculating_result.m" to calculate the matrics (OA, AA, Kappa, CA) and draw classification map.

If you have any questions, don't hesitate to contact me: Email: [email protected]

demo_dffn_for_tgrs2018's People

Contributors

weiweisong415 avatar

Stargazers

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