Baseline Networks for the MR to Ultrasound Registration for Prostate (µ-RegPro) Challenge

The goal of this challenge is multimodal image registration between pre-operative MR and intra-operative Ultrasound for the prostate gland. Details of the challenge are available here.

In this repository we build two simple baselines (i.e., variants of localnet and voxelmorph, with simplified backbone networks) for use with our dataset. The usage instructions are outlined below. Note that these are small, simplified networks, using resampled smaller images for training, for demonstration purposes on a wide variety of hardware. The model checkpoints after training with the dataset may be found here for localnet and here for voxelmorph.

Usage

Cloning the repository

git clone https://github.com/muregpro/Baseline-Networks.git

Downloading data

The dataset may be downloaded from this link. For training, two directories are requried: nifti_data/train and nifti_data/val and the user may split data into these, before training. The directory nifti_data must then be placed into the Baseline-Networks directory, so that they may be added into the docker container (see below).

Creating a docker container

Note: sudo or docker group permissions may be needed to run the following commands.

  1. navigate to the root directory
cd Baseline-Networks
  1. build mureg docker image from Dockerfile
docker build -t mureg .
  1. create mureg docker container from mureg docker image
docker container create -it --name mureg mureg
  1. start the mureg docker container
docker container start mureg

Running commands in the docker container

docker exec mureg <command>

Examples:

docker exec mureg ls
docker exec mureg python3 train_localnet.py
docker exec mureg python3 train_voxelmorph.py
docker exec mureg python3 test_localnet.py
docker exec mureg python3 test_voxelmorph.py

Stopping the docker container

docker container stop mureg

Removing the docker container

docker container rm -f mureg