Save and Load a Model with TensorFlow's Keras API

preview_player
Показать описание
In this episode, we'll demonstrate the various ways of saving and loading a Sequential model using TensorFlow's Keras API.

🕒🦎 VIDEO SECTIONS 🦎🕒

00:42 Save and Load the Entire Model
03:55 Save and Load the Model Architecture
06:21 Save and Load the Model Weights
09:01 Collective Intelligence and the DEEPLIZARD HIVEMIND

💥🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎💥

👋 Hey, we're Chris and Mandy, the creators of deeplizard!

👉 Check out the website for more learning material:

💻 ENROLL TO GET DOWNLOAD ACCESS TO CODE FILES

🧠 Support collective intelligence, join the deeplizard hivemind:

🧠 Use code DEEPLIZARD at checkout to receive 15% off your first Neurohacker order
👉 Use your receipt from Neurohacker to get a discount on deeplizard courses

👀 CHECK OUT OUR VLOG:

❤️🦎 Special thanks to the following polymaths of the deeplizard hivemind:
Tammy
Mano Prime
Ling Li

🚀 Boost collective intelligence by sharing this video on social media!

👀 Follow deeplizard:

🎓 Deep Learning with deeplizard:

🎓 Other Courses:

🛒 Check out products deeplizard recommends on Amazon:

🎵 deeplizard uses music by Kevin MacLeod

❤️ Please use the knowledge gained from deeplizard content for good, not evil.
Рекомендации по теме
Комментарии
Автор

👉 Check out the blog post and other resources for this video:
👀 Come say hey to us on OUR VLOG:

deeplizard
Автор

Best tutorial by far in Keras... finally someone who truly teaches! Thank you a lot!

EduardoRohdeEras
Автор

Mandy, your Jupyter Code runs beautifully in VSCode step-by-step with your video. Your narration speed is perfect. What more can I say, a perfect learning experience in every aspect. Deeplizard is hands down the Best of Breed in its class.

Sikuq
Автор

Just crazy! Directly-to-the-point explanation. Keep up the good work!

furkatsultonov
Автор

Thank you very much for this video! It was really eye-opening and this is gonna help me a lot with my assignment, especially with learning how to load models created by others!

tymothylim
Автор

Great concise tutorials! much appreciated! 👍

Muuip
Автор

Thank you very much for this video. This topic is really very important to know.

theprimordialdude
Автор

Thankss aa lootttt, this helped meeee

yournemesis
Автор

Thanks for your keras video playlist. Please upload one playlist on Tensorflow 2.X from beginner to advance .

nakulmali
Автор

Great content! I'm struggling to save my custom tf.keras model to a .pb file, in order to deploy it with opencv dnn. It would be awesome if you covered this topic in a future video!

franciscomassucci
Автор

Thank you for this insightful tutorial! Question: After viewing the weights, how does one find the most important inputs in the model? That is, the ones that contribute more to the output?

fikiledube
Автор

Hey Mandy !! Love your explanations. I have a cliche question. What do you prefer between pytorch and tensorflow ?

arjunkashyap
Автор

Good tutorial. Question, after training and saving a model, is there a way to multiply the trained weights before loading them into a new model so I can see how it performs w/o training again? for example: (trained weights)*.95

yepnah
Автор

Hello, deeplizard!
I've just trained my first model after watching your great course.
I saved the model as a .pb, but I need also a .pbtxt file. I googled many ways to convert the .pb model, but none of them worked. Can you recommend a way to convert the model? The only files I got after saving the model are saved_model.pb, variables.index.

fabytruth
Автор

hi, if I for instance trained a model with 3 features (for stock price prediction), close price, volume and a moving average using LSTM. The length of the sequence is e.g. the last 20 points. Then when I have saved the model and load it back up can I extract information from the saved model about which features have been used and the sequence length that is used? The Sequence length I can extract but I do not see how I can extract information about which features have been used. I guess I need to save that to a separate file? This assuming I can't remember which features I used to train that particular model. For instance if I load the model 1 week after I trained it and I do not know or can't remember the features and sequence length I used. How would you retrieve this info? Can it be retrieved from a H5 file? Thanks.

dutchy
Автор

Hi, can I save and load the .JSON architecture and import weights into it?

Despamifier
Автор

I think I can give the viewer more infomation about:
1. The 1st way have some problems :
1.1. Embedding weights not save
1.2 Custom function should declear both save and load
1.3 Stage only save the steps (no epochs)
2. 2 & 3 use together

BTW. I dont know why . I tell some feelings. When I first saw the videos before . I can feel the passion or know something I dont know . EG. the east egg after each video makes me think . But now I found myself just go to school to listen to the teacher . Yeah, another class I have to take. just like that . I dont know what happend. Just feelings. Hope to give some feedback to your guys .

tingnews
Автор

This is very good!
Please make a github that we can try much more!
good luck

qnr
Автор

Can I save/load multiple keras neural network models into one .h5 file?

thurawin
Автор

So you can use json to save model and use save weights and then combine these two so you have same function as saving model

RizwanAli-jyub