Skip to content

Commit cd0268c

Browse files
authored
temporarily disable check if quota exceeded for Google drive (#3035)
1 parent a884cb7 commit cd0268c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

torchvision/datasets/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ def list_files(root: str, suffix: str, prefix: bool = False) -> List[str]:
120120

121121

122122
def _quota_exceeded(response: "requests.models.Response") -> bool: # type: ignore[name-defined]
123-
return "Google Drive - Quota exceeded" in response.text
123+
return False
124+
# See https://github.com/pytorch/vision/issues/2992 for details
125+
# return "Google Drive - Quota exceeded" in response.text
124126

125127

126128
def download_file_from_google_drive(file_id: str, root: str, filename: Optional[str] = None, md5: Optional[str] = None):

0 commit comments

Comments
 (0)