-
Notifications
You must be signed in to change notification settings - Fork 7.1k
support confirming no virus scan on GDrive download #5645
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
Conversation
💊 CI failures summary and remediationsAs of commit 4d0980d (more details on the Dr. CI page): ✅ None of the CI failures appear to be your fault 💚
🚧 2 ongoing upstream failures:These were probably caused by upstream breakages that are not fixed yet.
This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
@@ -28,27 +28,24 @@ | |||
USER_AGENT = "pytorch/vision" | |||
|
|||
|
|||
def _urlretrieve(url: str, filename: str, chunk_size: int = 1024) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both this function and _save_response_content
below had the same functionality, so I factored it out.
@@ -202,70 +208,41 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[ | |||
""" | |||
# Based on https://stackoverflow.com/questions/38511444/python-download-files-from-google-drive-using-url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can drop this comment at some point, because our implementation no longer resembles the answer in the link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pmeier , stamping
Co-authored-by: Nicolas Hug <[email protected]>
Summary: * support confirming no virus scan on GDrive download * put gen_bar_updater back * Update torchvision/datasets/utils.py Reviewed By: NicolasHug Differential Revision: D35393174 fbshipit-source-id: 6a0977169f46dad3156c9bd60f13cf4a7ace176b Co-authored-by: Nicolas Hug <[email protected]> Co-authored-by: Nicolas Hug <[email protected]>
Fixes #5615.