flyyufelix / DenseNet-Keras

DenseNet Implementation in Keras with ImageNet Pretrained Models
MIT License
566 stars 264 forks source link

RGB or BGR? #18

Closed cswhjiang closed 6 years ago

cswhjiang commented 6 years ago

Hi, this is a nice work. And I have some questions about how to use the model.

What tool is used convert the caffe model? And what order should be used for testing, RGB or BGR. Thanks.

flyyufelix commented 6 years ago

BGR. You can refer to https://github.com/flyyufelix/DenseNet-Keras/blob/master/test_inference.py. OpenCV reads the image into BGR format

As to your other question on converting Caffe to Keras, you can refer to my blog post: https://flyyufelix.github.io/2017/03/23/caffe-to-keras.html

cswhjiang commented 6 years ago

Thanks!