The issue with the grader outputting " Model submission is invalid" when using Tensorflow 2.X seems to be a two year old bug with the Week 3 assignment.
If the keepers of the course could resolve this issue that would be great as it seems to have resulted in many learners wasting hours trying to find the correct version of tensorflow and tensorflowjs.
In lieu of this issue being resolved, I just wanted to share what modifications worked for me in Colab:
Apparently, the grading system will not accept a model created using the latest version of tensorflow and will mark the model as âinvalid modelâ. I do not really know why. By using tensorflow version 1.x I passed the assignment on a single try, compared to 4 failed attempts I try using tensorflow version 2.4.1.
Hopefully this helps other learners while this bug remains unresolved.
As per the latest version of the notebook, the following packages should get you a passing grade. Accuracy on the test set should be > 70% to pass the assignment.
So, I am getting the âThe model in your submission is invalid. Please try again!â error. I have tried all the above solutions, however none have worked. I am working on tensorflow 2.2 and tensorflowjs 2.0, with an accuracy above 70%.
I tried so many options in Colab, but I wasnât able to convert the model in compatible format to pass throug this assignment. My Colab Notebook crashed so many times due to my trials⌠What worked for me at the end was following:
In Colab I savedH5 model only, then I downloaded it to my local computer