Path: blob/master/templates/api/data_loading/index.md
3297 views
Data loading
Keras data loading utilities, located in keras.utils
, help you go from raw data on disk to a tf.data.Dataset
object that can be used to efficiently train a model.
These loading utilites can be combined with preprocessing layers to futher transform your input dataset before training.
Here's a quick example: let's say you have 10 folders, each containing 10,000 images from a different category, and you want to train a classifier that maps an image to its category.
Your training data folder would look like this:
You may also have a validation data folder validation_data/
structured in the same way.
You could simply do:
Available dataset loading utilities
{{toc}}