Using a DataGenerator during testing, by omitting the labels param is fine. But users should be made aware, that if they give a DataAugmentation object during testing, it will be ignored, because manipulating testing images is pointless.
Favored solution
gen_val = data_generator.DataGenerator(
samples=samples,
path_imagedir=path_imagedir,
image_format=image_format,
labels=None, # testing,
data_aug=data_aug # still giving a DataAugmentation object, which should be ignored
)
Problem description
Using a
DataGenerator
during testing, by omitting thelabels
param is fine. But users should be made aware, that if they give aDataAugmentation
object during testing, it will be ignored, because manipulating testing images is pointless.Favored solution