I am trying to do semantic segmentation with Keras and when trying to load the images i get this error using flow_from_directory
method.
Found 0 images belonging to 0 classes.
Found 0 images belonging to 0 classes.
This is my code.
from tensorflow.keras.applications.resnet50 import preprocess_input
from tensorflow.keras.preprocessing.image import ImageDataGenerator
data_generator = ImageDataGenerator()
train_generator = data_generator.flow_from_directory(
directory="../input/Training_dataset/Images",
target_size=(IMG_SIZE, IMG_SIZE),
batch_size=16,
class_mode=None,
classes=None
)
mask_generator = data_generator.flow_from_directory(
directory="../input/Training_dataset/Masks/all",
class_mode=None,
classes=None,
batch_size = 1,
)
I have read this question but solution didnt work Keras for semantic segmentation, flow_from_directory() error
AttributeError: 'zip' object has no attribute 'shape'
Thanks anyways ill check your kernel – Hangdog