D-Flat: A Differentiable Flat-Optics Framework for End-to-End Metasurface Visual Sensor Design

Dean S. Hazineh, Soon Wei Daniel Lim, Zhujun Shi, Federico Capasso, Todd Zickler +1 more
7/29/2022
physics.opticsphysics.app-ph

Official code: DeanHazineh/DFlat (123 stars, Jupyter Notebook, MIT, PyTorch, last commit 2025-07-03).

Abstract

Optical metasurfaces are planar substrates with custom-designed, nanoscale features that selectively modulate incident light with respect to direction, wavelength, and polarization. When coupled with photodetectors and appropriate post-capture processing, they provide a means to create computational imagers and sensors that are exceptionally small and have distinctive capabilities.

Show full abstract

We introduce D-Flat, a framework in TensorFlow that renders physically-accurate images induced by metasurface optical systems. This framework is fully differentiable with respect to metasurface shape and post-capture computational parameters and allows simultaneous optimization with respect to almost any measure of sensor performance. D-Flat enables simulation of millimeter to centimeter diameter metasurfaces on commodity computers, and it is modular in the sense of accommodating a variety of wave optics models for scattering at the metasurface and for propagation to photosensors. We validate D-Flat against symbolic calculations and previous experimental measurements, and we provide simulations that demonstrate its ability to discover novel computational sensor designs for two applications: single-shot depth sensing and single-shot spatial frequency filtering.

View on arXivView PDF

Code Implementations(1)

DeanHazineh/DFlatOfficial100%
PyTorchMIT

DFlat is a forward and inverse design framework for flat optics. Although specially geared for the design of metasurface optics, it may be used for any end-to-end imaging and sensing task.

12318Jupyter Notebook, PythonJul 14, 20231 years agoMIT
computational-imagingdiffractionend-to-endfourier-opticsmachine-learning+2 more

Similar Papers

Cite this paper

@article{hazineh2022dflat,
  title  = {D-Flat: A Differentiable Flat-Optics Framework for End-to-End Metasurface Visual Sensor Design},
  author = {Dean S. Hazineh and Soon Wei Daniel Lim and Zhujun Shi and Federico Capasso and Todd Zickler and Qi Guo},
  year   = {2022},
  eprint = {2207.14780},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.14780}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.14780.svg)](https://codeofpaper.com/paper/2207.14780)

Discussion