Update
I can now confirm that the size tuple is height by width.
I figured it out by trying display images
data.show_batch(rows=6, figsize=(14,12))
But I still would like to know how to find it through the source code, as finding something through source code will be the daily routine for me to find out my answer quickly in a self-serve manner.
I would like to know the tuple for size parameter, whether it is
width , height
or
height, width
I have been swimming in the source code sea and found myself drowning…
here is my digging path:
ImageDataBunch.from_folder() -> create_from_ll() -> lls.transform(…size=size…) -> self.train.transform(tfms[0], **kwargs) -> I found self.train is ItemList
so I tried to find the self.train.transform(tfms[0], **kwargs) in the Class ItemList and found nothing…