Inspection of preprocessed images

How do I get an image in its preprocessed form (in the form in which it will be fed into the network)? I would like to inspect the actual numbers (not just show a plot).

When fine-tuning a network which has been pretrained on e.g. ImageNet, I expect some behind-the-scenes preprocessing to occur within the fastai functions. I wish to ensure the form of the data that is actually being fed into the network.

1 Like

If you do x,y = data.one_batch() you will get a batch of what is fed in the network

1 Like