SyntaxFix
Write A Post
Hire A Developer
Questions
In addition to @Emilia Apostolova answer to get the ground truth labels, from
generator = train_datagen.flow_from_directory("train", batch_size=batch_size)
just call
y_true_labels = generator.classes