I found that when I initiated a cnn learner with cnn_learner and pretrained=True, validation set’s dataloader is missing Normalize in its after_batch (i.e. learner.dls.valid), while it is present in both learner.dls.after_batch and learner.dls.train.after_batch.
I tried the fastai installed in my local laptop and also the fastai in kaggle kernel, they all have the above issue. I recalled I came across a similar discussion on this before, but for some reasons I couldnt find back the thread. How could I resolve this?
Umm its strange, I can see it now
probably because I didnt run the session from scratch by the time (I kept uninstall, reinstall, upgrade in the session)
thanks! upgrading to 2.3.1 works
additionally would be great if someone could give me a pointer to the fix. I couldnt find out what was breaking the code.