Skip to content

Commit

Permalink
Add Path type annotation for ImageFolder
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Jul 15, 2024
1 parent 87d05c6 commit 46a64d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/datasets/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class ImageFolder(DatasetFolder):

def __init__(
self,
root: str,
root: Union[str, Path],
transform: Optional[Callable] = None,
target_transform: Optional[Callable] = None,
loader: Callable[[str], Any] = default_loader,
Expand Down

0 comments on commit 46a64d9

Please sign in to comment.