Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test of GPU version for CDI #19

Open
heidemeissner opened this issue Feb 26, 2020 · 3 comments
Open

test of GPU version for CDI #19

heidemeissner opened this issue Feb 26, 2020 · 3 comments
Assignees

Comments

@heidemeissner
Copy link
Contributor

heidemeissner commented Feb 26, 2020

The reconstruction algorithm RAAR (= Relaxed Averaged Alternating Reflection) used in Jena for coherent diffraction imaging exist in python and in pytorch. Pytorch is beneficial when using GPUs, since some optimization features are automatically applied. In Jena, differences between the results where observed although started with the same seed. Only for experimental data sets. And no obvious difference in the code was visible. That means the accuracy needs to be tested.

@heidemeissner
Copy link
Contributor Author

@heidemeissner
Copy link
Contributor Author

heidemeissner commented Mar 19, 2020

Performance: for one example (1024x1024 pixel) it is 3.6 s on GPU (CUDA) and 161s on CPU

@heidemeissner
Copy link
Contributor Author

heidemeissner commented Mar 19, 2020

Test of pytorch version and our python RAAR version reveals differences for experimental test set. Found three differences in code:

  • RAAR (pytorch) returns object not yet filtered by support
  • last iteration of pure error reduction iterations are missing
  • most important: in the pytorch version, the support is defined and applied for real AND imaginary space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants