Thanks for you reply. I got your point. However I need the image at 6 different resolution, which will increase the argument of net too much… Maybe packing the images in a dict is a way but when I have batch_size larger than one… I am not sure whether the packing procedure the dataset doing recursively will deal with dict… Therefore I think do the resize in net inside is another way…