From 1967230483fda14af2dd57b7ddb578d6b371daa7 Mon Sep 17 00:00:00 2001 From: Carrie <36170228+carriesmi@users.noreply.github.com> Date: Fri, 30 Aug 2019 20:24:52 +0530 Subject: [PATCH 1/2] fixed typo --- torchvision/datasets/folder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/datasets/folder.py b/torchvision/datasets/folder.py index 71a070a135f..e122a114a62 100644 --- a/torchvision/datasets/folder.py +++ b/torchvision/datasets/folder.py @@ -75,7 +75,7 @@ class DatasetFolder(VisionDataset): E.g, ``transforms.RandomCrop`` for images. target_transform (callable, optional): A function/transform that takes in the target and transforms it. - is_valid_file (callable, optional): A function that takes path of an Image file + is_valid_file (callable, optional): A function that takes path of an file and check if the file is a valid_file (used to check of corrupt files) both extensions and is_valid_file should not be passed. From ca6a1dbb869ee0ac43eaa20d49bc425309f52b10 Mon Sep 17 00:00:00 2001 From: Carrie <36170228+carriesmi@users.noreply.github.com> Date: Sat, 31 Aug 2019 22:42:53 +0530 Subject: [PATCH 2/2] fixed some more typos and grammer --- torchvision/datasets/folder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/torchvision/datasets/folder.py b/torchvision/datasets/folder.py index e122a114a62..f0546daa93d 100644 --- a/torchvision/datasets/folder.py +++ b/torchvision/datasets/folder.py @@ -75,8 +75,8 @@ class DatasetFolder(VisionDataset): E.g, ``transforms.RandomCrop`` for images. target_transform (callable, optional): A function/transform that takes in the target and transforms it. - is_valid_file (callable, optional): A function that takes path of an file - and check if the file is a valid_file (used to check of corrupt files) + is_valid_file (callable, optional): A function that takes path of a file + and check if the file is a valid file (used to check of corrupt files) both extensions and is_valid_file should not be passed. Attributes: @@ -193,7 +193,7 @@ class ImageFolder(DatasetFolder): target and transforms it. loader (callable, optional): A function to load an image given its path. is_valid_file (callable, optional): A function that takes path of an Image file - and check if the file is a valid_file (used to check of corrupt files) + and check if the file is a valid file (used to check of corrupt files) Attributes: classes (list): List of the class names.