# Diffusion_Structures
This foundation of this code was cloned from https://github.com/dome272/Diffusion-Models-pytorch and utilized a write-up and video from https://wandb.ai/capecape/train_sd/reports/How-to-Train-a-Conditional-Diffusion-Model-from-Scratch--VmlldzoyNzIzNTQ1
Morphometry code is from the University of Iowa and written by Jacob Fuhrmeister. This code was utilized to create the Moments directory and is associated with cropped images.


The code was originally designed to run through command line. At this time it has been transformed to run on Jupyter Notebooks. To run it yourself. you will need to change the directory location for train_dataset_path="/path/to/dir/Iowa_img/Train",
val_dataset_path="/path/to/dir/Iowa_img/Val" in ddpm.py and ddpm_conditional.py and labels = generate_random_tensor("/path/to/dir/Moments/Train") in ddpm_conditional.py

Onces these changes are made, you can run the unconditional and conditional model through Iowa_Unconditional.ipynb and Iowa_Conditional.ipynb
