Grader Issue, Trigger Word Detection

Can you also delete the folders: models, raw_data and XY_train. In my case, I cannot seem to do that. I can delete the files inside them, but not the folders themselves

You might have to get a terminal and use the linux “rmdir” command if the File Explorer UI won’t let you do that. But I don’t think that’s the problem: it’s not the directory names that are wrong and it’s deleting the individual files contained in those directories that causes “Get Latest Version” to create the new files.

  • I downloaded my completed notebook file (which scores 100/100).
  • I deleted all of the files from all of the folders.
  • I was able to delete all of the folders except models, raw_data, and XY_train. I suspect these folders have some hidden files which the Notebook browser does not display, so I could not delete those files to make those folders empty. But I do not think this is a anything to cause a problem.
  • I re-installed the assignment using “Help->Get Latest Version”.
  • I submitted the default notebook, and got 0/100 and got an expected assert due to none of the assignment code being completed.
  • I then re-named the default notebook, uploaded my completed notebook, submitted it, and got 100/100.

From this I summarized that the “Get Latest Version” tool does install all of the files that the grader requires.

So I have no idea what is causing the “file not found” error, or how to fix it.

@endrit.dosti
I looked inside those folders to see if they have any hidden files (opening a Terminal and using “ls -l -a”). Yes, there are hidden items - they seem to deal with checkpoints.

I’ve never used a checkpoint. I wonder if you have used “Save and Checkpoint”, and if so whether it might by some weird quirk be causing a problem for the grader.

I have no idea, I’m just aiming in the dark.

@endrit.dosti
Please download your notebook file and send it to me via a private message. I’ll look it over and see if it provides any clues.

@TMosh Hi, I am not sure if I can send the code here, I am writing what worked for me and where I went wrong, so let me know if this works.

@endrit.dosti , if cell 24 is a problem then it’s somewhere around unq3 or 4 if I’m right, kindly look into cell24 and check if you have the right files in the environment or the right calls to pull what is needed

I suspect the way file is connected could be an issue, if its that then we would have to add the below line before X ( x = graph_spectrogram(“train.wav”))
→ file_handle = background.export(“train.wav”, format=“wav”)

if its for detect triggerwords then you would have to add the following code
→ file_handle = audio_clip.export(“tmp.wav”, format=“wav”) before accessing X

Because we can access x even without the filehandle line but the grader doesn’t recognize it.

So let me know if this works,
Cheers.

You should never have to add any lines of code to the notebook.

The only time that adding code to a notebook would be useful is if you accidentally deleted (or added) some code that broke the assignment.

But restoring the original notebook from the Help menu would fix that.

What would certainly break the grader would be if you added some code to test your own wav files, which the grader cannot access (because its test files are in a different folder on the server).