# Problem with submitting assignment 1

**URL:** <https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924>\
**Category:** Advanced Computer Vision with TensorFlow\
**Tags:** week-module-1\
**Created:** [November 20, 2022, 5:45pm UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924 "2022-11-20T17:45:45Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Latifa](https://avatars.discourse-cdn.com/v4/letter/l/ecd19e/32.png) [@Latifa](https://community.deeplearning.ai/u/Latifa)\
**Post date:** [November 20, 2022, 5:45pm UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/1 "2022-11-20T17:45:45Z")

</div>

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???

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [November 21, 2022, 11:49am UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/2 "2022-11-21T11:49:11Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [November 21, 2022, 11:52am UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/3 "2022-11-21T11:52:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alex\_Gris](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@Alex\_Gris](https://community.deeplearning.ai/u/Alex_Gris)\
**Post date:** [November 21, 2022, 11:59am UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/4 "2022-11-21T11:59:05Z")

</div>

I am facing the same problem.

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [November 21, 2022, 12:02pm UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/5 "2022-11-21T12:02:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [November 21, 2022, 12:13pm UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/6 "2022-11-21T12:13:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chris.favila](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/chris.favila/32/126338_2.png) [@chris.favila](https://community.deeplearning.ai/u/chris.favila)\
**Post date:** [November 22, 2022, 5:03am UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/7 "2022-11-22T05:03:25Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Alex\_Gris](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@Alex\_Gris](https://community.deeplearning.ai/u/Alex_Gris)\
**Post date:** [November 23, 2022, 5:20pm UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/8 "2022-11-23T17:20:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![chris.favila](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/chris.favila/32/126338_2.png) [@chris.favila](https://community.deeplearning.ai/u/chris.favila)\
**Post date:** [November 24, 2022, 11:44am UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/9 "2022-11-24T11:44:19Z")

</div>

Great! Glad it worked!

---

<div class="post-metadata">

**Author:** ![Kayode\_Sonaike](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@Kayode\_Sonaike](https://community.deeplearning.ai/u/Kayode_Sonaike)\
**Post date:** [December 29, 2022, 2:16pm UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/10 "2022-12-29T14:16:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Danish\_Kamal](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Danish\_Kamal](https://community.deeplearning.ai/u/Danish_Kamal)\
**Post date:** [April 13, 2023, 7:10pm UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/11 "2023-04-13T19:10:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Pere\_Martra](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/pere_martra/32/36218_2.png) [@Pere\_Martra](https://community.deeplearning.ai/u/Pere_Martra)\
**Post date:** [April 13, 2023, 8:21pm UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/12 "2023-04-13T20:21:36Z")

</div>

@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!

---

<div class="post-metadata">

**Author:** ![Kadali\_Harshavardhan](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@Kadali\_Harshavardhan](https://community.deeplearning.ai/u/Kadali_Harshavardhan)\
**Post date:** [April 21, 2023, 4:16pm UTC](https://community.deeplearning.ai/t/problem-with-submitting-assignment-1/232924/13 "2023-04-21T16:16:14Z")

</div>

> **[Google Colaboratory](https://colab.research.google.com/drive/1xke4qyVWycTgyagwspP-1RXOWZKapeh-?usp=sharing)**

please help me with this
