Your help would be greatly appreciated!

Hi @Hongyi_Yin,

Do you have a question? I think something went wrong with your post.


This is a link to a Coursera forum post. Looking at the forum post in question, there are a number of problems:

You show grader pages from the YOLO assignment, but the code you show is from the MobilNet assignment (alpaca model). So which is it?

What is Augmentor? That name was not defined anywhere. You create a function called data_augmenter earlier in the MobilNet notebook. That’s what you should be referencing. Well, that assumes you are talking about the MobilNet assignment. If you really are dealing with the YOLO assignment, then there is something deeply wrong here if you think it makes sense to be “copy/pasting” functions from the MobilNet assignment into the YOLO notebook.

They are using some fairly sophisticated TensorFlow and Keras constructs here. If you’re new even just to plain old python, these are pretty deep waters. Keras is using a lot of OO concepts here.

I suggest you take a few deep cleansing breaths, then get yourself a clean copy of the notebook (procedure documented on the FAQ Thread) and read it through from the beginning again.

1 Like

Hi,dearest, so far, I got 75/100. Previously I got 0/100 and a message that the UNQ-C2 part was missing. I thought of asking the mentors for help but then thought it might be against the rules. So I just inserted UNQ-C2 into google anfd find some stuff similar to it and it worked for a while. But my question remains: How do you solve the NameError IMG_SIZE undefined problem in general, for I have come across it some times and even if I do not have to deal with the present one, it may come up in the future.

Asking the mentors for help is perfectly fine, as long as you don’t post your source code as part of your question on the public forums.

The point is that UNQ_C2 is a completely generic “tag” that they add in the comments of the code cells so that the grader can find them. There is a UNQ_C2 in every assignment. It doesn’t make sense to copy a UNQ_C2 from a different assignment into your notebook, which seems to be what you have done.

If you deleted a cell, the right thing to do is get a clean copy of the notebook in question and then start over gain. You can “copy/paste” any successfully completed work from the previous version. There is a copy about how to get a fresh copy on the FAQ Thread.

If you have undefined variables, then the question is where are they defined. It either means you have not executed the previous cells that define those variables or the code has not yet been written. In the latter case, you don’t need to import the code from somewhere else: you need to write it according to the instructions they give you in the notebook.