This repository contains tutorials for the py4DSTEM Python package

Overview
Comments
  • Binder dev

    Binder dev

    • Binder link created, currently lands in Index.ipynb
    • data loaded as part of the notebooks, running all cells on notebooks inside binder will work.
    • Added file_getter.py which takes command-line arguments, which makes extending the download to more notebooks fairly straightforward.
    • Both notebooks work, make_probe_templates.ipynb required adding some clean-up steps to avoid going over 2GB ram limit, the alternative is to split them into more separate notebooks.
    • There's a slight issue that if people don't shutdown notebooks properly or if they have multiple notebooks over, they may cause kernel panics, both notebooks peak memory usage push the 2GB limit .
    • I haven't given much attention to style or formatting currently just wanted to get something functional and working to see if works as required.
    opened by alex-rakowski 1
  • SSB tutorial notebooks with new dataset

    SSB tutorial notebooks with new dataset

    These are two new tutorial notebooks I updated. One is for single-run reconstruction, the other is for interactive mode with ipywidgets and matplotlib visualization.

    opened by PhilippPelz 0
  • Binder dev

    Binder dev

    • Binder link created, currently lands in Index.ipynb
    • data loaded as part of the notebooks, running all cells on notebooks inside binder will work.
    • Added file_getter.py which takes command-line arguments, which makes extending the download to more notebooks fairly straightforward.
    • Both notebooks work, make_probe_templates.ipynb required adding some clean-up steps to avoid going over 2GB ram limit, the alternative is to split them into more separate notebooks.
    • There's a slight issue that if people don't shutdown notebooks properly or if they have multiple notebooks over, they may cause kernel panics, both notebooks peak memory usage push the 2GB limit .
    • I haven't given much attention to style or formatting currently just wanted to get something functional and working to see if works as required.
    opened by alex-rakowski 0
  • Add simulations for dynamical scattering

    Add simulations for dynamical scattering

    I found that there is almost no proper documentation for the dynamical scattering simulation in py4DSTEM unless you read the source code (actually I couldn't find the documentation for the whole diffraction module). So I created a tutorial using NaCl as an example. Hope I have done it right.

    opened by Taimin 0
  • py4DSTEM.process.virtualimage.get_virtualimage_circ (strain mapping tutorial)

    py4DSTEM.process.virtualimage.get_virtualimage_circ (strain mapping tutorial)

    in the strain mapping tutorial, this step doesn't work !

    [12]

    Next, create a BF virtual detector using the the center beam position (qxy0, qy0)

    We will expand the BF radius slightly (+ 2 px).

    The DF virtual detector can be set to all remaining pixels.

    expand_BF = 2.0 image_BF = py4DSTEM.process.virtualimage.get_virtualimage_circ( dataset, qx0, qy0, probe_semiangle + expand_BF) image_DF = py4DSTEM.process.virtualimage.get_virtualimage_ann( dataset, qx0, qy0, probe_semiangle + expand_BF, 1e3)

    [return]

    AttributeError Traceback (most recent call last) Input In [168], in <cell line: 5>() 1 # Next, create a BF virtual detector using the the center beam position (qxy0, qy0) 2 # We will expand the BF radius slightly (+ 2 px). 3 # The DF virtual detector can be set to all remaining pixels. 4 expand_BF = 2.0 ----> 5 image_BF = py4DSTEM.process.get_virtualimage_circ( 6 dataset, 7 qx0, qy0, 8 probe_semiangle + expand_BF) 9 image_DF = py4DSTEM.process.virtualimage.get_virtualimage_ann( 10 dataset, 11 qx0, qy0, 12 probe_semiangle + expand_BF, 13 1e3)

    AttributeError: module 'py4DSTEM.process' has no attribute 'get_virtualimage_circ'

    Any tips to fix that ?

    py4DSTEM.process.virtualimage.virtualimage.get_virtualimage_circ or py4DSTEM.process.virtualimage.get_virtualimage_circ ?

    opened by lylofu 0
  • ACOM_03_Au_NP_sim.ipynb bugs

    ACOM_03_Au_NP_sim.ipynb bugs

    Running the ACOM_03 notebook as downloaded, cell 25 gives the following error:

    ---------------------------------------------------------------------------
    NameError                                 Traceback (most recent call last)
    /var/folders/ts/tq6v7mks7hvg37ys5zvs1c2w0000gn/T/ipykernel_3012/3733081456.py in <module>
         14 
         15 # Fit an ellipse to the elliptically corrected bvm
    ---> 16 qx0_corr,qy0_corr,a_corr,e_corr,theta_corr = py4DSTEM.process.calibration.fit_ellipse_1D(bvm_ellipsecorr,(qx0,qy0),(qmin,qmax))
         17 
         18 py4DSTEM.visualize.show_elliptical_fit(
    
    NameError: name 'qmin' is not defined
    

    I think someone changed qmin, qmax to be a list called qrange and never actually tested the notebook in a fresh state.

    opened by sezelt 0
  • AttributeError: module 'py4DSTEM.process' has no attribute 'diffraction'

    AttributeError: module 'py4DSTEM.process' has no attribute 'diffraction'

    When I run the "ACOM Tutorial Notebook 01", it gives a following error message.

    AttributeError: module 'py4DSTEM.process' has no attribute 'diffraction'

    version python 3.8.0 py4DSTEM 0.12.6 pywin32 302

    error

    opened by nomurayuki0503 0
Releases(v0.13.8-alpha)
Owner
null
Simple tutorials on Pytorch DDP training

pytorch-distributed-training Distribute Dataparallel (DDP) Training on Pytorch Features Easy to study DDP training You can directly copy this code for

Ren Tianhe 188 Jan 6, 2023
The Incredible PyTorch: a curated list of tutorials, papers, projects, communities and more relating to PyTorch.

This is a curated list of tutorials, projects, libraries, videos, papers, books and anything related to the incredible PyTorch. Feel free to make a pu

Ritchie Ng 9.2k Jan 2, 2023
Pytorch tutorials for Neural Style transfert

PyTorch Tutorials This tutorial is no longer maintained. Please use the official version: https://pytorch.org/tutorials/advanced/neural_style_tutorial

Alexis David Jacq 135 Jun 26, 2022
Pytorch Geometric Tutorials

Pytorch Geometric Tutorials

Antonio Longa 648 Jan 8, 2023
Useful materials and tutorials for 110-1 NTU DBME5028 (Application of Deep Learning in Medical Imaging)

Useful materials and tutorials for 110-1 NTU DBME5028 (Application of Deep Learning in Medical Imaging)

null 7 Jun 22, 2022
Python-experiments - A Repository which contains python scripts to automate things and make your life easier with python

Python Experiments A Repository which contains python scripts to automate things

Vivek Kumar Singh 11 Sep 25, 2022
This package contains deep learning models and related scripts for RoseTTAFold

RoseTTAFold This package contains deep learning models and related scripts to run RoseTTAFold This repository is the official implementation of RoseTT

null 1.6k Jan 3, 2023
This repository contains the code used for Predicting Patient Outcomes with Graph Representation Learning (https://arxiv.org/abs/2101.03940).

Predicting Patient Outcomes with Graph Representation Learning This repository contains the code used for Predicting Patient Outcomes with Graph Repre

Emma Rocheteau 76 Dec 22, 2022
An efficient and effective learning to rank algorithm by mining information across ranking candidates. This repository contains the tensorflow implementation of SERank model. The code is developed based on TF-Ranking.

SERank An efficient and effective learning to rank algorithm by mining information across ranking candidates. This repository contains the tensorflow

Zhihu 44 Oct 20, 2022
This repository contains a pytorch implementation of "StereoPIFu: Depth Aware Clothed Human Digitization via Stereo Vision".

StereoPIFu: Depth Aware Clothed Human Digitization via Stereo Vision | Project Page | Paper | This repository contains a pytorch implementation of "St

null 87 Dec 9, 2022
This repository contains PyTorch code for Robust Vision Transformers.

This repository contains PyTorch code for Robust Vision Transformers.

null 117 Dec 7, 2022
This repository contains the implementations related to the experiments of a set of publicly available datasets that are used in the time series forecasting research space.

TSForecasting This repository contains the implementations related to the experiments of a set of publicly available datasets that are used in the tim

Rakshitha Godahewa 80 Dec 30, 2022
This repository contains the code for our fast polygonal building extraction from overhead images pipeline.

Polygonal Building Segmentation by Frame Field Learning We add a frame field output to an image segmentation neural network to improve segmentation qu

Nicolas Girard 186 Jan 4, 2023
This repository contains the code for the paper "Hierarchical Motion Understanding via Motion Programs"

Hierarchical Motion Understanding via Motion Programs (CVPR 2021) This repository contains the official implementation of: Hierarchical Motion Underst

Sumith Kulal 40 Dec 5, 2022
This repository contains a PyTorch implementation of "AD-NeRF: Audio Driven Neural Radiance Fields for Talking Head Synthesis".

AD-NeRF: Audio Driven Neural Radiance Fields for Talking Head Synthesis | Project Page | Paper | PyTorch implementation for the paper "AD-NeRF: Audio

null 551 Dec 29, 2022
This repository contains all the code and materials distributed in the 2021 Q-Programming Summer of Qode.

Q-Programming Summer of Qode This repository contains all the code and materials distributed in the Q-Programming Summer of Qode. If you want to creat

Sammarth Kumar 11 Jun 11, 2021
null 190 Jan 3, 2023
This repository contains the implementation of Deep Detail Enhancment for Any Garment proposed in Eurographics 2021

Deep-Detail-Enhancement-for-Any-Garment Introduction This repository contains the implementation of Deep Detail Enhancment for Any Garment proposed in

null 40 Dec 13, 2022
This repository contains the source code and data for reproducing results of Deep Continuous Clustering paper

Deep Continuous Clustering Introduction This is a Pytorch implementation of the DCC algorithms presented in the following paper (paper): Sohil Atul Sh

Sohil Shah 197 Nov 29, 2022