I need to extract. the item transformation (e.g. creating PIL object and resizing) and batch transformation (e.g. normalizing) from a learner and apply them to a PIL image or simply a path.
So I create basic data loader and then a learner like this:
You can look at the after_item and after_batch, this is more or less the exact pipeline. Anything that’s a Lighting or Affine transform isn’t applied to the validation set.
Also, if you want an input path to the image that’s specifically the type transforms