C2W1 I can't satisfy the output

Hi can anyone help me? I’m working on the C2W1 assignment and getting stuck on the lab, especially on train_val_datasets code. The output of my code seems doubled from the expected output and as I inspected on the file directory, I guess the entire files was doubled also. Is this an error from the lab or just I didn’t understand well with the program. Thank you for the help

Odds are good that this happened when coursera resolved a recent jupyter environment incident.

Please follow these steps to refresh your workspace and try again. Don’t forget to remove the PetImages directory as well.

Inside the notebook, use !rm -rf DIRNAME to recursively remove the directory and its children.

Thank you for the reply. In the meantime, I already find the solution, refers to this

Hi. In addition to Balaji’s suggestion, there are also a couple of other fixes mentioned in this thread. Namely, you can either:

  • Delete the files with timestamp suffixes, or
  • Rename the previous folder

I think Balaji’s is the best though to save space and make the lab load faster in case you will revisit it.

Will ask Coursera if there’s a way they can purge the duplicate files for everyone so other learners won’t run into the same issue. Thank you for reporting.

*edit: I see you also just posted the same thread above :laughing:

Thank you Chris for the answer. Yeah I just tried the method from the thread and it worked well for me :grin:

1 Like