Git Product home page Git Product logo

image-restoration's Introduction

image-restoration

A simple model to restore images from noise - and in the future from "out of focus" effects.

v0 Model Architecture

A simple Autoencoder with 3 layers of convolution followed by 3 layers of deconvolution. Image dimensions flow is as follows:

  1. pre: 3xHxW -> 3x16x16
  2. con-1: 3x16x16 -> 64x16x16
  3. con-2: 64x16x16 -> 128x8x18
  4. con-3: 128x8x18 -> 256x4x4
  5. decon-1: 256x4x4 -> 128x8x18
  6. decon-2: 128x8x18 -> 64x16x16
  7. decon-3: 64x16x16 -> 3x16x16

Note 1: We have an additional 4th batching dimension.

Note 2: For now we don't resize the image back to its original size since the output of this lightweight network is a small image.

Training Results

Since we didn't use benchmark images and noise setting/levels, the metrics can't be directly compared. Nevertheless, we can see that the v0 model is still behind other denoising techniques/models (PSNR scores between ~25 and ~34). We'll tackle this by adding skip connections between the convolution layer and its adjacent deconvolution layer (inspired by Xiao-Jiao Mao et al., 2016).

Another issue with the current model is overfitting, which we will attempt to tackle with dropout layers.

Moving forward we should include SSIM evaluation and standard benchmark setup for proper comparison.

Graphs

Loss PSNR SSIM

Denoising example

Noisy

Noisy Image

Denoised

Denoised Image

Original

Original Image

image-restoration's People

Contributors

mohannadbanayosi avatar

Watchers

 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.