The above-mentioned scenario(Peter provided) assumes that validation_dir is a parameter of the function of test_datagen.flow_from_directory()
. So the logic is that the test_dir
just has the one-levelone folder structure(./test/folder/image
) that you provided in the weblink.
test_datagen.flow_from_directory( validation_dir,...)
is a method cascading that is syntax which allows multiple methods to be called on the same object. In this way, you can use the function of flow_from_directory()
.