Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
467b841a
Unverified
Commit
467b841a
authored
Apr 12, 2022
by
Philip Meier
Committed by
GitHub
Apr 12, 2022
Browse files
do not re-download from GDrive if file is already present (#5805)
parent
78c24bbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
torchvision/datasets/utils.py
torchvision/datasets/utils.py
+1
-0
No files found.
torchvision/datasets/utils.py
View file @
467b841a
...
@@ -234,6 +234,7 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[
...
@@ -234,6 +234,7 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[
if
check_integrity
(
fpath
,
md5
):
if
check_integrity
(
fpath
,
md5
):
print
(
f
"Using downloaded
{
'and verified '
if
md5
else
''
}
file:
{
fpath
}
"
)
print
(
f
"Using downloaded
{
'and verified '
if
md5
else
''
}
file:
{
fpath
}
"
)
return
url
=
"https://drive.google.com/uc"
url
=
"https://drive.google.com/uc"
params
=
dict
(
id
=
file_id
,
export
=
"download"
)
params
=
dict
(
id
=
file_id
,
export
=
"download"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment