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
cd0268cd
Unverified
Commit
cd0268cd
authored
Nov 20, 2020
by
Philip Meier
Committed by
GitHub
Nov 20, 2020
Browse files
temporarily disable check if quota exceeded for Google drive (#3035)
parent
a884cb7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
torchvision/datasets/utils.py
torchvision/datasets/utils.py
+3
-1
No files found.
torchvision/datasets/utils.py
View file @
cd0268cd
...
...
@@ -120,7 +120,9 @@ def list_files(root: str, suffix: str, prefix: bool = False) -> List[str]:
def
_quota_exceeded
(
response
:
"requests.models.Response"
)
->
bool
:
# type: ignore[name-defined]
return
"Google Drive - Quota exceeded"
in
response
.
text
return
False
# See https://github.com/pytorch/vision/issues/2992 for details
# return "Google Drive - Quota exceeded" in response.text
def
download_file_from_google_drive
(
file_id
:
str
,
root
:
str
,
filename
:
Optional
[
str
]
=
None
,
md5
:
Optional
[
str
]
=
None
):
...
...
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