A General Method for Ocular Surface Segmentation Based on Diffusion Models. We will update the code in the near future.
-
System Requirements:
- NVIDIA GPUs, CUDA supported.
- Ubuntu 20.04 workstation or server
- Anaconda environment
- Python 3.8
- PyTorch 1.12
- Git
-
Installation:
git clone https://github.com/iMED-Lab/Randomness-restricted-Diffusion-Model.git
cd ./Randomness-restricted-Diffusion-Model
conda env create -f environment.yaml
conda activate rrdm_env
If you want to train on your own dataset:
python scripts/segmentation_train.py
After training, you can generate a mask like so:
python scripts/segmentation_sample.py
MIT License