hergli sedki
hergli sedki

Reputation: 105

Load keras model built with python in C#?

I have a Keras (backend tensorflow) model saved in (h5 or json) format using python, but I 'don't know how to load it and use it in a C# solution. any suggestion (library, or some logics)?

Upvotes: 3

Views: 6904

Answers (1)

Micha Kaufman
Micha Kaufman

Reputation: 1065

Keras is built on TensorFlow which is a C++ project, so you can run it on almost every language you want with a simple wrapper.

Use Keras.NET (also available in nuget), and then load your model using:

var model = Keras.Models.Model.LoadModel(pathToYourModel.h5)

Good luck!

Upvotes: 7

Related Questions