I need help with the right syntax for getting the set of 50 test images to print out. I cannot figure out to get them using test_data_gen.

next(test_data_gen) returns a tuple, which I cannot figure out how to use to produce an image. This is really frustrating. The documentation for DirectoryIterator has been useless.

Could you share your code and a link to the lesson? Good chance this is using a library I’m not familiar with, but no one will be able to help much without more info :slightly_smiling_face:

Will post code later after I’ve cleaned it up a bit. One thing I discovered is that next(test_data_gen) returns a batch, which was set to one. When I changed it to 50, I could access the images. But that completely jacked the accuracy of the model…

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.