I just looked into the source of the keras VGG16 implementation and there’s a preprocess function that does exactly what the lambda function does.
My only thought now is that the preprocess function isn’t being called and I can’t figure out how I should call it using batches and the imageDataGenerator.