I really appreciate your help!
My issue is solved now.
I wonder, in case of this code aim to avoid memory issues with large data.
However, could it make a speed issue compared with loading all data in the constructor?
And I’d like to know whether it reads and processes images over and over at each epoch or not?
I really want to know how to avoid memory issues and get high processing speed.
Do you know the way?