Giter Club home page Giter Club logo

p2sharpen's Introduction

P2Sharpen

Code of P2Sharpen: A progressive pansharpening network with deep spectral transformation.

Running environment :

python=3.8, pytorch-gpu=1.7.1, matlab = 2018a.

Preparation:

  • Construct the train, validation, test dataset according to the Wald protocol.
  • Put the all the dataset in the root directory, namely TrainFolder, ValidFolder and TestFolder.
  • In each directory, there are four subdirectories, namely pan_label/ ms_label/ pan/ ms/
  • The images in each directory should correspond to each other.

To train :

  • The whole training process contains two part, STNet and P2Net.
  • Please run "transfertrain.py" to learn the spectral tranformation network(STNet).
  • TNet guides the optimization of P2Net, so ensuring the accuracy before the next step.
  • Please run "fusiontrain.py" to learn the progressive pansharpening network (P2Net).

To valid :

  • Use the functions in the file ".\Eval.py" or others to evalute the performance on valid dataset.
  • Pick out the best parameters and save it in path "./Model/P2Net/fusion.pth".

To test :

  • Run the "fusionpredict.py" to generate the pansharpening results.
  • Open the Matlab and run the file ".\Evalution\FusionEval.m".

p2sharpen's People

Contributors

baixuzx7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

p2sharpen's Issues

Figure and code inconsistency

Hello,thanks for your work! When I read your paper today, I found that the residual connection in the shallow feature network in your paper is inconsistent with that in the code. According to the figure, it should be ‘y = x + x_shallowfeature_3’.

数据集

您好,我看您论文训练的时候用到的图像数据很多,请问您制作这个数据集的参数是什么样的?数据集可以公开了吗?

ask you some questions

Hello, I would like to ask you some questions. The model does not process the landsat8 dataset. My current work is to use the model to process the landsat8 image, but the processing result I get is very poor. On this basis, I also want to "replace band B2 in landsat8 with night light data". How should I modify the model parameters? I hope to get your answer, thank you!

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.