diff --git a/torchvision/datasets/folder.py b/torchvision/datasets/folder.py index 387439c0433..571b6e136e4 100644 --- a/torchvision/datasets/folder.py +++ b/torchvision/datasets/folder.py @@ -266,7 +266,7 @@ def pil_loader(path: Union[str, Path]) -> Image.Image: # TODO: specify the return type def accimage_loader(path: Union[str, Path]) -> Any: - import accimage + import accimage # @manual=fbcode//pytorch/accimage:accimage try: return accimage.Image(path)