MCPcopy Index your code
hub / github.com/cewang-sysu/DuDoTrans

github.com/cewang-sysu/DuDoTrans @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
96 symbols 198 edges 10 files 15 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DuDoTrans

Requirements

  • platform: linux-64
  • python=3.6.13
  • CUDA 11.0 or higher

Data Acquisition

  • The “NIH-AAPM-Mayo Clinic Low Dose CT Grand Challenge” dataset (NIH-AAPM 2017) could be acquired from here. Note that the download link is updated 2021, and our experimental data is chosen before and differs from the current one, while this doesn't affect the model comparison.
  • The COVID-19 dataset is in-house dataset.

Data Preparation (NIH-AAPM)

After downloading the dataset from here, put the train/test data (original dcm files) in the corresponding workdir "path to train" and "path to test".

Training

Run the script on NIH-AAPM dataset.

python main.py

Testing

If you want to test the model which has been trained on the NIH-AAPM dataset, turn off and "trainer.train()" and turn on "trainer.inference()", then download the pretrained model here, put it under the subdirectory ./results/models/, and run the script as follows.

python main.py

Citation

If you use our code or models in your work or find it is helpful, please cite the corresponding paper:

@inproceedings{wang2022dudotrans,
  title={DuDoTrans: Dual-Domain Transformer for Sparse-View CT Reconstruction},  
  author={Wang, Ce and Shang, Kun and Zhang, Haimiao and Li, Qian and Zhou, S Kevin},
  booktitle={International Workshop on Machine Learning for Medical Image Reconstruction},
  year={2022}
}

Core symbols most depended-on inside this repo

flops
called by 6
network_swinir.py
forward_features
called by 4
network_swinir.py
calculate_metric
called by 3
main.py
window_partition
called by 2
network_swinir.py
calculate_mask
called by 2
network_swinir.py
ril
called by 2
modules/reconstructor.py
_radon_transform
called by 2
loaders/load_dataset.py
window_reverse
called by 1
network_swinir.py

Shape

Method 71
Class 23
Function 2

Languages

Python100%

Modules by API surface

network_swinir.py52 symbols
modules/Unet_parts.py21 symbols
modules/reconstructor.py8 symbols
main.py6 symbols
loaders/load_dataset.py6 symbols
modules/unet_model.py3 symbols

For agents

$ claude mcp add DuDoTrans \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page