Examples
These examples walk from a first hyperspectral camera to full end-to-end design. Each corresponds to a script in the repository root.
Build & visualize
Set up the differentiable HSI camera and inspect how each DOE encodes the spectrum into its PSF.
| Example | Script | Description |
|---|---|---|
| Diffractive Surfaces | 0_hello_deeplens_hsi.py |
The three DOE encoders — phase maps and wavelength-dependent PSFs |
Train & design
Train the reconstruction network — against a fixed encoder, or jointly with the optics.
| Example | Script | Description |
|---|---|---|
| HSI Reconstruction | 1_hsi_reconstruction.py |
Train NAFNet to recover the spectral cube from a fixed-DOE capture |
| End-to-End Design | 2_end2end_hsi.py |
Jointly optimize the DOE and the reconstruction network |