Giter Club home page Giter Club logo

ptynet's Introduction

PtyNet

Efficient ptychography recontruction strategy by fine tuning of large pre-trained deep learning model

Abstract: With the increasing utilization of pre-trained large models and fine-tuning paradigms in deep learning, the abundance and quality of data have shown significant performance gains for large models. Next-generation light sources, characterized by their high brightness and high coherence nature, offer a vast amount of data that can be leveraged in the field of coherent diffraction imaging, enabling the training of large models in this domain. In this study, we introduce a neural network model and propose enhancements to its architecture. By pre-training the model on extensive datasets and employing a fine-tuning technique, we improve its performance in the reconstruction process. The pre-trained model exhibits remarkable generalization capability, allowing for the reconstruction of diverse sample types, while the fine-tuning technique enhances the quality of the reconstructed results. Additionally, our method demonstrates robust performance across various overlap rates during the reconstruction process. Lastly, we discuss the feasibility of our proposed approach and outline potential avenues for further improvements. We anticipate that our methodology will contribute to the advancement of ptychography and facilitate the development of enhanced imaging techniques in the future.

Requirements

Pytorch >= 1.6 scipy

Train, test and finetune

If you want to start training, just use python main.py --model "train". if you want to test , use python main.py --mdoel "test". finetune use python main.py --model "finetune".

Simulation of data generation

You can use

python create_data.py --model "train" --object_num X --overlap_rate X --creat_data True --concat_data False

to generate data with different amounts and overlap rates.

Others

If you want to use the trained network model for testing and finetune, or if you want to use an existing training dataset, please download it at the link (note that the link is only kept for 30 days).

https://9d353bdf5d.znas.cn/AppH5/share/?nid=LIYDIMJQGEYDESRSJY2TS&code=irJYOYGtDHMeWKtUaMFRslXD8cyRL7DIzMILqcSwU75kXbqV5bpfe0FYbMYcm3P3y&mode=file&display=list

If you have any questions, please contact the author at [email protected]

ptynet's People

Contributors

paidaxinbao avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.