For anyone who runs into this problem:
Since staff is on break until January 2nd, and this also might take a little while to fix, I think this hacky work-around should be enough to make the autograder happy:
- First, in order to use the GPU in Colab, do NOT run this cell near the beginning of the assignment:
# Install packages for compatibility with the autograder
!pip install tensorflow==2.8.0
!pip install keras==2.8.0
- At the beginning of section 5.2 Save your model for grading, add these cells:
a)
# First save the model we made using tf 2.15
model.save("birds_gpu.h5")
b)
# Install version of tf used by grader
!pip install tensorflow==2.8.0
!pip install keras==2.8.0
import tensorflow as tf
import tensorflow_datasets as tfds
When you run this cell, it will probably show you a Restart button that you need to press to start usinig the 2.8.0 version of Tensorflow. After pressing Restart, you can re-run this cell to confirm everything is now loaded properly
c)
model = tf.keras.models.load_model("birds_gpu.h5", compile=False)
After this, you can run the existing cell to save the model as “birds.h5”, and download the birds.h5 file to your computer. This should be enough to make the grader happy.
Note: When you download birds.h5 to your computer, make sure you have deleted or renamed any previous copies of birds.h5