Machine Learning, Deep Learning, Data Science, Towards Data Science, TensorFlow.
weights, before reloading the model config, and reload the weights after the model is properly loaded. The function below does the complete job. You can pass any model from Keras Applications (using Tensorflow 2.0), along with the regularizer you want, and it returns the model properly configured.