Deep Learning Specialization - C4W4_Assignment_1 submission failure

In the Deep Learning Specialization course the C4W4_Assignment_1 and C4W4_Assignment_2 assignments have been failing to submit for the past 20 hours with “An unexpected error occurred. Please try again later”. Also all my work got blitzed on Assignment_2 after one of the failures.

I checked an earlier module in the course and it has submitted correctly. Also reviewed my code for GRADED FUNCTION(s) and there isn’t anything that doesn’t follow the guidelines. Is there any kind of clean up step I need to perform before submitting? Thanks.

It is always worth trying this sequence:

Kernel -> Restart and Clear Output
Save
Submit

The point is that the grader does not need to see your generated output: it only needs to call your functions. Submitting the cleared notebook is faster and gives you the best chance of success. Sometimes there can be syntax in the generated output that confuses the grader. Or you could just be experiencing “bad weather” on the servers. There were some pretty serious issues with AWS a couple of days ago, but I thought they had all cleared up by now …

1 Like

Thanks - tried the reset and clear, still getting the error for both assignments. Will wait until the weekend to see if the AWS issues clear up.

AWS has already fixed their known issues. So waiting problem won’t fix this.

“Unexpected error” often means there’s a significant problem with the metadata associated with your notebook.

There’s no “clean-up” step available, short of discarding your notebook and starting over with a fresh copy.

Maybe it’s time to look at your notebooks. We can’t do that on a public thread, but please check your DMs for a message from me.

Well, the other thing to try first would be what Tom suggested. Here’s a thread about how to get a clean copy. Then carefully “copy/paste” over just your code from the “YOUR CODE HERE” sections and then try again with the new notebook.

Also in the interests of going “Full Science” here, I just submitted those two assigments and both were graded successfully for me. So whatever is going on in your case is not a general platform problem …

I have seen the notebook on a private DM thread and it is different than the current version of the Face Recognition assignment in DLS Course 4 Week 4. Keith says that the normal procedure for getting a clean copy does not work, because the UI doesn’t provide the ? button. Apparently the version of the course Keith is accessing is not on Coursera, but on the DLAI platform. I was not aware that DLS had even been ported to that platform, let alone been released into the wild in that form.

@community-team can you please take a look and see if it’s possible for a student to access DLS on the DLAI platform?

Hi All,

I’m facing similar issue. Restart the kernet doesnt fit the issue. I’m on DLAI platform as well (not coursera). Is it a general issue for students running directly on DLAI platform? Thanks

Are you sure you didn’t modify anything outside the “YOUR CODE HERE” sections?

In Keith’s case, I looked at the notebook, and there are some changes outside the user code sections that involve loading a saved model file from a new filename that must have been created in the user’s local environment. We don’t have confirmation from Keith that that is causing the grader problem, but that type of change is a big risk in general.

I will double check and come back to you. Thanks for the quick reply

I didnt notice modifications outside the reserved code sections. How can I get a clean copy of the notebook from DLAI platform where the ? button is missing? Thanks

Paul - I did not make the change in the notebook that you are suggesting, as far as I recall it was in the notebook and I didn’t modify that cell. If there were a way to reset the notebook to the original I’d be happy to start over.

@chris.favila, can you chime-in on this issue? It seems there may be something platform-related going on that the mentors cannot diagnose.

1 Like

Hi everyone! Sorry for the late reply and thank you for reporting the issue. We are now investigating it and will patch the lab as soon as possible. Will update here.

Hello again. At first glance, looks like there’s a problem with the default files and software version in the lab environment. I’ve forwarded this to the right team and will get back to you when I hear back. In the meantime, please move on first to the next items in the course. I’m sorry for the experience. Rest assured we’ll do our best to resolve this soon.

Hi Chris, thanks to take care of this issue. Keep us inform once fixed.

C4W4_Assignment_2 is likely also impacted by this problem: I got the unexpected error as well whereas all tests are qualified as passed

Hi everyone. Please try resubmitting Assignment 1 now, and let me know how it goes. Thanks!

1 Like

I was informed that you can now also retry Assignment 2. Thanks!

1 Like