Pytorch Implement of Boundary-assisted Region Proposal Networks for Nucleus Segmentation (MICCAI 2020) Paper can be found here: https://arxiv.org/abs/2006.02695.
Codes are built based on Python 3.6+ and Pytorch 1.1. For some reasons, there also exists MATLAB scripts in this project. The MATLAB scripts are tested based on MATLAB2016.
We wrap all images into a .npy file (data_after_stain_norm_ref1.npy). Stain normalization is also performed. Ground truth of segmentation and boundary is saved in anoth .npy file (gt.npy, bnd.npy).
The wrapped data file can be generated using the scripts in 'data_generator_scripts'.
TAFE is the first stage of BRP-Net.
python main_train_kfold_tafe.py (dataset loc and other settings can be modified in main_train_kfold_tafe.py)
- pred.py: predict resulst of validation set for all saved snapshots.
- evaluate.py: evaluation for all saved snapshots.
- find the best snapshots, and modify the settings in pred_testset.py and evaluate_testset.py
- pred_testset.py
- evaluate_testset.py
- prepare_pred_trainset.py
- prepare_postproc_trainset.py
- (MATLAB) prepare_match_instance_predictions.m
- (MATLAB) prepare_save_matched_patches.m (In prepare_save_matched_patches.m, training patch dataset and validation patch dataset are split.)
Patch-Net is the second stage of BRP-Net
python main.py
- python eval.py
- python evaluate.py
- python find_best_snapshot.py
- python eval_testset.py
- python evaluate_testset.py
mailbox: [email protected]