Hello! I want to download and use the course material on my local computer. For some reason I cannot load the attached script (test_utils and cnn_utils) in my local machine, and it has resulted in errors because I need the functions to load datasets. I have made sure that they are all under the same folder, could anybody pinpoint the problem?
I have followed the thread and downloaded all the files, yet I’m still unable to use the provided function. Do you have any more suggestions? I have followed the thread on one of the assignments and it works … but not here?
If the file cnn_utils.py is there in the same directory as the notebook, but the “import” fails, then what that means is that the “current working directory” of your notebook is not what you think it is. Try adding a new cell before the “import” cell that contains exactly these commands:
!pwd
!ls -l
The exclamation point there is an “escape” that tells the notebook to run those as linux shell commands instead of python code. That will tell you what the current working directory and then will list the contents of that directory. My prediction is that you will not see cnn_utils.py in that directory.
Now you have to figure out how to “cd” to the appropriate directory.