Hello,
I have trained the ‘Bird Box’ model successfully and the model summary checks out. However, when I download the ‘birds.h5’ file and upload it for grading, I received the message: “Your model could not be loaded. Make sure it is a valid h5 file.”
As was posted in the discussion forum on Coursera, this is an issue with the grader not being updated to TensorFlow 2.6. Please update the grading system!
@venmarco, the permanent change to the grader hasn’t been made yet, but there is a work-around in the assignment, which is intended to make it compatible with TF2.5:
# Average pooling 2D layer.
# Used instead of GlobalAveragePooling2D for compatibility with the current
# version of the grader. Please do not modify. (Date: 08/19/2021)
x = tf.keras.layers.AveragePooling2D((7,7))(features)
As long as you didn’t change this, it sounds like you probably have a different issue