keras-io
keras-io copied to clipboard
Video transformers - added fixes to enable model load after saving and added HF model & space
Hi, I have updated the video transformers example with links to model & space on Hugging Face hub.
While trying to save and re-load the model, I faced few errors. Have added the fixes for those as well.
Hi @fchollet, would be great if you could take a quick look at this PR whenever you find the time. It has minimal suggested changes.
Hi, I have updated the video transformers example with links to model & space on Hugging Face hub.
Thanks!
Please remove serialization support, it is not needed for this example and it adds complexity to the code example. If you want to reload a saved model, please use model.save_weights()/load_weights(). You do not need to store the model's architecture in serialized format since you have access to the model's code.
Hi, I have updated the video transformers example with links to model & space on Hugging Face hub.
Thanks!
Please remove serialization support, it is not needed for this example and it adds complexity to the code example. If you want to reload a saved model, please use
model.save_weights()/load_weights(). You do not need to store the model's architecture in serialized format since you have access to the model's code.
Hi @fchollet , makes sense. I had initially added that because I was trying to load the model for inference in a separate script where I didn't have access to the model's code. But within the context of this example, it makes sense to keep the code simple as we already have access to the model's code.
Have removed the serialization support now. Let me know if you'd like me to fix anything else.
@fchollet Can you have a look at this?