SciSharp / Keras.NET

Keras.NET is a high-level neural networks API for C# and F#, with Python Binding and capable of running on top of TensorFlow, CNTK, or Theano.
MIT License
591 stars 124 forks source link

trying to load hdf5 model #207

Closed realzuy closed 3 years ago

realzuy commented 3 years ago

Hi, I am trying to use my keras rnn model saved from python in C#.

this method: var model = Model.LoadModel("e:\model.hdf5");

raise exception: Python.Runtime.PythonException: 'ModuleNotFoundError : No module named 'tensorflow'

and I do not understand - why? please help! thx!

realzuy commented 3 years ago

I figured it out it was very simple, there was two copies of python on the computer. i just removed one and installed the necessary libraries for the remaining