Pre-process the images immediately after loading them.
To avoid loading all the full resolution images into memory (with the load_in_memory
option), then resizing them all, it would be better to pre-process them directly after they have been loaded.
Edited by Mélodie Boillet