Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
6f062c95
Unverified
Commit
6f062c95
authored
Mar 11, 2021
by
Philip Meier
Committed by
GitHub
Mar 11, 2021
Browse files
remove imprecise error handling in PhotoTour dataset (#3488)
Co-authored-by:
Francisco Massa
<
fvsmassa@gmail.com
>
parent
1a46ec94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
torchvision/datasets/phototour.py
torchvision/datasets/phototour.py
+1
-4
No files found.
torchvision/datasets/phototour.py
View file @
6f062c95
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment