heuritech / convnets-keras

MIT License
594 stars 185 forks source link

Color order in preprocessing_image_batch #28

Closed skoos closed 7 years ago

skoos commented 7 years ago

In the function preprocess_image_batch, the color normalization is done in RGB space (using mean vector [123.68, 116.779, 103.939]), but it occurs after the colors are permuted in BGR.

The normalization should be done before the color permutation.