Solved by ptrblck in post #6 
              
              
                Thanks for the information. 
If I understand the use case correctly, you would have 884*3000 images in each epoch, where each of the original 884 images will be randomly transformed 3000 times. 
In that case, my previous proposal should work and this code snippet would show, what I meant: 
class MyD…