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

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

alexhartl
Copy link
Collaborator

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.

@Inokinoki
Copy link
Collaborator

This should also close #5525 eventually.

@tomvdw tomvdw added the copybara-import Internal label for PR management label Jan 14, 2025
@copybara-service copybara-service bot merged commit 855b1cd into tensorflow:master Jan 15, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
copybara-import Internal label for PR management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NonMatchingChecksumError when loading cnn_dailymail dataset in Google Colab
3 participants