Examples
Various Jupyter notebooks that cover primary usage and peripheral concepts/functionality
of xtal2png are included here. Many of these examples can be run on Google Colab and
have a corresponding clickable badge at the top of the notebook. For example, here is
the badge for the tutorial notebook:
These resources can also be downloaded directly from GitHub (notebooks, scripts).
- Converting interchangeably between crystal structure and a grayscale PNG image (basic
xtal2pngtutorial) - Selecting Default Parameter Ranges via Materials Project
- Selecting Default Parameter Ranges via Materials Project (Conventional Unit Cell)
- Classification on
matbench_mp_is_metalusingxtal2pngrepresentation of crystal structures - XGBoost regression for
matbench_mp_e_formtask using basic crystallographic features - Using
xtal2pngwithdenoising_diffusion_pytorch - Using
xtal2pngwithimagen-pytorch - Denoising Diffusion PyTorch Example (script)
- Denoising Diffusion PyTorch Pretrained Sample (script)
- Imagen PyTorch Example (script)