I'm trying to use a pretrained VGG 16 from keras. But I'm really unsure about what the input range should be.
Quick answer, which of these color orders?
- RGB
- BGR
And which range?
- 0 to 255?
- balanced from about -125 to about +130?
- 0 to 1?
- -1 to 1?
I notice the file where the model is defined imports an input preprocessor:
from .imagenet_utils import preprocess_input
But this preprocessor is never used in the rest of the file.
Also, when I check the code for this preprocessor, it has two modes: caffe and tf (tensorflow).
Each mode works differently.
Finally, I can't find consistent documentation on the internet.
So, what is the best range for working? To what range are the model weights trained?