Giter Club home page Giter Club logo

naf_cbct's Introduction

NAF: Neural Attenuation Fields for Sparse-View CBCT Reconstruction

Code for MICCAI 2022 Oral paper NAF: Neural Attenuation Fields for Sparse-View CBCT Reconstruction by Ruyi Zha, Yanhao Zhang and Hongdong Li.

A neural-field-based method for CBCT reconstruction.

[paper][dataset]

NAF framework

Setup

We recommend using Conda to set up an environment.

# Create environment
conda create -n naf python=3.9
conda activate naf

# Install pytorch (hash encoder requires CUDA v11.3)
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113

# Install other packages
pip install -r requirements.txt

Training and evaluation

Download four CT datasets from here. Put them into the ./data folder.

Experiments settings are stored in ./config folder.

For example, train NAF with chest_50 dataset:

python train.py --config ./config/chest_50.yaml

Note: It may take minutes to compile the hash encoder module for the first time.

The evaluation outputs will be saved in ./logs/eval/epoch_* folder.

Customized dataset

You can make your own simulation dataset with TIGRE toolbox. Please first install TIGRE.

Put your CT data in the format as follows. Examples can be seen in here.

├── raw                                                                                                       
│   ├── XXX (your CT name)
│   │   └── img.mat (CT data)
│   │   └── config.yml (Information about CT data and the geometry setting of CT scanner)

Then use TIGRE to generate simulated X-ray projections.

python dataGenerator/generateData.py --ctName XXX --outputName XXX_50

Coordinate system

Our coordinate system is similar to that in TIGRE toolbox, except for the detector plane which follows OpenCV standards.

NAF coordinate systen

Citation

Cite as below if you find this repository is helpful to your project.

@inproceedings{zha2022naf,
  title={NAF: Neural Attenuation Fields for Sparse-View CBCT Reconstruction},
  author={Zha, Ruyi and Zhang, Yanhao and Li, Hongdong},
  booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention},
  pages={442--452},
  year={2022},
  organization={Springer}
}

Acknowledgement

naf_cbct's People

Contributors

ruyi-zha avatar mcskiller avatar pminimd 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.