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

Heatmap visualization #59

Closed AishwaryaAllada closed 3 years ago

AishwaryaAllada commented 3 years ago

Hello,

Thank you for providing the script for the visualization of the heatmap of a WSI.

Following this, [https://github.com/mahmoodlab/CLAM#Heatmap-Visualization], I got the error as mentioned below.

Traceback (most recent call last): File "create_heatmaps.py", line 164, in model = initiate_model(model_args, ckpt_path) File "/mnt/ntfs-d/akallada/Desktop/CLAM/utils/eval_utils.py", line 36, in initiate_model ckpt = torch.load(ckpt_path) File "/home/akallada/anaconda3/envs/clam/lib/python3.7/site-packages/torch/serialization.py", line 419, in load f = open(f, 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'heatmaps/demo/ckpts/s_0_checkpoint.pt'

Any leads could be helpful. Thank you in advance.

fedshyvana commented 3 years ago

Hi, looks like gitignore prevented uploading the ckpt file - it should be fixed now if you pull the update.