-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Unable to load weights from checkpoint in 05_transfer_learning_in_tensorflow_part_2_fine_tuning.ipynb #519
Comments
Review your |
@JordanTheDodger But it would start fine-tuning from the stage model_3 was completed not from the stage of feature extractor. We want to fine tune from the stage of feature extractor (model_2 before fine tuning on 10% data). |
@piyushongithub I had the same issue. Apparently is because the order of the weights changes when saving the model with modified trainable attributes link. I fixed it by saving the checkpoint as as h5 and setiing the base_modle layer to not trainable before loading the weights. I hope this helps. |
Hi @piyushongithub, This seems to be an issue with various versions of TensorFlow and the Please see #544 for some potential fixes (namely installing TensorFlow 2.9.0 which seems to be the most stable version at the time of writing). |
I ran the notebook "05_transfer_learning_in_tensorflow_part_2_fine_tuning.ipynb" on google colab but I got an error in "Model 4: Fine-tuning an existing model all of data" section. It seems like tensorflow is unable to load weights from checkpoint for model_2. . I am getting shape incompatible error. I have attached screenshot of the error below.
The text was updated successfully, but these errors were encountered: