What about adding a size limit in from_folder()

https://docs.fast.ai/data_block.html#ItemList.from_folder
in my case, I’m creating a valid set of size 100 from a folder of 15k images, I think adding a parameter which could limit the size of res in https://github.com/fastai/fastai/blob/master/fastai/data_block.py#L21 would be fine.