Code Monkey home page Code Monkey logo

deep-hs-prior's Introduction

Deep Hyperspectral Prior: Single Image Denoising, Inpainting, Super-Resolution

image preview

Supplementary code to the paper O Sidorov, JY Hardeberg. Deep Hyperspectral Prior: Denoising, Inpainting, Super-Resolution (Submitted to ICIP 2019).

Get started

The implementation is based on original Deep Image Prior code by Dmitry Ulyanov.

The framework was modified to process hyperspectral data using 2D or 3D convolutions:

image framework

Requirements

  • python = 3.6
  • pytorch = 0.4
  • numpy
  • scipy
  • matplotlib
  • scikit-image
  • jupyter

Prepare the data

  • Input and output hyperspectral data is contained in *.mat files.
  • Specify a path to the file and name of the variable to read.
    For example, if data is contained in variable image:
    file_name  = 'data/inpainting/inpainting192.mat'
    mat = scipy.io.loadmat(file_name)
    img_np = mat["image"]
    
  • Use custom code or one of the *.m files located at data/%task%/ to generate *.mat file.

Run the code

  • Follow one of the proposed notebook files to get the results.
    * 2D versions tend to demonstrate better accuracy.
  • Try to modify parameters. Have fun.


Some results

Denoising:

image noise

Super-Resolution:

image sr

Inpainting:

image_inpainting



Please, kindly cite the paper if you use the code!

deep-hs-prior's People

Contributors

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