How to make custom flow from directory with ImageDataGenerator

Viewed 1851

Keras ImageDataGenerator looks like having strange biased design: while directory flow it expects that all images have single classes and distributed by subdirectories of the class name.

In my case I have each image having several classes and they are stored in CSV file in the same directory as images (in many-hot encoding).

Is it possible to feed Keras with such data (so that not load everything in memory)?

0 Answers
Related