Story Details

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

    Posted: 2025-03-21 13:29:11

    Torch Lens Maker is a PyTorch library for differentiable geometric optics simulations. It allows users to model optical systems, including lenses, mirrors, and apertures, using standard PyTorch tensors. Because the simulations are differentiable, it's possible to optimize the parameters of these optical systems using gradient-based methods, opening up possibilities for applications like lens design, computational photography, and inverse problems in optics. The library provides a simple and intuitive interface for defining optical elements and propagating rays through the system, all within the familiar PyTorch framework.

    Summary of Comments ( 13 )
    https://news.ycombinator.com/item?id=43435438

    Commenters on Hacker News generally expressed interest in Torch Lens Maker, praising its interactive nature and potential applications. Several users highlighted the value of real-time feedback and the educational possibilities it offers for understanding optical systems. Some discussed the potential use cases, ranging from camera design and optimization to educational tools and even artistic endeavors. A few commenters inquired about specific features, such as support for chromatic aberration and diffraction, and the possibility of exporting designs to other formats. One user expressed a desire for a similar tool for acoustics. While generally positive, there wasn't an overwhelmingly large volume of comments.