Unverified Commit 6f062c95 authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

remove imprecise error handling in PhotoTour dataset (#3488)


Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
parent 1a46ec94
...@@ -92,10 +92,7 @@ class PhotoTour(VisionDataset): ...@@ -92,10 +92,7 @@ class PhotoTour(VisionDataset):
self.download() self.download()
if not self._check_datafile_exists(): if not self._check_datafile_exists():
try: self.cache()
self.cache()
except Exception as error:
raise RuntimeError("Dataset not found. You can use download=True to download it") from error
# load the serialized data # load the serialized data
self.data, self.labels, self.matches = torch.load(self.data_file) self.data, self.labels, self.matches = torch.load(self.data_file)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment