whywww / asasm Goto Github PK
View Code? Open in Web Editor NEW[Optica] Modeling Off-Axis Diffraction with Least-Sampling Angular Spectrum Method
Home Page: https://whywww.github.io/LSASM_page/
[Optica] Modeling Off-Axis Diffraction with Least-Sampling Angular Spectrum Method
Home Page: https://whywww.github.io/LSASM_page/
Hi, thank you for sharing this fantastic code! I've been playing around the lens parameters in main.py. I noticed that the original code used an F/16 lens. However, when applied an F/4 lens, I observed a defocused PSF. Have you encountered a similar issue? Is paraxial approximation applied in the code? Or do you know how to fix this issue? Thanks a lot!
Traceback (most recent call last):
File "D:\pycharm\paper\ASASM-publish\ASASM-publish\main.py", line 77, in
prop2 = LeastSamplingASM(Uin, x, y, z, device)
File "D:\pycharm\paper\ASASM-publish\ASASM-publish\LSASM.py", line 109, in init
if any(1 - (wavelength * fxmax)**2 - (wavelength * fymax) ** 2 <= 0):
File "D:\anaconda\envs\pytorchcuda\lib\site-packages\torch_tensor.py", line 723, in iter
raise TypeError('iteration over a 0-d tensor')
TypeError: iteration over a 0-d tensor
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.