Path Issue for result.pkl: NotADirectoryError Despite File Being Present
clinical_path : /Users/tanmayagavile6811gmail.com/desktop/data/gen-img/gen-img_clinical.csv clf_label : label surv_label : None encoder : resnet50_3d patch : True decoder : attn numOfaug : 5 pretrain : True dec_enc_dim : 256 attn_latent_dim : 64 numOffolds : 5 loss : cross exp_dir : /Users/tanmayagavile6811gmail.com/desktop/tripath/RESULT_PATH/MIL_simulation/clf__cls-3__split-kf-5/seed--10__patch_128-128_step_128-128_3D_all_global__decay--1e-05__drop--0.25__prop--0.5__enc--2plus1d--imagenet_low_25k_top_1pct_mean_HE_aug__dec--attn--64--64__accum--1_aug--5__20250222-102852__ft--0/checkpoints/ checkpoint_path : /Users/tanmayagavile6811gmail.com/desktop/tripath/RESULT_PATH/MIL_simulation/clf__cls-3__split-kf-5/seed--10__patch_128-128_step_128-128_3D_all_global__decay--1e-05__drop--0.25__prop--0.5__enc--2plus1d--imagenet_low_25k_top_1pct_mean_HE_aug__dec--attn--64--64__accum--1_aug--5__20250222-102852__ft--0/checkpoints/ckpt_split--0.pt result_path : /Users/tanmayagavile6811gmail.com/desktop/tripath/RESULT_PATH/MIL_simulation/clf__cls-3__split-kf-5/seed--10__patch_128-128_step_128-128_3D_all_global__decay--1e-05__drop--0.25__prop--0.5__enc--2plus1d--imagenet_low_25k_top_1pct_mean_HE_aug__dec--attn--64--64__accum--1_aug--5__20250222-102852__ft--0/result.pkl conf_yaml_path : /Users/tanmayagavile6811gmail.com/desktop/tripath/RESULT_PATH/MIL_simulation/clf__cls-3__split-kf-5/seed--10__patch_128-128_step_128-128_3D_all_global__decay--1e-05__drop--0.25__prop--0.5__enc--2plus1d--imagenet_low_25k_top_1pct_mean_HE_aug__dec--attn--64--64__accum--1_aug--5__20250222-102852__ft--0/conf.yaml feats_path : /Users/tanmayagavile6811gmail.com/desktop/tripath/RESULT_PATH/MIL_simulation/clf__cls-3__split-kf-5/seed--10__patch_128-128_step_128-128_3D_all_global__decay--1e-05__drop--0.25__prop--0.5__enc--2plus1d--imagenet_low_25k_top_1pct_mean_HE_aug__dec--attn--64--64__accum--1_aug--5__20250222-102852__ft--0/checkpoints/ path : /Users/tanmayagavile6811gmail.com/Desktop/Data/gen-img/patch_128-128_step_128-128_3D_all_global/2plus1d_h5_patch_features/imagenet_low_25k_top_1pct_mean_HE_aug/ mode : internal config : conf/config_inference.yaml No pattern match found for _True__enc--resnet50_3d--True*dec--attn--256--64aug--5. Trying to load .pt files directly... Total 5 model files found!
Total 5 models found in /Users/tanmayagavile6811gmail.com/desktop/tripath/RESULT_PATH/MIL_simulation/clf__cls-3__split-kf-5/seed--10__patch_128-128_step_128-128_3D_all_global__decay--1e-05__drop--0.25__prop--0.5__enc--2plus1d--imagenet_low_25k_top_1pct_mean_HE_aug__dec--attn--64--64__accum--1_aug--5__20250222-102852__ft--0/checkpoints/ ckpt_split--0.pt ckpt_split--1.pt ckpt_split--2.pt ckpt_split--3.pt ckpt_split--4.pt
Testing with model 1/5
Traceback (most recent call last):
File "/Users/tanmayagavile6811gmail.com/Desktop/TriPath/inference.py", line 317, in
Hello, Can you please tell me how to solve this issue?