C3W1-Bird boxes fresh colab errors

Hello.
Im unable to successfully submit my assignment, because the final conversion step is failing. There is also an error at the very first block. See below.

Error in first block:

Even though that error happens im able to run the rest until i get to the steps in Save the Model.

Error when attempting to install tensorflow 2.8.0:

Since the very first block error didnt seem to stop it i attempt to just go ahead with the file version conversion and get a TypeError. (yes i restarted the runtime after the previous step as it instructed)

I have a copy of my original .h5 file but i cant convert it to the format the grader wants. Please assit.

hi @yapfan

the last image where you got the type error was already given in the notebook??or you have added that cell?

Also can you confirm after the pip install tf 2.8 version cell run, did you restart the session as the instruction mentions.

The error in the last image showed up when i ran the cell above it it (with the assert in it).

I restarted the runtime before running that last cell as well. This was after i attempted to install version 2.8 (the middle image), and before running the assert line.

I also tried creating a fresh copy of the whole colab from coursera and re-making my changes and got the same issue.

this is i already understood, what I am asking in that assertion tf 2.8 version, was that code cell written by you or was already there?

Also remember tf 2.8 download is only for autograder, so that should have been at the end of the notebook assignment and not in the beginning.

The pip install 2.15 is surely needed to be added on top of the notebook.

That cell was already there. It is near the end of the notebook. The notebook starts by installing 2.15 at the beginning (pic 1), then after it saves the .h5 file it attempts to install 2.8 (pic 2). After that (and a restart of the runtime) it does that assert (pic 3). After that assert it loads and resaves the h5 file (this part i cant run because of the part before it).

in this image I see at top that after installing the 2.8 you didn’t restart the session before you run that assert 2.8

can you please confirm me this?

I zoomed out so you can see that section of the notebook. In this image i put an asterisk where i performed the session restart. I repeated the 2 cells in a pic again just now as well just in case.

1 Like

hi @yapfan

I have informed the staff, kindly wait for their response.

Regards
DP

Thank you.

I was able to resolve this. I had to downgrade protobuf, it was actually in the error message but i didnt see it. To downgrade i added a new code cell above the very first provided cell and put the following in it:

!pip install protobuf==3.20.*

After running that cell for the first time it tells you to restart the session, which i did. After that the assignment will work all the way through.

3 Likes

great @yapfan I have updated the staff about your correction done, they will look into and update the notebook. Thank you for reporting this issue!

Best regards
DP