I am attempting to run the cell below the import cell in the assignment workbook, the one that downloads the dataset and extracts it" but I get the following error when doing so:
Access denied with the following error:
Cannot retrieve the public link of the file. You may need to change
the permission to 'Anyone with the link', or have had many accesses.
You may still be able to access the file from the browser:
# NOTE: Please only run this if downloading with gdown did not work.
# This will run the script created above.
!bash download.sh
Step 2. Delete this line in the next code cell that downloads the dataset:
!gdown --id 1onaG42NZft3wCE1WH0GDEbUhu75fedP5
It should look like this and you can run it to download the validation set and extract the zipfiles:
# Get the Horse or Human validation dataset
!gdown --id 1LYeusSEIiZQpwN-mthh5nKdA75VsKG1U
test_local_zip = './horse-or-human.zip'
zip_ref = zipfile.ZipFile(test_local_zip, 'r')
zip_ref.extractall('/tmp/training')
val_local_zip = './validation-horse-or-human.zip'
zip_ref = zipfile.ZipFile(val_local_zip, 'r')
zip_ref.extractall('/tmp/validation')
zip_ref.close()
Step 3. When you see that the unzip is successful, delete Code Cell 1 and 2 that you created in Step 1. This is important. If you leave them there, the grader will throw an error re: invalid syntax.
Step 4. Do the rest of the assignment and submit! You should be able to get a grade.
Hope this also works for you while we’re resolving the current issue. Thank you!
Hi Dwarakesh! Welcome to Discourse! Please reopen the notebook from the classroom to see the changes. Make sure that you’re referring to the same notebook though. This thread is about the TF1 C2 W3 assignment. If you’re referring to a different notebook, kindly create a new topic in the correct week and please mention the lab name. Thanks!