Unverified Commit cd0268cd authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

temporarily disable check if quota exceeded for Google drive (#3035)

parent a884cb7b
...@@ -120,7 +120,9 @@ def list_files(root: str, suffix: str, prefix: bool = False) -> List[str]: ...@@ -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] 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): def download_file_from_google_drive(file_id: str, root: str, filename: Optional[str] = None, md5: Optional[str] = None):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment