I feel kind of silly asking this, but I was debugging the data block API of v1.0.54 and I couldn’t seem to pin down where in the codebase images get transformed. Here’s what I think I know:
DeviceDataLoaderthere is a
proc_batch()method which does the following:
for f in listify(self.tfms): b = f(b).
This method gets called when iterating through the data loader with
self.tfmsin the line of code above does not depend on what I pass into the
.transform()method of the LabelLists. That is whether I pass in the default transforms that come from
get_transforms()or remove the
.transform()method from the chain in the data block, the
self.tfmsis the same (which is either
Noneor a transform for normalization if I normalize at the end).
I’m clearly missing something. Any help?