Closed pdyhaha closed 3 months ago
It seems that "labels" is missing in the code:
meta_info[""].items() --> meta_info["labels"]
Thanks for @reckdk 's comments 👍 @pdyhaha Close this issue, since it is solved. You can comments if you still have some questions.
Traceback (most recent call last): File "C:\Users\pl\Desktop\FILE\SAM-Med3D-main\utils\prepare_data_from_nnUNet.py", line 70, in
for idx, cls_name in meta_info[""].items():
KeyError: ''
HepaticVessel {'0': 'CT'}
num_classes: 2 {'0': 'background', '1': 'Vessel', '2': 'Tumour'}
我试了好几个数据集都不行,dataset.json里也没有空字符啊,很奇怪