Problem with submitting assignment 1

I’m facing an issue with submitting assignment 1,
It keeps showing this message ‘ Your model could not be loaded. Make sure it is a valid h5 file.”

While the file is actually fine and I have tried loading the model and it’s working just fine.

Could you please help me with this issue???

1 Like

I am hoping there no problems with your model but if it they persist I could try upload your h5 file if you send it to me on private, and if there are is a problem, I could post a note for the staff to have a look on this issue!

Or send me a link to your colab assignment so I can produce the h5 myself since it could be a large and test it myself on the upload link.

I am facing the same problem.

Send me your lab link on private so I can test it myself and maybe raise an issue!

I see whats displaying, I will raise an issue on this.

Hi Latifa and Alex! The problem with the notebook is the use of the experimental module to access the SGD optimizer. That is not yet supported by the TF version used in the grader. Please use the SGD class under the optimizers module instead (i.e. just delete experimental). That should let the grader load your model. We’ll update the grader to accept the newer API but in the meantime, please use the older one first. We also placed a note in the notebook now to avoid this issue. Thank you for reporting!

2 Likes

Thank you, Chris! I am running the notebook now.

The link in the doc points to the experimental.SGD, so I just took the class from there. I guess it is a more common problem.

A.

1 Like

Great! Glad it worked!

2 Likes

Hi I seem to be having the same issue.
I’ve tried using both the experimental and released version of the stochastic gradient descent optimizer to train the model. With both attempts it’s still not recognised by the grader.

For reference on the colab notebook, i’m using tensorflow 2.9.
Any further suggestions would be greatly appreciated.

i am facing same issue is any one know how to resolve that

@Danish_Kamal @Kayode_Sonaike

Have you tried the solutio proposed by chris?

Hi Latifa and Alex! The problem with the notebook is the use of the experimental module to access the SGD optimizer. That is not yet supported by the TF version used in the grader. Please use the SGD class under the optimizers module instead (i.e. just delete experimental ). That should let the grader load your model. We’ll update the grader to accept the newer API but in the meantime, please use the older one first. We also placed a note in the notebook now to avoid this issue. Thank you for reporting!

please help me with this