Skip to content

Commit e7f9510

Browse files
YosuaMichaelfacebook-github-bot
authored andcommitted
[fbsync] do not re-download from GDrive if file is already present (#5805)
Reviewed By: jdsgomes, NicolasHug Differential Revision: D36095682 fbshipit-source-id: 6567b5821ddc3815726c628213ed223ae817d4f5
1 parent 6d3bc4f commit e7f9510

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchvision/datasets/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[
234234

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

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

0 commit comments

Comments
 (0)