Closed Mgryn closed 1 year ago
Hi @Mgryn
Regarding the low Dice score for plasma cells, we are experiencing similar values on our end. The Dice coefficient in Figure 6 of the paper is calculated at the object level, not the pixel level. This means that even a single pixel overlap of contiguous regions is considered correct, hence the higher score. We chose this approach because it would be too cumbersome for pathologists to select nuclei at the pixel level. For pixel-level Dice scores, see Fig. 5, where the score is close to 0.27 (for test data).
Here are the answers to your questions.
@dakomura Thank you very much for your answers and providing the hyperparameters.
Hi @dakomura, I would like to obtain similar results to the ones presented in the article, but I have problems with doing so. For example, my current best val_dice_epoch value for plasma cells is 0.27, which is much lower than the result from testing stage in the article. I would like to ask for help as maybe I am doing something wrong. I would appreciate it if you could answer some of my questions:
6.train_segmentation_models
is should just use the HE images and masks as they are, or should I preprocess them ?Pytorch Lightning
,kornia
andtorchmetrics
do you have in your environment? After cloning the repository I was not able to run it withPL
1.7.4 andkornia
0.6.7 due tostochastic_weight_avg
being removed fromTrainer
constructor, problems withPyTorchLightningPruningCallback
and kornia.augmentation not havingGaussianBlur
. I fixed the errors, but I noticed that in my version oftorchmetrics
(0.9.3)ignore_index
parameter is not used.ignore_index
parameter unnecessary when passed tomerged_Intersection
andmerged_Union
? Both_intersection_from_confmat
and_union_from_confmat
do not take it as an argument, and based on union calculation,confmat[0, 1]
is actually necessary.Thank you in advance for help in obtaining better results.