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.12k stars 364 forks source link

visualization #276

Open studymanhujinbo opened 3 weeks ago

studymanhujinbo commented 3 weeks ago

Hello author, how do you use the visual code?

his0car commented 3 weeks ago

Have a look at the heatmap/configs/config_template.yaml file. The comments in the config file explain it well

studymanhujinbo commented 3 weeks ago

Have a lookt at the heatmap/configs/config_template.yaml file. The comments in the config file explain it well

I wanted to replace the model with my own, but it failed, what is the right thing to do, thanks for the reply。if i want TransMIL model to replace yours

his0car commented 3 weeks ago

I'm not the author and you changed your question. The visualizations depend on the attention given by the CLAM learning algorithm, not its final prediction, so you can't just drop TransMIL in it's place. You can either adapt the code or write your own attention visualization.