Coder Social home page Coder Social logo

ptyger's Introduction

PtyGer

A tool for ptychographic GPU(multiple)-based reconstruction.

Installation from source

export CUDAHOME=path-to-cuda
python setup.py clean
python setup.py install

Dependency

cupy - for GPU acceleration of linear algebra operations in iterative schemes. See (https://cupy.chainer.org/). For installation use

conda install -c anaconda cupy

Tests

Test PtyGer with siemens-star synthetic dataset:

cd tests/
python test.py 4 0 512 1 32 siemens4g60 -s siemens 256 60

4: number of GPUs.
0: GPU id offset (e.g., the first GPU's id is 0).
512: used for real-experiment data only. Meaningless in synthetic test run.
1: stride length of the scans.
32: number of iteration.
siemens4g60: prefix of the performance data files.
-s: accepting synthetic dataset (use -r for real-experiment dataset).
siemens: name of the dataset.
256: probe size (in this case the probe size is 256^2).
60: number of scan position (in this case the total number of scan position is 60^2=3600).

In the first running, the synthetic diffraction patterns will be generated and stored as tests/data/siemens/256data60.npy. Any repeated runnings then can directly load this data file.
The reconstructed images will be stored in tests/rec_siemens.

ptyger's People

Contributors

nikitinvv avatar carterbox avatar xiaodong-yu avatar

Stargazers

Yuri R. Tonin avatar  avatar  avatar Philipp Pelz avatar

Watchers

James Cloos 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.