Description Usage Arguments Details Yields See Also
View source: R/preprocessing.R
Generates batches of augmented/normalized data from image data and labels
1 2 3 4 5 6 7 8 9 10 11 12 13 | flow_images_from_data(
x,
y = NULL,
generator = image_data_generator(),
batch_size = 32,
shuffle = TRUE,
sample_weight = NULL,
seed = NULL,
save_to_dir = NULL,
save_prefix = "",
save_format = "png",
subset = NULL
)
|
x |
data. Should have rank 4. In case of grayscale data, the channels axis should have value 1, and in case of RGB data, it should have value 3. |
y |
labels (can be |
generator |
Image data generator to use for augmenting/normalizing image data. |
batch_size |
int (default: |
shuffle |
boolean (defaut: |
sample_weight |
Sample weights. |
seed |
int (default: |
save_to_dir |
|
save_prefix |
str (default: ”). Prefix to use for filenames of saved
pictures (only relevant if |
save_format |
one of "png", "jpeg" (only relevant if save_to_dir is set). Default: "png". |
subset |
Subset of data ( |
Yields batches indefinitely, in an infinite loop.
(x, y)
where x
is an array of image data and y
is a
array of corresponding labels. The generator loops indefinitely.
Other image preprocessing:
fit_image_data_generator()
,
flow_images_from_dataframe()
,
flow_images_from_directory()
,
image_load()
,
image_to_array()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.