Skip to content

Commit 1895b58

Browse files
authoredJul 29, 2024
Update README.md
1 parent 2877875 commit 1895b58

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed
 

‎README.md

+19-11
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ In this study, we propose a parallel, bi-graph neural network, designated as SCU
77

88
![image](https://github.com/user-attachments/assets/11e8cf93-6b2f-46cb-a084-a251567ef600)
99

10-
## To-do list
11-
12-
- [x] Update the implementation of SCUBa-Net.
13-
- [x] Update datasets used in the study: KBSMC colon datasets, UHU, UBC prostate datasets, gastric and bladder datasets.
14-
- [x] Document for constructing spatially-contrained graph.
15-
- [ ] Document for training SCUBa-Net.
16-
- [ ] Document for inference with SCUBa-Net.
17-
1810
## Datasets
1911

2012
1. Colon dataset:
@@ -31,9 +23,9 @@ In this study, we propose a parallel, bi-graph neural network, designated as SCU
3123
4. Bladder dataset:
3224
- NMI Bladder dataset: [BTrain, BValid, BTest](https://github.com/zizhaozhang/nmi-wsi-diagnosis)
3325

34-
## Obtain spatially-constrained graph
26+
## Obtain node embeddings for spatially-constrained graph
3527

36-
We provide the process to obtain the spatially-constrained graph, as described in Section III. Methodology (B.2) in `spatially_constrained_graph` folder:
28+
We provide the process to obtain the node embeddings spatially-constrained graph, as described in Section III. Methodology (B.2) in `spatially_constrained_graph` folder:
3729

3830
1. First, an patch image sould be tiled into sub-patches:
3931

@@ -52,7 +44,23 @@ python 2.train_clr.py
5244
```
5345
python 3.build_graphs.py --data_path /path/to/dataset --data_graph_path /path/to/output/graph
5446
```
55-
47+
48+
## Training SCUBa-Net
49+
50+
Use the script `train.py` and specify the directory path of the dataset images (to build the spatially-unconstrained graph), and the path of the node embeddings mentioned above to build the spatially-constrained graph.
51+
52+
```
53+
CUDA_VISIBLE_DEVICES=[gpu id] python train.py --image_path /path/to/dataset --spatially_constrained_graph_path /path/to/output/graph
54+
```
55+
56+
## Evaluating SCUBa-Net
57+
58+
Specify the directory path of the test dataset images as well as the corresponding node embeddings:
59+
60+
```
61+
CUDA_VISIBLE_DEVICES=[gpu id] python test.py --image_path /path/to/dataset --spatially_constrained_graph_path /path/to/output/graph
62+
```
63+
5664
## Citation
5765

5866
If any part of this code is used, please give appropriate citation to our paper. <br />

0 commit comments

Comments
 (0)