/TEDS-Net

Overview of architecture and implementation of TEDS-Net, as described in MICCAI 2021: "TEDS-Net: Enforcing Diffeomorphisms in Spatial Transformers to Guarantee TopologyPreservation in Segmentations"

Primary LanguagePython

TEDS-Net Implementation

Overview of architecture and implementation of TEDS-Net, as described in MICCAI 2021: "TEDS-Net: Enforcing Diffeomorphisms in Spatial Transformers to Guarantee TopologyPreservation in Segmentations"

Updated code (Jan 2023) now including a brief training script with a mock MNIST dataset, to perform "0" segmentation. A parameter file is also included to describe the hyper-paramters used for the ACDC training and a code for the prior shape is in the dataloader. If using the ACDC example, ensure to ammend the datapaths in both the hyperparameter file and dataloader.

--------------- MOCK EXAMPLE ---------------

To test the TEDS-Net architecture, I recommend using the mock example, "0" segmentation to ensure everything is installed correctly. Note that, in this example a smaller TEDS-Net achitecture is used as the image dimensions are much smaller.

Running:

train_runner.py

will train TEDS-Net for 20 epochs (which shouldn't take more than a minute).

At the end of trianing, a final "Test Dice Loss" should appear, which should be similar to:


Test Dice Loss: 0.9272134661674499 +/- 0.004152349107265217


Alt text

Here is an example of the MNIST image, the prior shape (P) and TEDS-Net segmentation after 20 epochs.