Commit 20a4a42d authored by Carrie's avatar Carrie Committed by Francisco Massa
Browse files

fixed typo (#1284)

* fixed typo

* fixed some more typos and grammer
parent 7c9bbf5b
...@@ -75,8 +75,8 @@ class DatasetFolder(VisionDataset): ...@@ -75,8 +75,8 @@ class DatasetFolder(VisionDataset):
E.g, ``transforms.RandomCrop`` for images. E.g, ``transforms.RandomCrop`` for images.
target_transform (callable, optional): A function/transform that takes target_transform (callable, optional): A function/transform that takes
in the target and transforms it. 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 a 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)
both extensions and is_valid_file should not be passed. both extensions and is_valid_file should not be passed.
Attributes: Attributes:
...@@ -193,7 +193,7 @@ class ImageFolder(DatasetFolder): ...@@ -193,7 +193,7 @@ class ImageFolder(DatasetFolder):
target and transforms it. target and transforms it.
loader (callable, optional): A function to load an image given its path. 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 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: Attributes:
classes (list): List of the class names. classes (list): List of the class names.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment