Coder Social home page Coder Social logo

jwhite510 / wavefront-sensor-neural-network Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 6.0 1.39 GB

neural network trained to retrieve the amplitude and phase of objects by measurement of their diffraction pattern

License: MIT License

Python 85.71% Shell 0.92% MATLAB 13.37%
wavefront tensorflow neural-network zernike real-time sensor

wavefront-sensor-neural-network's Introduction

wavefront sensor neural network

neural network trained to retrieve the amplitude and phase of objects by measurement of their diffraction pattern

publication:

Real-time phase-retrieval and wavefront sensing enabled by an artificial neural network
Jonathon White, Sici Wang, Wilhelm Eschen, and Jan Rothhardt
https://www.osapublishing.org/oe/fulltext.cfm?uri=oe-29-6-9283&id=449096

installation

pip install -r requirements.txt

Overview / Files Explained in order of importance

run_tests.sh

To train the network, run the shellscript 'run_tests.sh'. This will call several .py files to create a new data set for training, add artificial noise to the dataset, and then train a neural network. Parameters for training the network are specified in this file, these parameters are the number of training samples, the peak counts of the noise levels for the training data, and the wavefront sensor.

noise_test_compareCDI.sh

Load the trained network and perform retrieval on several test samples. Also perform retrieval on the same samples using iterative phase retrieval for comparison

diffraction_net.py

Contains the neural network, and classes for training the neural network, run from file 'run_tests.sh'

datagen.py

Contains functions/classes for generating wavefronts and propagating them through the wavefront, used to create the training data set

addnoise.py

Adds poisson noise to simulate low photon count / additive noise from camera.

buildui.sh / main.py / _main.py / main.ui

Files for building a user interface in Qt with file for use in realtime phase retrieval when connected to a camera.

wavefront-sensor-neural-network's People

Contributors

jwhite510 avatar s1c1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.