Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions torchvision/datasets/lfw.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,13 @@ def __init__(
self.data: list[Any] = []

if download:
raise RuntimeError(
"LFW dataset is no longer available for download."
"Please download the dataset manually and place it in the specified directory"
)
self.download()


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

Expand Down
Loading