Hey @ptrblck_de
Thanks for your help in most of the questions that I read to solve my problem in the past week.
I have a dataset from medical images that are extremely large (each of them almost [8900 * 8700* 3]), therefore we split them manually into some smaller patches ( ~ [300 * 300 * 3] ) with respect to some meannginful medical properties.
Now I have a separate folder for each patient that contains patches that are split from the original image. ( Folder 1 [image 0, image 1 ,…] folder 2 [image 0, image 1 ,… ])
Now I want to build a data loader and then pass my input to a CNN, but  I confused after reading a lot of questions here.
Would you please help me with these questions?

I should use ImageDataFolder or iterative Dataloder like you write here? Your above code can load my data?
my patches are not in the exact same size, I should transform them after load in init function?

Many thanks for your help in advance.