Code Monkey home page Code Monkey logo

dip-hyperkite's Introduction

PWC PWC PWC

DIP-HyperKite: Hyperspectral Pansharpening Based on Improved Deep Image Prior and Residual Reconstruction

Wele Gedara Chaminda Bandara, Jeya Maria Jose Valanarasu, Vishal M. Patel

[Paper Link] (Preprint submitted to IEEE Transactions on Geoscience and Remote Sensing)

Abstract

Hyperspectral pansharpening aims to synthesize a low-resolution hyperspectral image (LR-HSI) with a registered panchromatic image (PAN) to generate an enhanced HSI with high spectral and spatial resolution. Recently proposed HS pansharpening methods have obtained remarkable results using deep convolutional networks (ConvNets), which typically consist of three steps: (1) up-sampling the LR-HSI, (2) predicting the residual image via a ConvNet, and (3) obtaining the final fused HSI by adding the outputs from first and second steps. Recent methods have leveraged Deep Image Prior (DIP) to up-sample the LR-HSI due to its excellent ability to preserve both spatial and spectral information, without learning from large data sets. However, we observed that the quality of up-sampled HSIs can be further improved by introducing an additional spatial-domain constraint to the conventional spectral-domain energy function. We define our spatial-domain constraint as the $L_1$ distance between the predicted PAN image and the actual PAN image. To estimate the PAN image of the up-sampled HSI, we also propose a learnable spectral response function (SRF). Moreover, we noticed that the residual image between the up-sampled HSI and the reference HSI mainly consists of edge information and very fine structures. In order to accurately estimate fine information, we propose a novel over-complete network, called HyperKite, which focuses on learning high-level features by constraining the receptive from increasing in the deep layers.

Citation

@inproceedings{bandara2021hyperspectral,
title={Hyperspectral Pansharpening Based on Improved Deep Image Prior and Residual Reconstruction},
author={Bandara, Wele Gedara Chaminda and Valanarasu, Jeya Maria Jose and Patel, Vishal M},
journal={arXiv preprint arXiv:2107.02630},
year={2021}
} 

DIP-HyperKite Network

Proposed Spatial Loss Function for DIP Process

Proposed HyperKite Network for Residual Prediction

Downloading Datasets

In this paper, we used three publically available datasets and the link to each dataset is given below:

  1. Pavia Center Dataset: Click Here
  2. Botswana Dataset: Click Here
  3. Chikusei Dataset: Click Here

Once you downloaded the dataset in .mat format save them in respective folders: ./datasets/pavia_centre/, ./datasets/botswana/, and ./datasets/chikusei/.

Install Requirements

The requirements.txt file lists all Python libraries required for DIP-HyperKite. To install requirements first create a new conda environment and then install all required libraries using following commands.

conda create --name hyperkite

conda activate hyperkite

conda install --file requirements.txt

Generating LR-HSIs, PAN images, and Ref HSIs

Next, we generate LR-HSIs, PAN images, and Ref-HSIs required to train the pansharpening model using the famous Wald's protocol. For this, you simply needs to run the process_pavia.m, process_botswana.m, and process_chikusei.m files in the ./datasets/pavia_centre/, ./datasets/botswana/, and ./datasets/chikusei/, respectively.

Upsampling using DIP

To generate the up-sampled version of LR-HSIs, you need to run the following code. Please make sure to change the first few lines of the ./configs/config_dhp.json as you want. Basically you want to change the experiment_name and dataset you want to run. CUDA_VISIBLE_DEVICES=0 python train_dhp.py --config ./configs/config_dhp.json

You need to repreat this for all the three datasets.

Training the HyperKite

Once you generated the DIP upsampled HSIs, now you are ready to train the HyperKite network. You can train the HyperKite network by executing the following command. CUDA_VISIBLE_DEVICES=0 python train.py --config ./configs/config.json

Visualing the Results via Tensorboard

All the results will be saved in ./Experiments/ folder. You can visualize all the performance metrics by executing the following command. tensorboard --logdir ./Experiments/Vxx/pavia_center/

Qaulitative Results on Pavia Center Dataset

Qaulitative Results on Botswana Dataset

Qaulitative Results on Chikusei Dataset

dip-hyperkite's People

Contributors

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