bitbionic / keras-to-tensorflow

A tutorial on running Keras models in Tensorflow
MIT License
112 stars 67 forks source link

build_tutorial_cpp.sh doesn't work #6

Open illusioncognitive opened 5 years ago

illusioncognitive commented 5 years ago

I have tried to build build_tutorial_cpp.sh but failed. There is no protobuf folder in my ~/../tensorflow/bazel-tensorflow/external. There is a protobuf_archive folder. I have also tried with this but failed. Also there is no ltensorflow_cc file in my ~/../tensorflow/bazel-bin/tensorflow path.

I have attached the error image.

keras_2_tf_cpp

Please help me to solve this. Thanks.

bitbionic commented 5 years ago

This tutorial was built against Tensorflow 1.1, are you using that version? Others have had similar challenges, and when they used Tensorflow 1.1, the build worked correctly.

The Tensorflow API has changed quite a bit since I recorded the video, and I haven't tried yet to figure out the changes.

Hopefully this helps.

Good luck

On Sat, Nov 10, 2018, 8:55 PM illusioncognitive <notifications@github.com wrote:

I have tried to build build_tutorial_cpp.sh but failed. There is no protobuf folder in my ~/../tensorflow/bazel-tensorflow/external. There is a protobuf_archive folder. I have also tried with this but failed. Also there is no ltensorflow_cc file in my ~/../tensorflow/bazel-bin/tensorflow path.

I have attached the error image.

[image: keras_2_tf_cpp] https://user-images.githubusercontent.com/44234611/48308108-aef76180-e55c-11e8-8aac-3dfdeb092f4b.png

Please help me to solve this. Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitbionic/keras-to-tensorflow/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AG_UvDLpqHkzUHfk85-EPhJvQy1SD0wKks5ut4ObgaJpZM4YYRwW .

illusioncognitive commented 5 years ago

Thanks @bitbionic for your reply. I am using tensorflow 1.9 . But if I do git checkout r1.1 and then build bazel then will it work?

bitbionic commented 5 years ago

That's what I did. Keep in mind I did the tutorial in july or august if 2017 so my memory is a bit fuzzy :-) .. It should work for you using 1.1

On Sun, Nov 11, 2018, 8:48 AM illusioncognitive <notifications@github.com wrote:

Thanks @bitbionic https://github.com/bitbionic for your reply. I am using tensorflow 1.9 . But if I do git checkout r1.1 and then build bazel then will it work?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitbionic/keras-to-tensorflow/issues/6#issuecomment-437671684, or mute the thread https://github.com/notifications/unsubscribe-auth/AG_UvBd-Ax7VVUdW63TJIWn-q9XWWwARks5uuCrEgaJpZM4YYRwW .