Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove redundant path.join in Places365 #3545

Merged
merged 1 commit into from
Mar 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torchvision/datasets/places365.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down