aimagelab / mil4wsi

DAS-MIL: Distilling Across Scales for MILClassification of Histological WSIs
MIT License
45 stars 4 forks source link

FROC metric calculation #14

Closed dazhangyu123 closed 8 months ago

dazhangyu123 commented 9 months ago

Hello! Thanks for your great work!

Could you share code for generating an FROC curve? Additionally, I'm interested in understanding whether the FROC calculation involves plotting curves for all bags and then averaging them or directly calculating FROC for individual instances across all bags.

Bontempogianpaolo1 commented 9 months ago

Hi @dazhangyu123,

I have just uploaded two files to compute it. With compute_froc, I save all the attention with their coordinates. With evaluate froc, I plot the froc curve. It would be best if you had the GT masks. The code is a modified version of https://github.com/computationalpathologygroup/Camelyon16/blob/master/Python/Evaluation_FROC.py. The FROC computation involves all the attention scores across all bags.