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
Copy file name to clipboardExpand all lines: examples/JSRT/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ mkdir result
38
38
pymic_net_run test config/train_test.cfg
39
39
```
40
40
41
-
2. Then edit `config/evaluation.cfg` by setting `ground_truth_folder_list` as your `JSRT_root/label`, and run the following command to obtain quantitative evaluation results in terms of dice.
41
+
2. Then edit `config/evaluation.cfg` by setting `ground_truth_folder_root` as your `JSRT_root`, and run the following command to obtain quantitative evaluation results in terms of dice.
In this example, we show how to use a customized CNN to segment the heart from X-Ray images. The configurations are the same as those in the `JSRT` example except the network structure.
6
+
In this example, we show how to use a customized CNN and a customized loss function to segment the heart from X-Ray images. The configurations are the same as those in the `JSRT` example except the network structure and loss function.
7
7
8
-
The customized CNN is detailed in `my_net2d.py`, which is a modification of the 2D UNet. In this new network, we use a residual connection in each block.
8
+
The customized CNN is detailed in `my_net2d.py`, which is a modification of the 2D UNet. In this new network, we use a residual connection in each block. The customized loss is detailed in `my_loss.py`, where we combine Dice loss and MAE loss as our new loss function.
9
9
10
-
To use the customized CNN, we also write a customized main function in `jsrt_train_infer.py`, where we import a TrainInferAgent from PyMIC and set the network as our customized CNN.
10
+
We also write a customized main function in `jsrt_train_infer.py` so that we can combine TrainInferAgent from PyMIC with our customized CNN and loss function.
11
11
12
12
## Data and preprocessing
13
13
1. Data preprocessing is the same as that in the the `JSRT` example. Please follow that example for details.
2. Edit `config/evaluation.cfg` by setting `ground_truth_folder_list` as your `JSRT_root/label`, and run the following command to obtain quantitative evaluation results in terms of dice.
34
+
2. Edit `config/evaluation.cfg` by setting `ground_truth_folder_root` as your `JSRT_root`, and run the following command to obtain quantitative evaluation results in terms of dice.
Copy file name to clipboardExpand all lines: examples/fetal_hc/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ mkdir result
35
35
pymic_net_run test config/train_test.cfg
36
36
```
37
37
38
-
2. Then edit `config/evaluation.cfg` by setting `ground_truth_folder_list` as your `HC_root/training_set_label`, and run the following command to obtain quantitative evaluation results in terms of dice.
38
+
2. Then edit `config/evaluation.cfg` by setting `ground_truth_folder_root` as your `HC_root`, and run the following command to obtain quantitative evaluation results in terms of dice.
Copy file name to clipboardExpand all lines: examples/prostate/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ mkdir result
33
33
pymic_net_run test config/train_test.cfg
34
34
```
35
35
36
-
2. Then edit `config/evaluation.cfg` by setting `ground_truth_folder_list` as your `data/promise12/preprocess/label`, and run the following command to obtain quantitative evaluation results in terms of dice.
36
+
2. Then edit `config/evaluation.cfg` by setting `ground_truth_folder_root` as your `data/promise12/preprocess`, and run the following command to obtain quantitative evaluation results in terms of dice.
0 commit comments