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
FixesProject-MONAI/MONAI#5539
### Description
A few sentences describing the changes proposed in this pull request.
### Checks
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [ ] Notebook runs automatically `./runner [-p <regex_pattern>]`
Signed-off-by: Behrooz <[email protected]>
Simon Graham et al., HoVer-Net: Simultaneous Segmentation and Classification of Nuclei in Multi-Tissue Histology Images.' Medical Image Analysis, (2019). https://arxiv.org/abs/1812.06499
10
+
Simon Graham et al., HoVer-Net: Simultaneous Segmentation and Classification of Nuclei in Multi-Tissue Histology Images.' Medical Image Analysis, (2019). <https://arxiv.org/abs/1812.06499>
11
11
12
12
### 1. Data
13
13
14
-
CoNSeP datasets which are used in the examples can be downloaded from https://warwick.ac.uk/fac/cross_fac/tia/data/hovernet/.
15
-
- First download CoNSeP dataset to `data_root`.
16
-
- Run prepare_patches.py to prepare patches from images.
14
+
CoNSeP datasets which are used in the examples can be downloaded from <https://warwick.ac.uk/fac/cross_fac/tia/data/HoVerNet/>.
15
+
16
+
- First download CoNSeP dataset to `DATA_ROOT` (default is `"/workspace/Data/Pathology/CoNSeP"`).
17
+
- Run `python prepare_patches.py` to prepare patches from images.
17
18
18
19
### 2. Questions and bugs
19
20
20
21
- For questions relating to the use of MONAI, please us our [Discussions tab](https://github.com/Project-MONAI/MONAI/discussions) on the main repository of MONAI.
21
22
- For bugs relating to MONAI functionality, please create an issue on the [main repository](https://github.com/Project-MONAI/MONAI/issues).
22
23
- For bugs relating to the running of a tutorial, please create an issue in [this repository](https://github.com/Project-MONAI/Tutorials/issues).
23
24
24
-
25
25
### 3. List of notebooks and examples
26
+
26
27
#### [Prepare Your Data](./prepare_patches.py)
27
-
This example is used to prepare patches from tiles referring to the implementation from https://github.com/vqdang/hover_net/blob/master/extract_patches.py. Prepared patches will be saved in `data_root`/Prepared.
28
+
29
+
This example is used to prepare patches from tiles referring to the implementation from <https://github.com/vqdang/hover_net/blob/master/extract_patches.py>. Prepared patches will be saved in `DATA_ROOT`/Prepared.
28
30
29
31
```bash
30
-
# Run to know all possible options
32
+
# Run to get all possible arguments
31
33
python ./prepare_patches.py -h
32
34
33
-
# Prepare patches from images
35
+
# Prepare patches from images using default arguments
36
+
python ./prepare_patches.py
37
+
38
+
# Prepare patch to use custom arguments
34
39
python ./prepare_patches.py \
35
-
--root `data_root`
40
+
--root `DATA_ROOT` \
41
+
--ps 540 540 \
42
+
--ss 164 164
36
43
```
37
44
38
45
#### [HoVerNet Training](./training.py)
46
+
39
47
This example uses MONAI workflow to train a HoVerNet model on prepared CoNSeP dataset.
40
-
Since HoVerNet is training via a two-stage approach. First initialised the model with pre-trained weights on the [ImageNet dataset](https://ieeexplore.ieee.org/document/5206848), trained only the decoders for the first 50 epochs, and then fine-tuned all layers for another 50 epochs. We need to specify `--stage` during training.
48
+
Since HoVerNet is training via a two-stage approach. First initialized the model with pre-trained weights on the [ImageNet dataset](https://ieeexplore.ieee.org/document/5206848), trained only the decoders for the first 50 epochs, and then fine-tuned all layers for another 50 epochs. We need to specify `--stage` during training.
41
49
42
50
Each user is responsible for checking the content of models/datasets and the applicable licenses and determining if suitable for the intended use.
43
51
The license for the pre-trained model used in examples is different than MONAI license. Please check the source where these weights are obtained from:
0 commit comments