This is the official implement of the paper "CRET: Continuous Representation-based Reconstruction for Computed Tomography"
- python3
- pytorch 2.1.2+cuda11.8
- matplotlib, yaml, tqdm, timm, etc..
- Download AAPM-Mayo dataset at here
- Our CRET requires sinogram data. To generate sinogram data, run forward projection as:
python sinogen.py
- After generating sinogram and ground truth image as '.npy' extension, put these datasets as folows:
/Dataset
├── L067
│ ├── img
│ ├── sinogram
├── L096
│ ├── img
│ ├── sinogram
...
training the reconstruction module corresponding to the step-1 & encoder as RDN (use 2 GPUs)
python main.py --config train/sino/train_rdn-cret --gpu 0,1 --save rdn_cret
training the restoration module corresponding to the step-2 (use 2 GPUs)
python main.py --config train/dual/train_rdn-cret+ --gpu 0,1 --save rdn_cret+
- Pre-trained modules are can be downloaded in here (rdn_cret.pt & rdn_cret+.pt)
- Note that mask_info.pt is information about the sinogram mask for sinogram squeezing and should be placed at "data/mask/"
- We provide a demo trial of our proposed CRET in
demo.ipynb
Our code is built mainly with reference to EDSR and OPE-SR. We appreciate them for their invaluable contributions to the development community.