Skip to content

Commit 53d154d

Browse files
author
Youcef OUADJER
committed
Raise error when download=True for LFW dataset #8888
1 parent 5f03dc5 commit 53d154d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

torchvision/datasets/lfw.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,13 @@ def __init__(
5151
self.data: list[Any] = []
5252

5353
if download:
54+
raise RuntimeError(
55+
"LFW dataset is no longer available for download."
56+
"Please download the dataset manually and place it in the specified directory"
57+
)
5458
self.download()
5559

60+
5661
if not self._check_integrity():
5762
raise RuntimeError("Dataset not found or corrupted. You can use download=True to download it")
5863

0 commit comments

Comments
 (0)