I am experiencing the same problem. Code here
After making the same change at the Psedo labels I ran into the error.
ValueError: Error when checking : expected input_3 to have shape (None, 512, 14, 14) but got array with shape (1000, 512, 22, 40)
What is input_3 referring to? It seems like several people are getting this error, so at least I know I'm not alone.
Edit: Input_3 is referring to the model and the input shape from conv_test_feat (1000, 512, 22, 40) is not what it is expecting. Using the lrg_model works and I am moving forward with:
preds = lrg_model.predict(conv_test_feat, batch_size=batch_size*2)