I am working on a multi-label classification problem I faced memory issues so I want to use Keras image_dataset_from_directory method to load all images as batch. how to apply 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 the sample code tutorial for multi-label but they didn't use image_dataset_from_directory technique. https://www.pyimagesearch.com/2018/05/07/multi-label-classification-with-keras/
label = imagePath.split(os.path.sep)[-2].split("_")
and I got the below result but I don't know how to use image_dataset_from_directory method to apply the multi-label?
- BacterialSpot
- EarlyBlight
- Healthy
- LateBlight
- Tomato