Contains all the transforms relevent to deployment in the `fastai` library
from fastcore.test import test_eq
All code and methods originates from the fastai
, and this library has only implemented parts particular to inference. Another way of saying this is all the transforms are their validation-counterparts only
im = PILBase.create('forest.jpg')
test_eq(_get_sz(im), (2048,1368))
cp = CropPad(224)
test_eq(cp(im).size, (224,224))
rc = RandomCrop(224)
test_eq(rc(im).size, (224,224))
r = Resize(224)
test_eq(r(im).size, (224,224))
rrc = RandomResizedCrop(224)
rrc(im)
rr = RatioResize(224)
rr(im)