TensorFlow Tutorial 10 - Saving and Loading Models

preview_player
Показать описание

❤️ Support the channel ❤️

Paid Courses I recommend for learning (affiliate links, no extra cost for you):

✨ Free Resources that are great:

💻 My Deep Learning Setup and Recording Setup:

GitHub Repository:

✅ One-Time Donations:

▶️ You Can Connect with me on:
Рекомендации по теме
Комментарии
Автор

I was inspired and learned the basics of TensorFlow after I completed the TensorFlow specialization on coursera. Personally I think these videos I created give a similar understanding but if you wanna check it out you can. Below you'll find both affiliate and non-affiliate links, the pricing for you is the same but a small commission goes back to the channel if you buy it through the affiliate link which helps me create more future videos.

AladdinPersson
Автор

Great! Now I can do during loooong training sessions and terminate the process from time to time without worrying that I lose everything. I can just pick it up where I left it.

mortenrobinson
Автор

Thank you so much. This is very helpful.

jongcheulkim
Автор

Thanks for teaching. I want to use the weights to Android Studio, but I have no idea about how to use the ".pb" or ".tflite" models weights to be use in Android Studio details. Would you like to share about this part ? That helps me a lot. :D

dawi
Автор

Thank you for great video. I switched to PyTorch after working with tf/keras for a while. My problem was that it was impossible or very hard to save and load models with custom losses. It was a pain even in tf2.0 as 9 out 10 times a model would not load. Not sure if things have changed. A video on that topic (saving/loading with custom losses) would be very useful. Thanks again!

zaurr.
Автор

I am using sub-classes functional API for my deep learning model. I have saved the model successfully but when reload the same it asks for configuration which was not saved and also unable to predict_classes. How can i define these 2 methods in my Python BiLSTM based class.

knowledgeengr
Автор

So helpful video. How can I convert the subclass model into TF-Lite? Can you please help me out? Thanks in advance.

PaulAcademy
Автор

@Aladdin Persson: thanks again for these suggestion for future videos, tf.data, callbacks, serving etc.

riis
Автор

model.save() without an extension no longer works. You have to use a .keras or .h5 extension I believe

badar
Автор

If you load a model and trained it again, will it start its training from 0 again or will it retain its previous training state

jadejamig
Автор

Can you please make videos on the remaining ML solutions for Machine Learning with Andrew Course.

amitsaurabh
Автор

What's the difference between model.save_weights and tf.train.checkpoint? When do we use which?

jamesang
Автор

Do you have a tutorial on your pycharm setup

anonemoose
Автор

Sir, if we have saved the model as described above, how can we convert it to the TensorflowLite model so that it can be used in Android Studio, I have tried but using the Tensorflow Model Maker. I want to know how to be able to convert from saveModel to .tflite

fauzisafina
Автор

in the part defining MyModel. in self.dense1 there's already activation='relu'. but why we have to use tf.nn.relu in call function again?
isn't it going through relu two times?

라봉한-hf
Автор

For some reason, after loading the model and trying to make a test, the accuracy of the second test is a lot lower. For example, the test with the before saved model i got acc of 75% but after testing the loaded model the acc was down to 25%. I will be glad if someone knows and would tell me what the heck is going on
TY

benvoland
Автор

please i am working on NMT with attention using tensorflow, i want to save the model and the entire architecture into my google drive, i am using colab notebook.

jerijeesalhassan
Автор

Im getting this error. Unable to restore custom object of type _tf_keras_metric currently. Please make sure that the layer implements `get_config`and `from_config` when saving. In addition, please use the `custom_objects` arg when calling `load_model()`.

anonemoose
Автор

any can guide why am i receiving an error when i try it this way. The rest of the code is same. The error says to use .h5 file and i just dont want to because i this gives me headaches of not being able to find recourses online to get my weights from .h5 format.

furqanahmed
Автор

Is it possible to save the model with different name?

hossamalzomor