Closed Sparkofska closed 5 years ago
Hey,
Since I used the image queue in training phase, which is different with inference and evaluation. You can find the pre-processing part in image_reader.py
.
Thanks for the quick reply. But I'm still wondering why a channel swapping (RGB to BGR conversion) is necessary?
Since the pre-trained weight from original author is based on caffe, which use BGR color space. However, tensorflow read images using RGB color space.
OK, simple answer, got it. Thank you very much!
Hi there, I have a question concerning the preprocessing part in
evaluate.py
andinference.py
: The channels get swapped from RGB to BGR, but I cannot find such a swapping intrain.py
. Why is it applied and did I miss it intrain.py
?