Skip to content

Commit 5f45a65

Browse files
committed
update readme
1 parent 0462a1f commit 5f45a65

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

README.md

+12-13
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,36 @@ Image registration aims to establish spatial correspondence across pairs, or gro
1717

1818
## Network:<a id="Network"/>
1919
The kernal idea is to use dep learning network to mimic the process of deforming the template mesh under the guidence of contours.
20-
![image](https://github.com/XiangChen1994/MR-Net/blob/main/fig/MRNet.png)
20+
![image](https://github.com/XiangChen1994/DDIR/blob/main/fig/DDIR.png)
2121

2222
## Repo Contents:<a id="Repo Contents"/>
23-
This code is based on [Pixel2mesh](https://github.com/nywang16/Pixel2Mesh), where the GCN block and the mesh loss are mainly from it.
24-
The point feature extraction is partially referred to [PointNet++](https://github.com/charlesq34/pointnet2).
23+
This code is partially referred to [voxelmorph](https://github.com/voxelmorph/voxelmorph), where the GCN block and the mesh loss are mainly from it.
2524

2625
## Package dependencies:<a id="Package dependencies"/>
27-
This repository is based on Python2.7, Tensorflow and Tensorlayer.
28-
The version of the main packages is as follows,
29-
- Tensorflow==1.7.0
30-
- tflearn
26+
This repository is based on Python3.6, Tensorflow and Keras.
27+
The versions of the main packages are as follows,
28+
- Tensorflow==1.5.0
29+
- Keras==2.2.4
3130

3231
## Dataset:<a id="Dataset"/>
33-
Our network is trained based on UKBB dataset. The input contours are extracted from manual segmentation results, and the groun-truth is generated by traditional method (deforming a template mesh conditioned by the corresponding contours). If you want to train MR-Net by yourself but have no access to the UKBB, ACDC dataset could be another option.
32+
Our network is trained and tested based on UKBB cardiac MR images. If you want to train DDIR by yourself but have no access to the UKBB, ACDC dataset could be another option.
3433

3534
## Training:<a id="Training"/>
36-
Use the following command to train the MR-Net.
35+
Use the following command to train the DDIR.
3736
```sh
38-
CUDA_VISIBLE_DEVICES=0 python train.py --data_dir path/to/trainfile/
37+
python train.py --data_dir path/to/trainfile/ --gpu 0 --model_dir path/to/model file/
3938
```
4039

4140
## Testing:<a id="Testing"/>
42-
Use the following command to test the MR-Net. Chamfer Distance (CD), Earth Mover Distance (EMD), Hausdorff Distance (HD) and Point cloud to point cloud (PC-to-PC) error are evaluated in this paper.
41+
Use the following command to test the DDIR. Dice score, Hausdorff Distance (HD) and several clinical indices are evaluated in this paper.
4342
```sh
44-
CUDA_VISIBLE_DEVICES=0 python test.py --data_dir path/to/testfile/
43+
python test.py 0 path/to/model file/ modelname
4544
```
4645

4746
## Demo:<a id="Demo"/>
4847
To reconstruct 3D cardiac mesh with pretrained model from contours.
4948
```sh
50-
CUDA_VISIBLE_DEVICES=0 python demo.py --test_file demo/test.vtk
49+
python demo.py 0 path/to/model file/ modelname
5150
```
5251

5352
## Citation:<a id="Citation"/>

fig

-1
This file was deleted.

fig/DDIR.png

242 KB
Loading

0 commit comments

Comments
 (0)