The Forward Measurement 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
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!


