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

How to use independent test sets #166

Closed YinZhe0412 closed 1 year ago

YinZhe0412 commented 1 year ago

Hello, When using independent test sets, I don't know how to add the contents of my own datasets. I have tried to add features directory into --data_root_dir, modified the csv file in eval.py, but there is something wrong.

CUDA_VISIBLE_DEVICES=0 python eval.py --drop_out --k 10 --models_exp_code task_1_tumor_vs_normal_CLAM_50_s1 --save_exp_code task_1_tumor_vs_normal_CLAM_50_s1_cv --task task_1_tumor_vs_normal --model_type clam_sb --results_dir results --data_root_dir lung_FEATURES_DIRECTORY --split all

lung_FEATURES_DIRECTORY:features of my test set task_1_tumor_vs_normal_CLAM_50_s1: results of trained model

Thank you!

fedshyvana commented 1 year ago

sorry for the late reply, if you still have not figured out, maybe you could post your modification to eval.py and the error you're getting and i can try to take a look. Feel free to re-open the issue in that case