Friday, May 7, 2021

Dataset from ImageDataGenerator 
I have created a Image Data Generator. Now can I convert it to a keras dataset ? 

Yes. You can use tf.data.Dataset.from_generator:


 tf.data.Dataset.from_generator(lambda: ImageDataGenerator().flow_from_directory('folder_path'),(tf.float32, tf.float32))

No comments:

Post a Comment

Loop Engineering: Designing the Systems That Prompt Your Agents

Loop Engineering For the last couple of years, the core skill in working with AI was writing a good prompt. You'd craft careful instru...