Skip to content

Commit

Permalink
do not re-download from GDrive if file is already present (#5805)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier authored Apr 12, 2022
1 parent 78c24bb commit 467b841
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torchvision/datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[

if check_integrity(fpath, md5):
print(f"Using downloaded {'and verified ' if md5 else ''}file: {fpath}")
return

url = "https://drive.google.com/uc"
params = dict(id=file_id, export="download")
Expand Down

0 comments on commit 467b841

Please sign in to comment.