Closed Ellyuca closed 3 years ago
Hi @Ellyuca , thanks for your interest in our work.
I couldn't remember the details after many years. But my experience with CNNs is that they are usually quite robust to BGR or RGB ordering. You can try both and the one with the slightly higher benign accuracy deemed the one used for training.
Thank you for your fast reply.
Hi, First of all thank you for this interesting work. I have a question about the image preprocessing. In the file keras_models.py there is the function named scaling_tf():
def scaling_tf(X, input_range_type): """ Convert to [0, 255], then subtracting means, convert to BGR. """
In this code the you split the channels of the image in red, green, blue in order to perform the conversion to BGR.
There is the TODO comment which says what VGG_MEAN[0] should be swapped with VGG_MEAN[2].
I want to ask if you recommend doing this modification.
Thank you for your time. Have a nice day.