Course 5 Week 3 Assignment 2 Trigger Word Detection – Missing Folders

Hi, I’m working on Course 5 Week 3 Assignment 2 Trigger Word Detection of the Deep Learning Specialization in the Jupyter Notebook C5W3_Assignment_2.ipynb.

Here is the structure of my current working directory:

> !pwd
/home/jovyan/work
> !ls
> C5W3_Assignment_2.ipynb  images      my_audio.wav  test_utils.py
> __pycache__		 model_data  td_utils.py   train.py

Apparently some folders are missing, as needed by the following commands:

IPython.display.Audio("./raw_data/activates/1.wav")
IPython.display.Audio("audio_examples/example_train.wav")
json_file = open('./pretrained/model.json', 'r')
...

I’ve already restarted the kernel and the browser several times but it didn’t help.
Has anyone had a similar problem before?

Are you using the DL.AI Learning Platform environment?
Or are you trying to run the assignment locally?

Hi Tom, thanks for the reply. I’m using the DeepLearning.ai platform.

OK. I have only run this specialization on Coursera, I have not tried it on the Learning Platform yet.

@TMosh If it’s not too much of trouble, could you please paste your results of !ls in C5W3_Assignment_2.ipynb?

Sorry, I have an allergy to using unix-based command lines.

Please go to the notebook’s File->Open menu, and post back a screen capture image of what it shows.

1 Like

I don’t see the code you showed in the latest version of that notebook. I think the problem is your files got updated, but your notebook did not. Here’s a sample of how they handle that sort of thing in the current version of the notebook:


So my suggestion would be to do the “Restore Original Version”. But as I’m sure you are aware, that will clobber your current version of the notebook. So you first need to download that to your local system and then after the “restore”, you’ll have to open both notebooks in separate tabs and carefully “copy/paste” any of your pre-existing solution code over to the fresh version. Being careful, of course, to see if any other adaptations are required in the code you wrote previously.

1 Like

Indeed, it seems that the course staff moved the data folders under model_data overnight and introduced a new variable BASE_DIR pointing to this new folder. Restore Original Version did the trick. Thank you very much for your help! :+1:
(This message was postponed due to the fact that I’ve reached the maximum number of replies per day as a new user. )

2 Likes