I recall Jeremy mention that he uses the resize to make the data loading go faster.
Its possible that your confusion maybe stemming from the order of the function calls:
tf = tfms_from_model(...bhah...)
data = ImageClassifierData.from_path(...blah..., tf, ...blah...)
At this point, neither transformation nor any resizing has been applied to the images. However, if you choose to speed things up, you can call data.resize which does the following:
- resizes the the images (hopefully something smaller!)
- stores them in a folder (
/tmpin this case ) AND - returns a different (but similar)
dataobject that is pointing to thetmpfolder from (2).
Afterwards, your learner can go on using data along with any transformation you specified in the tf step, but on the smaller images instead.
EDIT: and for transformation size sz that is already over 300, I guess he decided to go ahead with using the original/bigger images
At least, thats what I understood 