base_skin_dir = os.path.join(r'C:\Users\teff\input', 'skin-cancer-mnist-ham10000')
imageid_path_dict = {os.path.splitext(os.path.basename(x))[0]: x
for x in glob(os.path.join(base_skin_dir, '*', '*.jpg'))}
print(imageid_path_dict)
lesion_type_dict = {
'nv': 'Melanocytic nevi',
'mel': 'Melanoma',
'bkl': 'Benign keratosis-like lesions ',
'bcc': 'Basal cell carcinoma',
'akiec': 'Actinic keratoses',
'vasc': 'Vascular lesions',
'df': 'Dermatofibroma'
}
我已经使用上面的代码从目标C:\ Users \ teff \ input \ skin-cancer-mnist-ham10000获取图像ID 但我得到的输出为-{}
不知道为什么请帮助