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)
Re-implementation of the Noise Contrastive Estimation algorithm for pyTorch, following "Noise-contrastive estimation: A new estimation principle for unnormalized statistical models." (Gutmann and Hyvarinen, AISTATS 2010)

Noise Contrastive Estimation for pyTorch Overview This repository contains a re-implementation of the Noise Contrastive Estimation algorithm, implemen

Denis Emelin 42 Nov 24, 2022
Generative Art Using Neural Visual Grammars and Dual Encoders

Generative Art Using Neural Visual Grammars and Dual Encoders Arnheim 1 The original algorithm from the paper Generative Art Using Neural Visual Gramm

DeepMind 231 Jan 05, 2023
A series of Jupyter notebooks with Chinese comment that walk you through the fundamentals of Machine Learning and Deep Learning in python using Scikit-Learn and TensorFlow.

Hands-on-Machine-Learning 目的 这份笔记旨在帮助中文学习者以一种较快较系统的方式入门机器学习, 是在学习Hands-on Machine Learning with Scikit-Learn and TensorFlow这本书的 时候做的个人笔记: 此项目的可取之处 原书的

Baymax 1.5k Dec 21, 2022
Official repository for the ISBI 2021 paper Transformer Assisted Convolutional Neural Network for Cell Instance Segmentation

SegPC-2021 This is the official repository for the ISBI 2021 paper Transformer Assisted Convolutional Neural Network for Cell Instance Segmentation by

Datascience IIT-ISM 13 Dec 14, 2022
PyTorch implementation of Trust Region Policy Optimization

PyTorch implementation of TRPO Try my implementation of PPO (aka newer better variant of TRPO), unless you need to you TRPO for some specific reasons.

Ilya Kostrikov 366 Nov 15, 2022
Voice of Pajlada with model and weights.

Pajlada TTS Stripped down version of ForwardTacotron (https://github.com/as-ideas/ForwardTacotron) with pretrained weights for Pajlada's (https://gith

6 Sep 03, 2021
IEGAN — Official PyTorch Implementation Independent Encoder for Deep Hierarchical Unsupervised Image-to-Image Translation

IEGAN — Official PyTorch Implementation Independent Encoder for Deep Hierarchical Unsupervised Image-to-Image Translation Independent Encoder for Deep

30 Nov 05, 2022
A 3D Dense mapping backend library of SLAM based on taichi-Lang designed for the aerial swarm.

TaichiSLAM This project is a 3D Dense mapping backend library of SLAM based Taichi-Lang, designed for the aerial swarm. Intro Taichi is an efficient d

XuHao 230 Dec 19, 2022
A very simple tool to rewrite parameters such as attributes and constants for OPs in ONNX models. Simple Attribute and Constant Modifier for ONNX.

sam4onnx A very simple tool to rewrite parameters such as attributes and constants for OPs in ONNX models. Simple Attribute and Constant Modifier for

Katsuya Hyodo 6 May 15, 2022
Clean and readable code for Decision Transformer: Reinforcement Learning via Sequence Modeling

Minimal implementation of Decision Transformer: Reinforcement Learning via Sequence Modeling in PyTorch for mujoco control tasks in OpenAI gym

Nikhil Barhate 104 Jan 06, 2023
Deep RGB-D Saliency Detection with Depth-Sensitive Attention and Automatic Multi-Modal Fusion (CVPR'2021, Oral)

DSA^2 F: Deep RGB-D Saliency Detection with Depth-Sensitive Attention and Automatic Multi-Modal Fusion (CVPR'2021, Oral) This repo is the official imp

如今我已剑指天涯 46 Dec 21, 2022
Code for the paper Open Sesame: Getting Inside BERT's Linguistic Knowledge.

Open Sesame This repository contains the code for the paper Open Sesame: Getting Inside BERT's Linguistic Knowledge. Credits We built the project on t

9 Jul 24, 2022
Exploring Relational Context for Multi-Task Dense Prediction [ICCV 2021]

Adaptive Task-Relational Context (ATRC) This repository provides source code for the ICCV 2021 paper Exploring Relational Context for Multi-Task Dense

David Brüggemann 35 Dec 05, 2022
Constrained Logistic Regression - How to apply specific constraints to logistic regression's coefficients

Constrained Logistic Regression Sample implementation of constructing a logistic regression with given ranges on each of the feature's coefficients (v

1 Dec 29, 2021
This is an unofficial PyTorch implementation of Meta Pseudo Labels

This is an unofficial PyTorch implementation of Meta Pseudo Labels. The official Tensorflow implementation is here.

Jungdae Kim 320 Jan 08, 2023
Diverse Image Generation via Self-Conditioned GANs

Diverse Image Generation via Self-Conditioned GANs Project | Paper Diverse Image Generation via Self-Conditioned GANs Steven Liu, Tongzhou Wang, David

Steven Liu 147 Dec 03, 2022
Gym for multi-agent reinforcement learning

PettingZoo is a Python library for conducting research in multi-agent reinforcement learning, akin to a multi-agent version of Gym. Our website, with

Farama Foundation 1.6k Jan 09, 2023
3D Human Pose Machines with Self-supervised Learning

3D Human Pose Machines with Self-supervised Learning Keze Wang, Liang Lin, Chenhan Jiang, Chen Qian, and Pengxu Wei, “3D Human Pose Machines with Self

Chenhan Jiang 398 Dec 20, 2022
Weight initialization schemes for PyTorch nn.Modules

nninit Weight initialization schemes for PyTorch nn.Modules. This is a port of the popular nninit for Torch7 by @kaixhin. ##Update This repo has been

Alykhan Tejani 69 Jan 26, 2021
Car Parking Tracker Using OpenCv

Car Parking Vacancy Tracker Using OpenCv I used basic image processing methods i

Adwait Kelkar 30 Dec 03, 2022