Skip to content

Commit af600c8

Browse files
author
Youcef OUADJER
committed
Add docstring warning for deprecated LFW dataset download
1 parent 53d154d commit af600c8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

torchvision/datasets/lfw.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,17 @@ def __init__(
5050
self.labels_file = f"{self.view}{self.annot_file[self.split]}.txt"
5151
self.data: list[Any] = []
5252

53+
"""
54+
Warning:
55+
56+
The LFW dataset is no longer available for automatic download.
57+
Please download it manually and place it in the specified directory.
58+
59+
"""
60+
5361
if download:
5462
raise RuntimeError(
63+
5564
"LFW dataset is no longer available for download."
5665
"Please download the dataset manually and place it in the specified directory"
5766
)

0 commit comments

Comments
 (0)