I am working on a multi-label classification problem and faced some memory issues so I would to use the Keras image_dataset_from_directory
method to load all the images as batch. How do you apply a multi-label technique on this method.
I have these folders:
['Tomato_BacterialSpot', 'Tomato_EarlyBlight', 'Tomato_Healthy', 'Tomato_LateBlight']
I am generating class names using the below code.
Here is the sample code tutorial for multi-label but they did not use the image_dataset_from_directory
technique.
label = imagePath.split(os.path.sep)[-2].split("_")
and I got the below result but I do not know how to use the image_dataset_from_directory
method to apply the multi-label?
- BacterialSpot
- EarlyBlight
- Healthy
- LateBlight
- Tomato