https://github.com/xinario/sagan
Sharpness-aware Low Dose CT Denoising Using Conditional Generative Adversarial Network
https://github.com/xinario/sagan
computed-tomography convolutional-neural-networks deep-learning denoising gan generative-adversarial-network image-to-image-translation kaggle low-dose
Last synced: 24 days ago
JSON representation
Sharpness-aware Low Dose CT Denoising Using Conditional Generative Adversarial Network
- Host: GitHub
- URL: https://github.com/xinario/sagan
- Owner: xinario
- Created: 2017-09-28T16:04:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-04T00:25:38.000Z (over 3 years ago)
- Last Synced: 2025-04-03T22:01:42.803Z (about 2 months ago)
- Topics: computed-tomography, convolutional-neural-networks, deep-learning, denoising, gan, generative-adversarial-network, image-to-image-translation, kaggle, low-dose
- Language: Lua
- Homepage:
- Size: 781 KB
- Stars: 131
- Watchers: 3
- Forks: 31
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## SAGAN
#### Update 2019.01.22
For those who want to use the piglet dataset for CT denoising research and use this work as a baseline, please refer to this [issue](https://github.com/xinario/SAGAN/issues/8#issue-401978079) for details on how I used it.#### Update 2018.03.27
The piglet dataset we used in the publication is now open for download! Please find the link in my [personal webpage](https://xinario.github.io). (Note: for non-commercial use only)##
This repo provides the trained denoising model and testing code for low dose CT denoising as described in our [paper](https://link.springer.com/article/10.1007/s10278-018-0056-0).
Here are some randomly picked denoised results on low dose CTs from this [kaggle challenge](https://www.kaggle.com/c/data-science-bowl-2017/data).## How to use
To better use this repo, please make sure the dose level of the LDCTs are larger than 0.71 mSv.
### Prerequistites
- Linux or OSX
- NVIDIA GPU
- Python 3.x
- Torch7### Getting Started
- Install [Torch7](http://torch.ch/docs/getting-started.html#_)
- Install torch packages nngraph and hdf5
```bash
luarocks install nngraph
luarocks install hdf5
```
- Install [Python 3.x](https://www.anaconda.com/download/#macos) (recommend using Anaconda)
- Install python dependencies
```
pip install -r requirements.txt
```
- Clone this repo:
```bash
git clone [email protected]:xinario/SAGAN.git
cd SAGAN
```- Download the pretrained denoising model from [here](https://1drv.ms/u/s!Aj4IQl4ug0_9gj4TTqVW1JhhHG5f) and put it into the "checkpoints/SAGAN" folder
- Prepare your test set with the provided python script
```bash
#make a directory inside the root SAGAN folder to store your raw dicoms, e.g. ./dicoms
mkdir dicoms
#then put all your low dose CT images of dicom format into this folder and run
python pre_process.py --input ./dicoms --output ./datasets/experiment/test
#all your test images would now be saved as uint16 png format inside folder ./datasets/experiment/test.```
- Test the model:
```bash
DATA_ROOT=./datasets/experiment name=SAGAN which_direction=AtoB phase=test th test.lua
#the results are saved in ./result/SAGAN/latest_net_G_test/result.h5
```
- Display the result with a specific window, e.g. abdomen. Window type can be changed to 'abdomen', 'bone' or 'none'
```bash
python post_process.py --window 'abdomen'
```
Now you can view the result by open the html file index.html sitting in the root folder### Citations
If you find it useful and are using the code/model/dataset provided here in a publication, please cite our paper:Yi, X. & Babyn, P. J Digit Imaging (2018). https://doi.org/10.1007/s10278-018-0056-0
### Acknowlegements
Code borrows heavily from [pix2pix](https://github.com/phillipi/pix2pix)