Get the latest tech news

Show HN: Torch Lens Maker – Differentiable Geometric Optics in PyTorch


Differentiable geometric optics in PyTorch

Welcome to Torch Lens Maker, an open-source Python library for differentiable geometric optics based on PyTorch. Each layer affects light rays depending on its internal parameters (surface shape, refractive material...) and following the very much non‑linear Snell's law. Neural NetworkOptical systemData Images, Text, AudioLight rays Layers Conv2d, Linear, ReLURefraction, Reflection, Gap Loss Function Prediction error to labeled examplesFocusing error in the image planeThe magic is that we can pretty much use torch.nn and nn.Module directly, stacking lenses and mirrors as if they were Conv2d and ReLU.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of PyTorch

PyTorch

Photo of torch lens maker

torch lens maker

Related news:

News photo

PyTorch 2.6 Delivers FP16 Support For x86 CPUs, Better Intel GPU Experience

News photo

Using uv with PyTorch

News photo

PyTorch 101: Understanding Graphs, Automatic Differentiation and Autograd