Awesome, this is super helpful – thanks very much! If I get this straight, it means that I’ll need to write some Transform classes such as
class grizyCropPad(Transform):
[...]
def encodes(self, o: grizyTensorImage):
[...]
class grizyResize(Transform):
[...]
[...more transforms...]
class ToGrizyTensor(Transform):
[...]
def encodes(self, o: grizyTensorImage):
o = tensor(o).float()
return o
And then pass in grizyCropPad
to the item_tfms
argument while constructing the dataloaders.
Many thanks again!