View source: R/segmentation_generator.R
Generates batches of data (images and masks). The data will be looped over (in batches).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
path |
Images and masks directory. |
colormap |
Class color map. For example |
mode |
Character. One of 'c("dir", "nested_dirs", "config_file")' |
only_images |
Should generator read only images (e.g. on train set for predictions). |
net_h |
Input layer height. Must be equal to '2^x, x - natural'. |
net_w |
Input layer width. Must be equal to '2^x, x - natural'. |
grayscale |
Defines input layer color channels - '1' if 'TRUE', '3' if 'FALSE'. |
scale |
Scaling factor for images pixel values. Default to '1 / 255'. |
batch_size |
Batch size. |
shuffle |
Should data be shuffled. |
subdirs |
Vector of two characters containing names of subdirectories with images and masks. |
column_sep |
Character. Configuration file separator. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.