How to shrink pets databunch 10 times smaller?

Hi everyone,

In lesson 1, the pets databunch contains full 6000+ images with both training and validation set. I want to shrink this databunch 10 times smaller. I wonder what is the most efficient way to do so?

I have a hard way to do it (below), but I wonder is there a more efficient way (automatic) of doing so? Thanks!

  1. created an additional folder data/images_min
  2. manually copy images from data/images to data/images_min
  3. then create path_img_min and fnames_min
  4. finally we can create data_min instead of data