Skip to content

Commit

Permalink
[fbsync] Add Path type annotation for ImageFolder (#8526)
Browse files Browse the repository at this point in the history
Reviewed By: vmoens

Differential Revision: D60596246

fbshipit-source-id: 956dfd072507c3205d0d928ef5d7c029b429505f
  • Loading branch information
NicolasHug authored and facebook-github-bot committed Aug 2, 2024
1 parent 9f8380b commit c07f627
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 c07f627

Please sign in to comment.