Grader issue for C2W1 assignments


I have a problem at the time of assignment. I managed to code everything and get training accuracy over 95% and cross accuracy over 80%.

My file “history.pkl” is ok, I have 50/50.
But my notebook does not pass the validation step (0/50) and here is the error that appears:

There was a problem compiling the code from your notebook. Details:
[Errno 2] No such file or directory: ‘/tmp/PetImages/Cat/0.jpg’

However, I have checked in the “/tmp/PetImages/Cat/” folder and the files are there. I don’t understand anything at all!

Just have a look:

Can someone help me to validate my C2W1 “Cats and Dogs” assignments?

Thanks in advance,


Pierre (from France)

Hello @Pierre_BEJIAN
The problem may be that your notebook is corrupted, it the implementation is correct,
You can save your current notebook and then reset your workspace. After that, you can copy your code to a fresh new notebook and try resubmitting.
I hope this link can help you to carry out the reset process.


I’am working in a Google Colab Notebook. There is no “help” in the top right corner.

If it is the colab notebook there may be an error in your implementation. Can you send me a private message with your notebook. I can see if I can help out.

Problem solved!
It was a problem of selecting the non empty files.