Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dataset downloads from Google Drive #10963

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexhartl
Copy link

A while ago, when downloading big files from Google Drive, Google introduced a confirmation page that warns about the file not being virus-checked. Since the direct download links in TFDS were no longer functional, we tried to circumvent this confirmation page by appending confirm=t to the URL.

More recently, Google also disallows this circumvention by adding a temporary UUID to the confirmation download URLs, so it is no longer possible to download from GDrive using a static URL.

Several datasets therefore are no longer functional, throwing a NonMatchingChecksumError:

  • cnn_dailymail
  • caltech_birds
  • robonet
  • accentdb
  • reddit_tifu
  • gov_report
  • scientific_papers
  • imagenet_sketch
  • wider_face
  • deep_weeds

This PR parses the retrieved confirmation page and extracts the confirmation download URL, fixing downloading of the above datasets.

Fixes #8981, #5729, #5232, #5544, #5535.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NonMatchingChecksumError when loading cnn_dailymail dataset in Google Colab
1 participant