Skip to content

Extracting Hyperspectral Information from Optical Blurr Using Patch Diffusion

License

DeanHazineh/DiffVis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grayscale to Hyperspectral at Any Resolution Using A Phase-Only Lens

This page is in development. Files will be added and modified. This is an early access.

Project Page ArXiv Paper

Overview

This work explores the inverse problem of reconstructing a hyperspectral image from a single, blurry grayscale measurement captured on a filterless photosensor. Although challenging and previously unsolved, this task is possible because a diffractive lens can encode the hyperspectral information via chromatic abberration. In our work, we introduce the first model to date that is capable of producing high-quality reconstructions and reverses the forward measurement shown below.

The Forward Measurement Model

forward_model

Our solution is based on a novel "divide-and-conquer" approach to restoration. We train a generative hyperspectral diffusion model that processes small 64x64 patches in the measurement and produces a hyperspectral patch estimate. We denoise many patches together in parallel and synchronize their estimates using guidance as the denoising process unfolds to obtain the full-size reconstruction. This strategy allows us to train our diffusion model on patches from limited real-world datasets and then deploy our model to reconstruct measurements that are captured at any resolution. A depiction of our algorithm is shown below.

Solving the Inverse Problem with guided, patch diffusion

forward_model

Denoising Gif

Code Installation

Use this code by cloning the repository and installing it locally via:
git clone https://github.com/DeanHazineh/DiffVis.git
pip install -e .

This will automatically install all dependencies. You will need to install torch manually if you have not and configure it appropriately to use your GPU. Note that xformers is a requirement when loading this projects pre-trained model checkpoints. If xformers is not installed, it will silently fail by defaulting to uninitialzed attention layers!

About

Extracting Hyperspectral Information from Optical Blurr Using Patch Diffusion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages