Skip to content

Alexin-CH/ReflectorML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReflectorML

Introduction

Free-form reflector design is essential in optics for precisely shaping light distributions, with applications in automotive lighting, energy-efficient LED optics, laser-based manufacturing, aerospace systems, and medical imaging.

This problem is mathematically formulated as a non-linear Monge-Ampère equation (Wikipedia), which defines the mapping between a given light source and a prescribed target intensity.

However, traditional numerical solvers for this equation are computationally expensive and often struggle with convergence, particularly in complex boundary conditions. Developing efficient and robust methods to solve this problem is crucial for advancing high-performance optical designs in both scientific and industrial applications.

By embedding the governing equations - such as the Monge-Ampère equation - directly into the learning process, our approach ensures physically consistent solutions while significantly reducing computational costs. Unlike purely data-driven models, PINNs do not rely solely on labeled data but instead enforce optical constraints during training, improving solution accuracy for specific problem instances. This framework accelerates the inverse design process and provides a computationally efficient alternative to traditional numerical solvers.

Description

This project implements a hybrid method that aims to use both:

  • PyTorch raytracer (with automatic differentiation) with a transport loss
  • Physical loss based on the Monge-Ampere equation.

Getting Started

Prerequisites

Ensure you have the following installed:

  • Python 3.7 or higher
  • Required libraries (listed in requirements.txt)

Installation

Clone the repository:

git clone  https://github.com/Alexin-CH/ReflectorML.git
cd ReflectorML

Install the required dependencies:

make

Results (See more)

Square

square

Spiral

spiral

Pi

pi

Cards

cards

See more results


Acknowledgments

This project is inspired by the paper "A Neural Network Approach for Solving the Monge-Ampère Equation with Transport Boundary Condition" (arXiv:2410.19496v1, Oct 25, 2024). You can read the paper here.

Thanks

Special thanks to Valentin MALQUY for their preliminary work on this topic. Your contributions and insights have been invaluable in shaping this project.

About

Hybrid ML/PIML freeform reflector design

Topics

Resources

License

Stars

Watchers

Forks

Contributors