I want to perform K fold validation with a CNN, but my image dataset is too large to fit into memory, and I used a generator to yield batches of images using keras\' flow_from_d