Creating the labels based on directories

PHOTO EMBED

Tue May 21 2024 16:07:12 GMT+0000 (Coordinated Universal Time)

Saved by @Uncoverit #python

# Creating the labels based on directories
class_dict = {}
count = 0
for disease_name in oral_disease_file_names_dict.keys():
    class_dict[disease_name] = count
    count = count + 1
class_dict
content_copyCOPY