You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* New publication is coming out! **Mixed-view Refinement MaskGAN: Anatomical Preservation for Unpaired MRI-to-CT Synthesis**. Stay tuned!
8
8
***Refinement MaskGAN version**: An extended model, which refined images using a simple, yet effective multi-stage, multi-plane approach is develop to improve the volumetric definition of synthetic images.
9
9
***Model enhancements**: We include selection strategies to choose similar MRI/CT matches based on the position of slices.
10
10
11
-
## MaskGAN Framework
11
+
## 🏆 MaskGAN Framework
12
12
13
-
A novel unsupervised MR-to-CT synthesis method that preserves the anatomy under the explicit supervision of coarse masks without using costly manual annotations. MaskGAN bypasses the need for precise annotations, replacing them with standard (unsupervised) image processing techniques, which can produce coarse anatomical masks.
14
-
Such masks, although imperfect, provide sufficient cues for MaskGAN to capture anatomical outlines and produce structurally consistent images.
13
+
A novel unsupervised MR-to-CT synthesis method
14
+
- preserves the anatomy under the explicit supervision of coarse masks without using costly manual annotations. MaskGAN bypasses the need for precise annotations, replacing them with standard (unsupervised) image processing techniques, which can produce coarse anatomical masks.
15
+
- shape consistency loss to preserve the overall structure of images after a cycle of translation.
15
16
16
17

17
18
@@ -22,7 +23,7 @@ Such masks, although imperfect, provide sufficient cues for MaskGAN to capture a
22
23
The repository offers the official implementation of our paper in PyTorch.
23
24
24
25
25
-
## Installation
26
+
## 🛠️ Installation
26
27
### Option 1: Directly use our Docker image
27
28
- We have created a public docker image `stevephan46/maskgan:d20b79d4731210c9d287a370e37b423006fd1425`.
28
29
- Script to pull docker image and run docker container for environment setup:
@@ -42,10 +43,10 @@ docker run --name maskgan --gpus all --shm-size=16g -it -v /path/to/data/root:/d
42
43
pip install -r requirements.txt
43
44
```
44
45
45
-
## Dataset Preparation and Mask Generations
46
+
## 📚 Dataset Preparation and Mask Generations
46
47
Refer to [preprocess/README.md](./preprocess/README.md) file.
47
48
48
-
## MaskGAN Training and Testing
49
+
## 🚀 MaskGAN Training and Testing
49
50
- Sampled training script is provided in train.sh
50
51
- Modify image augmentations as needed `--load_size` (resize one dimension to be a fixed size), `--pad_size` (pad both dimensions to an equal size), `--crop_size` (crop both dimensions to an equal size).
51
52
- Train a model:
@@ -69,10 +70,10 @@ sh test.sh
69
70
```
70
71
- The results will be saved at `./results/exp_name`. Use `--results_dir {directory_path_to_save_result}` to specify the results directory. There will be four folders `fake_A`, `fake_B`, `real_A`, `real_B` created in `results`.
71
72
72
-
## Evaluate results
73
+
## 🔍 Evaluate results
73
74
- The script `eval.sh` is provided as an example. Modify the variable `exp_name` to match your experiment name specified by parameter `--name` when running test.py.
74
75
75
-
## Citation
76
+
## 📜 Citation
76
77
If you use this code for your research, please cite our papers.
77
78
78
79
```
@@ -84,6 +85,6 @@ If you use this code for your research, please cite our papers.
84
85
}
85
86
```
86
87
87
-
## Acknowledgments
88
+
## 🙏 Acknowledgments
88
89
This source code is inspired by [CycleGAN](https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix) and [AttentionGAN](https://github.com/Ha0Tang/AttentionGAN).
0 commit comments