src = (ImageList.from_csv(path, 'train_v2.csv', folder='train-jpg', suffix='.jpg')
I noticed this returns an
ImageList and if I do
src.show() it’ll actually show me the image! So, I looked at
Image.show() and it seems that it does not actually load the image into memory. It just uses
def show(self, ax:plt.Axes=None, figsize:tuple=(3,3), title:Optional[str]=None, hide_axis:bool=True, cmap:str=None, y:Any=None, **kwargs): "Show image on `ax` with `title`, using `cmap` if single-channel, overlaid with optional `y`" cmap = ifnone(cmap, defaults.cmap) ax = show_image(self, ax=ax, hide_axis=hide_axis, cmap=cmap, figsize=figsize) if y is not None: y.show(ax=ax, **kwargs) if title is not None: ax.set_title(title)
Which means it must have been done when I called
But, I can’t seem to find where the image is loaded even here. So I guess my question is, when is the image actually loaded in from the file system?