GithubHelp home page GithubHelp logo

cortexgnn's Introduction

PialNN: A Fast Deep Learning Framework for Cortical Pial Surface Reconstruction

This repository contains the PyTorch implementation of the paper:

PialNN: A Fast Deep Learning Framework for Cortical Pial Surface Reconstruction [Paper]

Qiang Ma, Emma C. Robinson, Bernhard Kainz, Daniel Rueckert, Amir Alansary

The 4th Workshop on Machine Learning in Clinical Neuroimaging (MLCN2021)

Abstract. Pial Neural Network (PialNN) is a 3D deep learning framework for pial surface reconstruction. It is trained end-to-end to deform a given initial white matter surface to a target pial surface by a sequence of learned deformation blocks. PialNN is fast and memory-efficient, which allows reconstructing a pial surface mesh with 150k vertices within 1s runtime.

Get Started

Dependencies

The following packages are required for running PialNN:

Dataset

The following files are required for training and testing. The data should be generated by FreeSurfer or in the same format.

./data/train/SUBJECT_NAME/mri/orig.mgz
./data/train/SUBJECT_NAME/surf/lh.white
./data/train/SUBJECT_NAME/surf/lh.pial
./data/train/SUBJECT_NAME/surf/rh.white
./data/train/SUBJECT_NAME/surf/rh.pial

orig.mgz is the brain MRI volume. lh.white/rh.white are the meshes of initial white matter cortical surfaces of left/right cerebrum hemispheres. lh.pial/rh.pial are ground truth pial surface meshes. An example data is provided in ./data/test/example/.

We use HCP Young Adult Dataset for training and testing in this paper.

Running Demos

You can run the following codes to predict a pial surface based on the provided example data.

git clone https://github.com/m-qiang/PialNN.git
python eval.py --data_path=./data/test/ --hemisphere=lh --save_mesh_eval=True

The output pial surface mesh will be saved in ./ckpts/eval/ as .obj format.

Training

Download your training data to ./data/train/ and run

python train.py --data_path=./data/train/ --hemisphere=lh

For more information about the training configuration, please see

python train.py --help

The pretrained models of PialNN for both left and right hemispheres are provided:

./ckpts/model/pialnn_pretrained_lh.pt
./ckpts/model/pialnn_pretrained_rh.pt

Evaluation

Download your testing data to ./data/test/ and run

python eval.py --data_path=./data/test/ --hemisphere=lh

Three distance-based matrics will be computed: Chamfer Distance (CD), Average Absolute Distance (AD), and Hausdorff Distance (HD).

For the purpose of debugging or validation, the evaluation result of the provided example data in ./data/test/example/ should be

  • CD=0.39, AD=0.20, HD=0.40

cortexGNN

Amazing extension to pialnn, cortexode, and topofit.

cortexgnn's People

Contributors

williamashbee avatar m-qiang avatar

Watchers

Sergey Plis avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.