From 16c7f9f7e29a799c832d015d8da7fbb109eae5ab Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Thu, 11 Mar 2021 09:42:47 +0100 Subject: [PATCH] remove redundant path.join in Places365 --- torchvision/datasets/places365.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/datasets/places365.py b/torchvision/datasets/places365.py index 0a184aff73d..2ee9cdbe8c4 100644 --- a/torchvision/datasets/places365.py +++ b/torchvision/datasets/places365.py @@ -162,7 +162,7 @@ def _verify_split(self, split: str) -> str: return verify_str_arg(split, "split", self._SPLITS) def _check_integrity(self, file: str, md5: str, download: bool) -> bool: - integrity = check_integrity(path.join(self.root, file), md5=md5) + integrity = check_integrity(file, md5=md5) if not integrity and not download: raise RuntimeError( f"The file {file} does not exist or is corrupted. You can set download=True to download it."