Giter Club home page Giter Club logo

pansharpening-cnn-python-version's Introduction

pansharpening-cnn-python-version

Target-adaptive CNN-based pansharpening is an advanced version of pansharpening method PNN with residual learning, different loss and a target-adaptive phase.

This the python version of the code, Go to Matlab version for Matlab.

Team members

Giuseppe Scarpa ([email protected]); Sergio Vitale (contact person, [email protected]); Davide Cozzolino ([email protected]).

License

Copyright (c) 2018 Image Processing Research Group of University Federico II of Naples ('GRIP-UNINA').

All rights reserved. This work should only be used for nonprofit purposes.

By downloading and/or using any of these files, you implicitly agree to all the terms of the license, as specified in the document LICENSE.txt (included in this directory)

Prerequisits

This code is written for Python2.7 and uses Theano library. The list of all requirements is in requirements.txt.

The command to install the requirements is:

cat requirements.txt | xargs -n 1 -L 1 pip2 install

Optional requirements for using gpu:

  • cuda = 8
  • cudnn = 5

Usage

  • set all paramaters in config_testing_<SENSOR>.xml:

    • sensor: GeoEye1, IKONOS, WV2
    • mode: full to high resolution pansharpening (PAN scale); reduce to low resolution pansharening (MS scale).
    • fine tuning: set epochs 0 to not fine tune; set epochs n to do n epochs of fine tuning.
    • paths: path of pretrained network; path of image to test; path of output image; path of fine tuned network.
  • run test without gpu:

python PNN_testing.py -s <SENSOR>
  • run test with gpu:
PATH=<CUDAPATH>:$PATH python PNN_testing.py -g -s <SENSOR>
  • Output:
    • result: ./outputs/<SENSOR>/output.mat;
    • (eventual) fine-tuned network: ./outputs/<SENSOR>/FT_network/PNN_model.mat.

Where <SENSOR> can be: 'GE1','IK','WV2'; and <CUDAPATH> is your bin local path of cuda.

pansharpening-cnn-python-version's People

Contributors

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