Repository for OCT Project MLMI Practical Course from Summer Semester 2022 at TUM.
Current code is an extension of guided-diffusion.
The project aims to build a neural network to extract meaningful features from OCT Imaging.
The goal is to further use this trained model in other applications, such as automatic report generation based on images alone.
Our effort relies upon implementing Diffusion Models to generate new OCT images, with the expectation that the extracted features of the neural network are good enough to make meaning of new unseen data. If this is accomplished, other downstream tasks such as the automatic report generation might be feasible with use of this neural network.
Note
: Tested only on Windows OS.
python >= 3.8
- Python environment manager, such as
pipenv
pip >= 22.0.4
Python MPI
: Instructions here
- Clone repo locally
git clone https://github.com/murilobellatini/mlmi-oct-diffusion.git
- Move to local repo root
cd ./mlmi-oct-diffusion
- Initiate python environment (example for
pipenv
below)
pipenv shell
- Install dependencies
pip install -r requirements.txt
- Either run notebooks or cli commands below.
- Optional: For notebooks it might be required to install kernel profile. If so, it can be done with code below.
jupyter kernelspec install-self
Try overfitting your first model ;) How? Take a look.
- Put around 10 image samples on the
./data/raw
folder - Execute the method
guided_diffusion.src.resize_images
on that folder (withoutoutput_dir
param) - Run the
test_train.bat
- Grab a cup coffee and relax ☕