pplonski / keras2cpp

This is a bunch of code to port Keras neural network model into pure C++.
MIT License
679 stars 153 forks source link

Convolution2D with border_mode='same' incorrect #17

Open torsten-wilhelm opened 7 years ago

torsten-wilhelm commented 7 years ago

The Convolution2D layer with border_mode='same' does not give the same results as the Keras/Theano version (border_mode='valid' is ok in my test).

pplonski commented 7 years ago

Can you show your keras.json file or Keras config that you used? what dim ordering have you used?

torsten-wilhelm commented 7 years ago

I use theano ordering.

{ "image_dim_ordering": "th", "epsilon": 1e-07, "floatx": "float32", "backend": "theano" }

pplonski commented 7 years ago

Do you still have an issue?