Open SergeySlyusarEZlo opened 5 years ago
Hey! This code was working with Keras 1.2 (if I remember correctly) and Theano. For using with Tensorflow you will need to do some adjustment in the code -> there is different ordering of channels, height, width and samples between Theano and Tensorflow - that's why it is not working.
Thanks
Em ter, 15 de jan de 2019 05:46, Piotr <notifications@github.com escreveu:
Hey! This code was working with Keras 1.2 (if I remember correctly) and Theano. For using with Tensorflow you will need to do some adjustment in the code -> there is different ordering of channels, height, width and samples between Theano and Tensorflow - that's why it is not working.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pplonski/keras2cpp/issues/41#issuecomment-454311381, or mute the thread https://github.com/notifications/unsubscribe-auth/ALf5O_byHRtxD3iDvDSD7YVf3vMwc4PRks5vDZV6gaJpZM4aAeE_ .
Thanks Em ter, 15 de jan de 2019 05:46, Piotr <notifications@github.com escreveu: … Hey! This code was working with Keras 1.2 (if I remember correctly) and Theano. For using with Tensorflow you will need to do some adjustment in the code -> there is different ordering of channels, height, width and samples between Theano and Tensorflow - that's why it is not working. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#41 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ALf5O_byHRtxD3iDvDSD7YVf3vMwc4PRks5vDZV6gaJpZM4aAeE_ .
You can try to use this one https://github.com/gosha20777/keras2cpp
Hello Freund, Grate work! I run your test with Python 2.7 , Keras 1.2.2 Tensorflow 1.0.1 and have wrong result:
....... Compile keras2cpp code Run predictions with dumped network and random data sample from step 2 Testing network from test_cnn.dumped on data from test_random_input.dat DataChunk2D 1x28x28 DataChunkFlat values: 0.0631625 0.092902 0.0489044 0.0912403 0.0523701 0.128736 0.0515021 0.180591 0.192843 0.0977486 Test, step 4 Compare Keras and Keras2cpp outputs Test: [ERROR] The output from Keras and Keras2cpp are different. Difference value: 0.154017945 Cleaning after test
What version of this items do you use ?