mahmoodlab / CLAM

Data-efficient and weakly supervised computational pathology on whole slide images - Nature Biomedical Engineering
http://clam.mahmoodlab.org
GNU General Public License v3.0
1.02k stars 340 forks source link

label of instances #195

Closed ravigupta131 closed 5 months ago

ravigupta131 commented 1 year ago

Can anybody suggest how we can get label of instances of each slide

fedshyvana commented 5 months ago

Hey, sorry for the late follow-up, I do not have a script for this, but i think you can use logits, Y_prob, Y_hat, A, results_dict = model(features, instance_eval=True) and then instance labels will be a field in the result_dict.