Thanks to visit codestin.com
Credit goes to github.com

Skip to content

I've been training the model in Python for hours,How to load the trained model? #977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lindadamama opened this issue Feb 6, 2023 · 3 comments

Comments

@lindadamama
Copy link

No description provided.

@AsakusaRinne
Copy link
Collaborator

AsakusaRinne commented Feb 6, 2023

If tensorflow.keras is used to train the model, you could save it to hdf5 format and load the weights with Tensorflow.Keras.Model.load_weights. I guess that you may want to use pb format model to load the whole network without re-define the network structure. We are sorry for the inconvenience as we currently do not have this feature available. However, it is in the works and we anticipate its completion within a month. Thank you for your patience.

@Oceania2018
Copy link
Member

@lindadamama You can save the model in python, and use load to restore model in tf.net, and make sure you've upgraded to tf.net v0.100.4 and tf.keras v0.10.4.

@lucasramosdev
Copy link

lucasramosdev commented Feb 7, 2024

@lindadamama You can save the model in python, and use load to restore model in tf.net, and make sure you've upgraded to tf.net v0.100.4 and tf.keras v0.10.4.

How to use tf.net? How i call this function? How i import?

I'm newbie using Tensorflow.NET and this documentation is so confusing for me.

Can you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants