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

MCP v2 changes things a lot for the developer

 As I go deep into MCP v2, overwhelming changes are being noticed: Session is being done away with. Logging is removed - all you can do is u...