Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions torchvision/datasets/dtd.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DTD(VisionDataset):

download (bool, optional): If True, downloads the dataset from the internet and
puts it in root directory. If dataset is already downloaded, it is not
downloaded again.
downloaded again. Default is False.
transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
version. E.g, ``transforms.RandomCrop``.
target_transform (callable, optional): A function/transform that takes in the target and transforms it.
Expand All @@ -37,7 +37,7 @@ def __init__(
root: str,
split: str = "train",
partition: int = 1,
download: bool = True,
download: bool = False,
transform: Optional[Callable] = None,
target_transform: Optional[Callable] = None,
) -> None:
Expand Down
5 changes: 4 additions & 1 deletion torchvision/datasets/food101.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class Food101(VisionDataset):
Args:
root (string): Root directory of the dataset.
split (string, optional): The dataset split, supports ``"train"`` (default) and ``"test"``.
download (bool, optional): If True, downloads the dataset from the internet and
puts it in root directory. If dataset is already downloaded, it is not
downloaded again. Default is False.
transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed
version. E.g, ``transforms.RandomCrop``.
target_transform (callable, optional): A function/transform that takes in the target and transforms it.
Expand All @@ -33,7 +36,7 @@ def __init__(
self,
root: str,
split: str = "train",
download: bool = True,
download: bool = False,
transform: Optional[Callable] = None,
target_transform: Optional[Callable] = None,
) -> None:
Expand Down